@regression-io/claude-config 0.23.11 → 0.23.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/config-loader.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regression-io/claude-config",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.13",
|
|
4
4
|
"description": "Configuration management UI for Claude Code and Antigravity - manage MCPs, rules, commands, memory, and project folders",
|
|
5
5
|
"author": "regression.io",
|
|
6
6
|
"main": "config-loader.js",
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
+
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
+
* https://github.com/chjj/term.js
|
|
5
|
+
* @license MIT
|
|
6
|
+
*
|
|
7
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
* in the Software without restriction, including without limitation the rights
|
|
10
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
* furnished to do so, subject to the following conditions:
|
|
13
|
+
*
|
|
14
|
+
* The above copyright notice and this permission notice shall be included in
|
|
15
|
+
* all copies or substantial portions of the Software.
|
|
16
|
+
*
|
|
17
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
+
* THE SOFTWARE.
|
|
24
|
+
*
|
|
25
|
+
* Originally forked from (with the author's permission):
|
|
26
|
+
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
+
* http://bellard.org/jslinux/
|
|
28
|
+
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
+
* The original design remains. The terminal itself
|
|
30
|
+
* has been extended to include xterm CSI codes, among
|
|
31
|
+
* other features.
|
|
32
|
+
*/.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::-moz-selection{color:transparent}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem;--sidebar-background: 0 0% 98%;--sidebar-foreground: 240 5.3% 26.1%;--sidebar-primary: 240 5.9% 10%;--sidebar-primary-foreground: 0 0% 98%;--sidebar-accent: 240 4.8% 95.9%;--sidebar-accent-foreground: 240 5.9% 10%;--sidebar-border: 220 13% 91%;--sidebar-ring: 217.2 91.2% 59.8%}.dark{--background: 0 0% 3.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--ring: 0 0% 83.1%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%;--sidebar-background: 240 5.9% 10%;--sidebar-foreground: 240 4.8% 95.9%;--sidebar-primary: 224.3 76.3% 48%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 240 3.7% 15.9%;--sidebar-accent-foreground: 240 4.8% 95.9%;--sidebar-border: 240 3.7% 15.9%;--sidebar-ring: 217.2 91.2% 59.8%}*{border-color:hsl(var(--border));outline-color:hsl(var(--ring) / .5)}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.bottom-0{bottom:0}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-3{left:.75rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-1\/2{top:50%}.top-16{top:4rem}.top-2{top:.5rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.col-span-full{grid-column:1 / -1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3\.5{margin-left:.875rem;margin-right:.875rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-\[1px\]{margin-bottom:-1px}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-4{width:1rem;height:1rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[400px\]{height:400px}.h-\[80vh\]{height:80vh}.h-\[calc\(100vh-64px\)\]{height:calc(100vh - 64px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-48{max-height:12rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[250px\]{max-height:250px}.max-h-\[300px\]{max-height:300px}.max-h-\[800px\]{max-height:800px}.max-h-\[90vh\]{max-height:90vh}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\[100px\]{min-height:100px}.min-h-\[120px\]{min-height:120px}.min-h-\[200px\]{min-height:200px}.min-h-\[300px\]{min-height:300px}.min-h-\[400px\]{min-height:400px}.min-h-\[500px\]{min-height:500px}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-0{width:0px}.w-1{width:.25rem}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-80{width:20rem}.w-9{width:2.25rem}.w-\[--sidebar-width\]{width:var(--sidebar-width)}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-5{min-width:1.25rem}.min-w-8{min-width:2rem}.min-w-9{min-width:2.25rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[160px\]{min-width:160px}.min-w-\[200px\]{min-width:200px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-\[--skeleton-width\]{max-width:var(--skeleton-width)}.max-w-\[220px\]{max-width:220px}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-px{--tw-translate-x: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-px{--tw-translate-x: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity, 1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-cyan-200{--tw-border-opacity: 1;border-color:rgb(165 243 252 / var(--tw-border-opacity, 1))}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-green-500\/20{border-color:#22c55e33}.border-green-500\/30{border-color:#22c55e4d}.border-green-700{--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity, 1))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity, 1))}.border-primary{border-color:hsl(var(--primary))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(216 180 254 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-sidebar-border{border-color:hsl(var(--sidebar-border))}.border-teal-200{--tw-border-opacity: 1;border-color:rgb(153 246 228 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-b-white{--tw-border-opacity: 1;border-bottom-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-500\/5{background-color:#3b82f60d}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-cyan-50{--tw-bg-opacity: 1;background-color:rgb(236 254 255 / var(--tw-bg-opacity, 1))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/10{background-color:#22c55e1a}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-900\/50{background-color:#14532d80}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground\/10{background-color:hsl(var(--muted-foreground) / .1)}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-orange-500\/10{background-color:#f973161a}.bg-orange-500\/5{background-color:#f973160d}.bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.bg-purple-500\/10{background-color:#a855f71a}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sidebar{background-color:hsl(var(--sidebar-background))}.bg-sidebar-border{background-color:hsl(var(--sidebar-border))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-primary{fill:hsl(var(--primary))}.p-0{padding:0}.p-1{padding:.25rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-cyan-700{--tw-text-opacity: 1;color:rgb(14 116 144 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-600\/80{color:#16a34acc}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.text-purple-900{--tw-text-opacity: 1;color:rgb(88 28 135 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}.text-sidebar-foreground\/70{color:hsl(var(--sidebar-foreground) / .7)}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-zinc-100{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity, 1))}.ring-green-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity, 1))}.ring-indigo-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.ring-primary\/20{--tw-ring-color: hsl(var(--primary) / .2)}.ring-ring{--tw-ring-color: hsl(var(--ring))}.ring-sidebar-ring{--tw-ring-color: hsl(var(--sidebar-ring))}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-1000{animation-duration:1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}.running{animation-play-state:running}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);top:-.5rem;right:-.5rem;bottom:-.5rem;left:-.5rem}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\:border-l:first-child{border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.last\:border-b-0:last-child{border-bottom-width:0px}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.hover\:border-cyan-300:hover{--tw-border-opacity: 1;border-color:rgb(103 232 249 / var(--tw-border-opacity, 1))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:border-green-300:hover{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.hover\:border-indigo-300:hover{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:border-purple-400:hover{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.hover\:bg-green-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-100:hover{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/30:hover{background-color:hsl(var(--muted) / .3)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-purple-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-sidebar-accent:hover{background-color:hsl(var(--sidebar-accent))}.hover\:bg-white\/50:hover{background-color:#ffffff80}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.hover\:text-sidebar-accent-foreground:hover{color:hsl(var(--sidebar-accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-accent));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:hsl(var(--sidebar-border))}.focus\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-destructive:focus{color:hsl(var(--destructive))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-sidebar-ring:focus-visible{--tw-ring-color: hsl(var(--sidebar-ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:bg-sidebar-accent:active{background-color:hsl(var(--sidebar-accent))}.active\:text-sidebar-accent-foreground:active{color:hsl(var(--sidebar-accent-foreground))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group\/menu-item:focus-within .group-focus-within\/menu-item\:opacity-100{opacity:1}.group\/menu-item:hover .group-hover\/menu-item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer\/menu-button:hover~.peer-hover\/menu-button\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.has-\[\[data-variant\=inset\]\]\:bg-sidebar:has([data-variant=inset]){background-color:hsl(var(--sidebar-background))}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.group\/menu-item:has([data-sidebar=menu-action]) .group-has-\[\[data-sidebar\=menu-action\]\]\/menu-item\:pr-8{padding-right:2rem}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:hsl(var(--sidebar-accent))}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[active\=true\]\:font-medium[data-active=true]{font-weight:500}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:hsl(var(--sidebar-accent-foreground))}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=open\]\:hover\:bg-sidebar-accent:hover[data-state=open]{background-color:hsl(var(--sidebar-accent))}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground:hover[data-state=open]{color:hsl(var(--sidebar-accent-foreground))}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]{left:calc(var(--sidebar-width) * -1)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]{right:calc(var(--sidebar-width) * -1)}.group[data-side=left] .group-data-\[side\=left\]\:-right-4{right:-1rem}.group[data-side=right] .group-data-\[side\=right\]\:left-0{left:0}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:-mt-8{margin-top:-2rem}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:hidden{display:none}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!size-8{width:2rem!important;height:2rem!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[--sidebar-width-icon\]{width:var(--sidebar-width-icon)}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)\)\]{width:calc(var(--sidebar-width-icon) + 1rem)}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)_\+2px\)\]{width:calc(var(--sidebar-width-icon) + 1rem + 2px)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:w-0{width:0px}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-side=right] .group-data-\[side\=right\]\:rotate-180,.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:overflow-hidden{overflow:hidden}.group[data-variant=floating] .group-data-\[variant\=floating\]\:rounded-lg{border-radius:var(--radius)}.group[data-variant=floating] .group-data-\[variant\=floating\]\:border{border-width:1px}.group[data-side=left] .group-data-\[side\=left\]\:border-r{border-right-width:1px}.group[data-side=right] .group-data-\[side\=right\]\:border-l{border-left-width:1px}.group[data-variant=floating] .group-data-\[variant\=floating\]\:border-sidebar-border{border-color:hsl(var(--sidebar-border))}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!p-0{padding:0!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!p-2{padding:.5rem!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:opacity-0{opacity:0}.group[data-variant=floating] .group-data-\[variant\=floating\]\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:after\:left-full:after{content:var(--tw-content);left:100%}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:hover\:bg-sidebar:hover{background-color:hsl(var(--sidebar-background))}.peer\/menu-button[data-size=default]~.peer-data-\[size\=default\]\/menu-button\:top-1\.5{top:.375rem}.peer\/menu-button[data-size=lg]~.peer-data-\[size\=lg\]\/menu-button\:top-2\.5{top:.625rem}.peer\/menu-button[data-size=sm]~.peer-data-\[size\=sm\]\/menu-button\:top-1{top:.25rem}.peer[data-variant=inset]~.peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-theme\(spacing\.4\)\)\]{min-height:calc(100svh - 1rem)}.peer\/menu-button[data-active=true]~.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}.dark\:divide-slate-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(30 41 59 / var(--tw-divide-opacity, 1))}.dark\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.dark\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.dark\:border-cyan-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(21 94 117 / var(--tw-border-opacity, 1))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-green-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.dark\:border-purple-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.dark\:border-purple-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1))}.dark\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.dark\:border-slate-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.dark\:border-slate-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.dark\:border-b-slate-950:is(.dark *){--tw-border-opacity: 1;border-bottom-color:rgb(2 6 23 / var(--tw-border-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-amber-900\/30:is(.dark *){background-color:#78350f4d}.dark\:bg-amber-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}.dark\:bg-amber-950\/50:is(.dark *){background-color:#451a0380}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1e3a8a33}.dark\:bg-blue-900\/30:is(.dark *){background-color:#1e3a8a4d}.dark\:bg-blue-950\/30:is(.dark *){background-color:#1725544d}.dark\:bg-cyan-950\/30:is(.dark *){background-color:#0833444d}.dark\:bg-green-900\/20:is(.dark *){background-color:#14532d33}.dark\:bg-green-900\/30:is(.dark *){background-color:#14532d4d}.dark\:bg-green-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 46 22 / var(--tw-bg-opacity, 1))}.dark\:bg-indigo-900\/20:is(.dark *){background-color:#312e8133}.dark\:bg-indigo-900\/30:is(.dark *){background-color:#312e814d}.dark\:bg-indigo-900\/50:is(.dark *){background-color:#312e8180}.dark\:bg-indigo-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 27 75 / var(--tw-bg-opacity, 1))}.dark\:bg-indigo-950\/30:is(.dark *){background-color:#1e1b4b4d}.dark\:bg-indigo-950\/50:is(.dark *){background-color:#1e1b4b80}.dark\:bg-orange-950\/30:is(.dark *){background-color:#4314074d}.dark\:bg-purple-900\/30:is(.dark *){background-color:#581c874d}.dark\:bg-purple-950\/30:is(.dark *){background-color:#3b07644d}.dark\:bg-red-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-red-950\/50:is(.dark *){background-color:#450a0a80}.dark\:bg-slate-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-cyan-400:is(.dark *){--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-green-400\/80:is(.dark *){color:#4ade80cc}.dark\:text-indigo-400:is(.dark *){--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.dark\:text-orange-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.dark\:text-purple-300:is(.dark *){--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-slate-300:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.dark\:text-slate-400:is(.dark *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.dark\:text-slate-500:is(.dark *){--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.dark\:text-slate-600:is(.dark *){--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:border-cyan-700:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 116 144 / var(--tw-border-opacity, 1))}.dark\:hover\:border-slate-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-amber-900\/30:hover:is(.dark *){background-color:#78350f4d}.dark\:hover\:bg-blue-900\/30:hover:is(.dark *){background-color:#1e3a8a4d}.dark\:hover\:bg-blue-950\/30:hover:is(.dark *){background-color:#1725544d}.dark\:hover\:bg-green-900\/30:hover:is(.dark *){background-color:#14532d4d}.dark\:hover\:bg-green-950\/30:hover:is(.dark *){background-color:#052e164d}.dark\:hover\:bg-indigo-900\/30:hover:is(.dark *){background-color:#312e814d}.dark\:hover\:bg-purple-950\/30:hover:is(.dark *){background-color:#3b07644d}.dark\:hover\:bg-slate-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-slate-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-slate-900\/50:hover:is(.dark *){background-color:#0f172a80}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:flex{display:flex}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media(min-width:768px){.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:opacity-0{opacity:0}.after\:md\:hidden:after{content:var(--tw-content);display:none}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:m-2{margin:.5rem}.peer[data-state=collapsed][data-variant=inset]~.md\:peer-data-\[state\=collapsed\]\:peer-data-\[variant\=inset\]\:ml-2{margin-left:.5rem}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:ml-0{margin-left:0}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:rounded-xl{border-radius:.75rem}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media(min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\:last-child\]\:truncate>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-4>svg{width:1rem;height:1rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:h-3\.5>svg{height:.875rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:w-3\.5>svg{width:.875rem}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:hsl(var(--sidebar-accent-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border) / .5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:-.5rem}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=left] .\[\[data-side\=left\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:-.5rem}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-side=right] .\[\[data-side\=right\]_\&\]\:cursor-e-resize{cursor:e-resize}
|
|
@@ -447,7 +447,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
447
447
|
}`,className:"font-mono text-sm min-h-[100px]"})]})]})]})]})]})}const gO=[{id:"Default",name:"Default"},{id:"GitHub",name:"GitHub"},{id:"Monokai",name:"Monokai"},{id:"SolarizedDark",name:"Solarized Dark"},{id:"SolarizedLight",name:"Solarized Light"}];function P1({settings:e,onSave:t,loading:s,settingsPath:o}){const[l,m]=C.useState(e||{}),[f,a]=C.useState(!1),[c,h]=C.useState("rich"),[g,d]=C.useState(JSON.stringify(e||{},null,2)),[_,S]=C.useState({open:!1,name:"",json:""}),[j,b]=C.useState({}),v=async()=>{a(!0);try{if(c==="json")try{const R=JSON.parse(g);await t(R),m(R)}catch{ae.error("Invalid JSON"),a(!1);return}else await t(l),d(JSON.stringify(l,null,2));ae.success("Settings saved")}finally{a(!1)}},y=(R,E,D)=>{m($=>({...$,[R]:{...$[R],[E]:D}}))},p=(R,E,D=!1)=>{var $;return(($=l==null?void 0:l[R])==null?void 0:$[E])??D},x=l.mcpServers||{},k=()=>{const{name:R,json:E}=_;if(!R.trim()){ae.error("Please enter a name for the MCP");return}let D;try{D=JSON.parse(E)}catch{ae.error("Invalid JSON configuration");return}if(!D.command){ae.error('MCP config must have a "command" field');return}m($=>({...$,mcpServers:{...$.mcpServers,[R.trim()]:D}})),S({open:!1,name:"",json:""}),ae.success(`Added MCP: ${R}`)},P=R=>{m(E=>{const{[R]:D,...$}=E.mcpServers||{};return{...E,mcpServers:$}}),ae.success(`Removed MCP: ${R}`)},T=R=>{b(E=>({...E,[R]:!E[R]}))};return i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-blue-500/10 flex items-center justify-center",children:i.jsx(Et,{className:"w-5 h-5 text-blue-500"})}),i.jsxs("div",{children:[i.jsxs("h2",{className:"text-lg font-semibold text-foreground flex items-center gap-2",children:["Gemini CLI Settings",i.jsxs(ot,{variant:"outline",className:"text-xs font-normal text-blue-600 border-blue-300 dark:border-blue-700",children:[i.jsx(ar,{className:"w-3 h-3 mr-1"}),"Google"]})]}),i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stored in: ",i.jsx("code",{className:"bg-muted px-1.5 py-0.5 rounded text-xs",children:o})]})]})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsxs("div",{className:"flex bg-muted rounded-lg p-1",children:[i.jsx("button",{className:`px-3 py-1 text-sm rounded-md transition-colors ${c==="rich"?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"}`,onClick:()=>h("rich"),children:"Settings"}),i.jsx("button",{className:`px-3 py-1 text-sm rounded-md transition-colors ${c==="json"?"bg-background shadow-sm":"text-muted-foreground hover:text-foreground"}`,onClick:()=>{d(JSON.stringify(l,null,2)),h("json")},children:"JSON"})]}),i.jsxs(de,{onClick:v,disabled:f||s,children:[f?i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx(ro,{className:"w-4 h-4 mr-2"}),"Save"]})]})]}),c==="json"?i.jsx("div",{className:"border border-border rounded-lg bg-card overflow-hidden",children:i.jsx(it,{value:g,onChange:R=>d(R.target.value),className:"font-mono text-sm min-h-[500px] border-0 rounded-none resize-none",placeholder:"{ }"})}):i.jsxs(i.Fragment,{children:[i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("div",{className:"flex items-center justify-between mb-4",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:[i.jsx(pa,{className:"w-4 h-4 text-blue-500"}),"MCP Servers",i.jsx(ot,{variant:"secondary",className:"text-xs",children:Object.keys(x).length})]}),i.jsxs(de,{size:"sm",variant:"outline",onClick:()=>S({open:!0,name:"",json:`{
|
|
448
448
|
"command": "npx",
|
|
449
449
|
"args": ["-y", "@example/mcp-server"]
|
|
450
|
-
}`}),children:[i.jsx(Ot,{className:"w-4 h-4 mr-1"}),"Add MCP"]})]}),i.jsx("div",{className:"space-y-2",children:Object.keys(x).length===0?i.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No MCP servers configured"}):Object.entries(x).map(([R,E])=>i.jsxs(cS,{open:j[R],onOpenChange:()=>T(R),children:[i.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border bg-background group",children:[i.jsxs(uS,{className:"flex items-center gap-2 flex-1 text-left",children:[j[R]?i.jsx(ni,{className:"w-4 h-4 text-muted-foreground"}):i.jsx(eo,{className:"w-4 h-4 text-muted-foreground"}),i.jsx(pa,{className:"w-4 h-4 text-blue-500"}),i.jsx("span",{className:"font-medium text-sm",children:R}),i.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:E.command})]}),i.jsx(de,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 text-destructive hover:text-destructive",onClick:()=>P(R),children:i.jsx(xn,{className:"w-4 h-4"})})]}),i.jsx(dS,{children:i.jsx("div",{className:"mt-2 ml-6 p-3 rounded-lg bg-muted/50 border",children:i.jsx("pre",{className:"text-xs font-mono text-muted-foreground overflow-x-auto",children:JSON.stringify(E,null,2)})})})]},R))})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(CT,{className:"w-4 h-4 text-blue-500"}),"Appearance"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Theme"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Color theme for the CLI interface"})]}),i.jsxs(qi,{value:p("theme","name","Default"),onValueChange:R=>y("theme","name",R),children:[i.jsx(Zn,{className:"w-40",children:i.jsx(Yi,{})}),i.jsx(ei,{children:gO.map(R=>i.jsx(gr,{value:R.id,children:R.name},R.id))})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Output Format"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Format for CLI output"})]}),i.jsxs(qi,{value:p("core","outputFormat","text"),onValueChange:R=>y("core","outputFormat",R),children:[i.jsx(Zn,{className:"w-40",children:i.jsx(Yi,{})}),i.jsxs(ei,{children:[i.jsx(gr,{value:"text",children:"Text"}),i.jsx(gr,{value:"json",children:"JSON"})]})]})]})]})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(I_,{className:"w-4 h-4 text-blue-500"}),"Display Options"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Update Window Title"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Show status icons in terminal title"})]}),i.jsx(St,{checked:p("ui","updateWindowTitle",!0),onCheckedChange:R=>y("ui","updateWindowTitle",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Show Line Numbers"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Display line numbers in chat"})]}),i.jsx(St,{checked:p("ui","showLineNumbers",!1),onCheckedChange:R=>y("ui","showLineNumbers",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Show Citations"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Show citations for generated text"})]}),i.jsx(St,{checked:p("ui","showCitations",!1),onCheckedChange:R=>y("ui","showCitations",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Hide Context Summary"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Hide GEMINI.md and MCP servers above input"})]}),i.jsx(St,{checked:p("ui","hideContextSummary",!1),onCheckedChange:R=>y("ui","hideContextSummary",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Hide Working Directory"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Hide current directory path in footer"})]}),i.jsx(St,{checked:p("ui","hideWorkingDirectory",!1),onCheckedChange:R=>y("ui","hideWorkingDirectory",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Hide Model Info"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Hide model name and context usage in footer"})]}),i.jsx(St,{checked:p("ui","hideModelInfo",!1),onCheckedChange:R=>y("ui","hideModelInfo",R)})]})]})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(Yn,{className:"w-4 h-4 text-blue-500"}),"Advanced"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Vim Keybindings"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Use Vim keybindings in the prompt editor"})]}),i.jsx(St,{checked:p("core","enableVimKeybindings",!1),onCheckedChange:R=>y("core","enableVimKeybindings",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Auto-Compress History"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Compress conversation when context exceeds threshold"})]}),i.jsx(St,{checked:p("core","autoCompressHistory",!0),onCheckedChange:R=>y("core","autoCompressHistory",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Sandbox Mode"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Run tool executions in isolated container"})]}),i.jsx(St,{checked:p("sandbox","enabled",!1),onCheckedChange:R=>y("sandbox","enabled",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:["YOLO Mode",i.jsx(ot,{variant:"destructive",className:"text-xs",children:"Dangerous"})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Auto-approve all tool calls without confirmation"})]}),i.jsx(St,{checked:p("core","yoloMode",!1),onCheckedChange:R=>y("core","yoloMode",R)})]})]})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(ja,{className:"w-4 h-4 text-blue-500"}),"Privacy"]}),i.jsx("div",{className:"space-y-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Usage Statistics"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Allow collection of anonymous usage data"})]}),i.jsx(St,{checked:p("privacy","usageStatisticsEnabled",!0),onCheckedChange:R=>y("privacy","usageStatisticsEnabled",R)})]})})]})]}),i.jsx(lr,{open:_.open,onOpenChange:R=>S({..._,open:R}),children:i.jsxs(er,{className:"bg-card",children:[i.jsxs(tr,{children:[i.jsx(sr,{children:"Add MCP Server"}),i.jsx(Rr,{children:"Add a new MCP server to Gemini CLI"})]}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Name"}),i.jsx(rt,{value:_.name,onChange:R=>S({..._,name:R.target.value}),placeholder:"my-mcp-server",className:"mt-1"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Configuration (JSON)"}),i.jsx(it,{value:_.json,onChange:R=>S({..._,json:R.target.value}),className:"mt-1 font-mono text-sm",rows:6})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:()=>S({open:!1,name:"",json:""}),children:"Cancel"}),i.jsxs(de,{onClick:k,children:[i.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Add MCP"]})]})]})})]})}var hu="Checkbox",[vO]=_r(hu),[yO,qp]=vO(hu);function xO(e){const{__scopeCheckbox:t,checked:s,children:o,defaultChecked:l,disabled:m,form:f,name:a,onCheckedChange:c,required:h,value:g="on",internal_do_not_use_render:d}=e,[_,S]=ts({prop:s,defaultProp:l??!1,onChange:c,caller:hu}),[j,b]=C.useState(null),[v,y]=C.useState(null),p=C.useRef(!1),x=j?!!f||!!j.closest("form"):!0,k={checked:_,disabled:m,setChecked:S,control:j,setControl:b,name:a,form:f,value:g,hasConsumerStoppedPropagationRef:p,required:h,defaultChecked:mn(l)?!1:l,isFormControl:x,bubbleInput:v,setBubbleInput:y};return i.jsx(yO,{scope:t,...k,children:_O(d)?d(k):o})}var R1="CheckboxTrigger",T1=C.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:s,...o},l)=>{const{control:m,value:f,disabled:a,checked:c,required:h,setControl:g,setChecked:d,hasConsumerStoppedPropagationRef:_,isFormControl:S,bubbleInput:j}=qp(R1,e),b=We(l,g),v=C.useRef(c);return C.useEffect(()=>{const y=m==null?void 0:m.form;if(y){const p=()=>d(v.current);return y.addEventListener("reset",p),()=>y.removeEventListener("reset",p)}},[m,d]),i.jsx(Fe.button,{type:"button",role:"checkbox","aria-checked":mn(c)?"mixed":c,"aria-required":h,"data-state":O1(c),"data-disabled":a?"":void 0,disabled:a,value:f,...o,ref:b,onKeyDown:_e(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:_e(s,y=>{d(p=>mn(p)?!0:!p),j&&S&&(_.current=y.isPropagationStopped(),_.current||y.stopPropagation())})})});T1.displayName=R1;var Yp=C.forwardRef((e,t)=>{const{__scopeCheckbox:s,name:o,checked:l,defaultChecked:m,required:f,disabled:a,value:c,onCheckedChange:h,form:g,...d}=e;return i.jsx(xO,{__scopeCheckbox:s,checked:l,defaultChecked:m,disabled:a,required:f,onCheckedChange:h,name:o,form:g,value:c,internal_do_not_use_render:({isFormControl:_})=>i.jsxs(i.Fragment,{children:[i.jsx(T1,{...d,ref:t,__scopeCheckbox:s}),_&&i.jsx(L1,{__scopeCheckbox:s})]})})});Yp.displayName=hu;var A1="CheckboxIndicator",M1=C.forwardRef((e,t)=>{const{__scopeCheckbox:s,forceMount:o,...l}=e,m=qp(A1,s);return i.jsx(Kt,{present:o||mn(m.checked)||m.checked===!0,children:i.jsx(Fe.span,{"data-state":O1(m.checked),"data-disabled":m.disabled?"":void 0,...l,ref:t,style:{pointerEvents:"none",...e.style}})})});M1.displayName=A1;var D1="CheckboxBubbleInput",L1=C.forwardRef(({__scopeCheckbox:e,...t},s)=>{const{control:o,hasConsumerStoppedPropagationRef:l,checked:m,defaultChecked:f,required:a,disabled:c,name:h,value:g,form:d,bubbleInput:_,setBubbleInput:S}=qp(D1,e),j=We(s,S),b=cp(m),v=up(o);C.useEffect(()=>{const p=_;if(!p)return;const x=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(x,"checked").set,T=!l.current;if(b!==m&&P){const R=new Event("click",{bubbles:T});p.indeterminate=mn(m),P.call(p,mn(m)?!1:m),p.dispatchEvent(R)}},[_,b,m,l]);const y=C.useRef(mn(m)?!1:m);return i.jsx(Fe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??y.current,required:a,disabled:c,name:h,value:g,form:d,...t,tabIndex:-1,ref:j,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L1.displayName=D1;function _O(e){return typeof e=="function"}function mn(e){return e==="indeterminate"}function O1(e){return mn(e)?"indeterminate":e?"checked":"unchecked"}const I1=C.forwardRef(({className:e,...t},s)=>i.jsx(Yp,{ref:s,className:we("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:i.jsx(M1,{className:we("flex items-center justify-center text-current"),children:i.jsx(Ar,{className:"h-4 w-4"})})}));I1.displayName=Yp.displayName;const Ph={claude:{name:"Claude Code",folder:".claude",color:"text-orange-600",bg:"bg-orange-50",darkBg:"dark:bg-orange-950/30"},gemini:{name:"Gemini CLI",folder:".gemini",color:"text-blue-600",bg:"bg-blue-50",darkBg:"dark:bg-blue-950/30"},antigravity:{name:"Antigravity",folder:".agent",color:"text-purple-600",bg:"bg-purple-50",darkBg:"dark:bg-purple-950/30"}};function wO({open:e,onOpenChange:t,projectDir:s,onSynced:o}){var E,D,$;const[l,m]=C.useState("claude"),[f,a]=C.useState("antigravity"),[c,h]=C.useState(null),[g,d]=C.useState(!1),[_,S]=C.useState(!1),[j,b]=C.useState(new Set);C.useEffect(()=>{e&&s&&v()},[e,l,f,s]),C.useEffect(()=>{e&&b(new Set)},[e]);const v=async()=>{var H;d(!0);try{const U=await Ce.getSyncPreview(s,l,f);h(U);const V=new Set(((H=U.files)==null?void 0:H.filter(q=>q.status==="new"||q.status==="different").map(q=>q.name))||[]);b(V)}catch(U){ae.error("Failed to load sync preview: "+U.message),h(null)}finally{d(!1)}},y=()=>{m(f),a(l)},p=H=>{const U=new Set(j);U.has(H)?U.delete(H):U.add(H),b(U)},x=()=>{var H,U;j.size===((H=c==null?void 0:c.files)==null?void 0:H.length)?b(new Set):b(new Set(((U=c==null?void 0:c.files)==null?void 0:U.map(V=>V.name))||[]))},k=async()=>{if(j.size===0){ae.error("Please select at least one file to sync");return}S(!0);try{const H=await Ce.syncRules(s,l,f,Array.from(j));H.success?(ae.success(`Synced ${H.synced.length} file(s) to ${Ph[f].name}`),o==null||o(),t(!1)):ae.error(H.error||"Sync failed")}catch(H){ae.error("Sync failed: "+H.message)}finally{S(!1)}},P=H=>{switch(H){case"new":return i.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-green-100 text-green-700",children:"New"});case"different":return i.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-yellow-100 text-yellow-700",children:"Modified"});case"identical":return i.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-gray-100 dark:bg-slate-700 text-gray-500 dark:text-slate-400",children:"Same"});default:return null}},T=Ph[l],R=Ph[f];return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"sm:max-w-lg",children:[i.jsxs(tr,{children:[i.jsxs(sr,{className:"flex items-center gap-2",children:[i.jsx(yr,{className:"w-5 h-5 text-indigo-500"}),"Sync Rules Between Tools"]}),i.jsx(Rr,{children:"Copy rules from one AI tool's configuration to another."})]}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3 p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"From"}),i.jsxs(qi,{value:l,onValueChange:m,children:[i.jsx(Zn,{className:"w-full",children:i.jsx(Yi,{})}),i.jsxs(ei,{children:[i.jsx(gr,{value:"claude",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-orange-500"}),"Claude Code"]})}),i.jsx(gr,{value:"gemini",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-blue-500"}),"Gemini CLI"]})}),i.jsx(gr,{value:"antigravity",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-purple-500"}),"Antigravity"]})})]})]})]}),i.jsx(de,{variant:"ghost",size:"icon",onClick:y,className:"mt-5",title:"Swap direction",children:i.jsx(P_,{className:"w-4 h-4"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"To"}),i.jsxs(qi,{value:f,onValueChange:a,children:[i.jsx(Zn,{className:"w-full",children:i.jsx(Yi,{})}),i.jsxs(ei,{children:[i.jsx(gr,{value:"claude",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-orange-500"}),"Claude Code"]})}),i.jsx(gr,{value:"gemini",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-blue-500"}),"Gemini CLI"]})}),i.jsx(gr,{value:"antigravity",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-purple-500"}),"Antigravity"]})})]})]})]})]}),i.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[i.jsxs("div",{children:["Source: ",i.jsxs("code",{className:"bg-muted px-1 rounded",children:[T.folder,"/rules/"]})]}),i.jsxs("div",{children:["Target: ",i.jsxs("code",{className:"bg-muted px-1 rounded",children:[R.folder,"/rules/"]})]})]}),i.jsxs("div",{className:"border rounded-lg",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[i.jsx("span",{className:"text-sm font-medium",children:"Rules to Sync"}),((E=c==null?void 0:c.files)==null?void 0:E.length)>0&&i.jsx(de,{variant:"ghost",size:"sm",onClick:x,className:"h-6 text-xs",children:j.size===c.files.length?"Deselect All":"Select All"})]}),i.jsx("div",{className:"max-h-64 overflow-auto",children:g?i.jsx("div",{className:"flex items-center justify-center py-8",children:i.jsx(yt,{className:"w-5 h-5 animate-spin text-muted-foreground"})}):c!=null&&c.error?i.jsxs("div",{className:"flex items-center gap-2 p-4 text-sm text-amber-600",children:[i.jsx(da,{className:"w-4 h-4"}),c.error]}):((D=c==null?void 0:c.files)==null?void 0:D.length)===0?i.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:"No rules found in source folder"}):i.jsx("div",{className:"divide-y",children:($=c==null?void 0:c.files)==null?void 0:$.map(H=>i.jsxs("label",{className:we("flex items-center gap-3 px-3 py-2 cursor-pointer hover:bg-muted/30",j.has(H.name)&&"bg-primary/5"),children:[i.jsx(I1,{checked:j.has(H.name),onCheckedChange:()=>p(H.name)}),i.jsx(vr,{className:"w-4 h-4 text-purple-500"}),i.jsx("span",{className:"flex-1 text-sm",children:H.name}),P(H.status)]},H.name))})})]}),(c==null?void 0:c.files)&&j.size>0&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:[j.size," file(s) selected for sync"]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),i.jsx(de,{onClick:k,disabled:_||g||j.size===0,children:_?i.jsxs(i.Fragment,{children:[i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}),"Syncing..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Ar,{className:"w-4 h-4 mr-2"}),"Sync ",j.size," File(s)"]})})]})]})})}function bO(e,t){return C.useReducer((s,o)=>t[s][o]??s,e)}var Xp="ScrollArea",[B1]=_r(Xp),[SO,Wr]=B1(Xp),F1=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,type:o="hover",dir:l,scrollHideDelay:m=600,...f}=e,[a,c]=C.useState(null),[h,g]=C.useState(null),[d,_]=C.useState(null),[S,j]=C.useState(null),[b,v]=C.useState(null),[y,p]=C.useState(0),[x,k]=C.useState(0),[P,T]=C.useState(!1),[R,E]=C.useState(!1),D=We(t,H=>c(H)),$=Ea(l);return i.jsx(SO,{scope:s,type:o,dir:$,scrollHideDelay:m,scrollArea:a,viewport:h,onViewportChange:g,content:d,onContentChange:_,scrollbarX:S,onScrollbarXChange:j,scrollbarXEnabled:P,onScrollbarXEnabledChange:T,scrollbarY:b,onScrollbarYChange:v,scrollbarYEnabled:R,onScrollbarYEnabledChange:E,onCornerWidthChange:p,onCornerHeightChange:k,children:i.jsx(Fe.div,{dir:$,...f,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});F1.displayName=Xp;var H1="ScrollAreaViewport",$1=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,children:o,nonce:l,...m}=e,f=Wr(H1,s),a=C.useRef(null),c=We(t,a,f.onViewportChange);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),i.jsx(Fe.div,{"data-radix-scroll-area-viewport":"",...m,ref:c,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...e.style},children:i.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});$1.displayName=H1;var xs="ScrollAreaScrollbar",Jp=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=Wr(xs,e.__scopeScrollArea),{onScrollbarXEnabledChange:m,onScrollbarYEnabledChange:f}=l,a=e.orientation==="horizontal";return C.useEffect(()=>(a?m(!0):f(!0),()=>{a?m(!1):f(!1)}),[a,m,f]),l.type==="hover"?i.jsx(CO,{...o,ref:t,forceMount:s}):l.type==="scroll"?i.jsx(kO,{...o,ref:t,forceMount:s}):l.type==="auto"?i.jsx(V1,{...o,ref:t,forceMount:s}):l.type==="always"?i.jsx(Qp,{...o,ref:t}):null});Jp.displayName=xs;var CO=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=Wr(xs,e.__scopeScrollArea),[m,f]=C.useState(!1);return C.useEffect(()=>{const a=l.scrollArea;let c=0;if(a){const h=()=>{window.clearTimeout(c),f(!0)},g=()=>{c=window.setTimeout(()=>f(!1),l.scrollHideDelay)};return a.addEventListener("pointerenter",h),a.addEventListener("pointerleave",g),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",h),a.removeEventListener("pointerleave",g)}}},[l.scrollArea,l.scrollHideDelay]),i.jsx(Kt,{present:s||m,children:i.jsx(V1,{"data-state":m?"visible":"hidden",...o,ref:t})})}),kO=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=Wr(xs,e.__scopeScrollArea),m=e.orientation==="horizontal",f=pu(()=>c("SCROLL_END"),100),[a,c]=bO("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return C.useEffect(()=>{if(a==="idle"){const h=window.setTimeout(()=>c("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(h)}},[a,l.scrollHideDelay,c]),C.useEffect(()=>{const h=l.viewport,g=m?"scrollLeft":"scrollTop";if(h){let d=h[g];const _=()=>{const S=h[g];d!==S&&(c("SCROLL"),f()),d=S};return h.addEventListener("scroll",_),()=>h.removeEventListener("scroll",_)}},[l.viewport,m,c,f]),i.jsx(Kt,{present:s||a!=="hidden",children:i.jsx(Qp,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:_e(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:_e(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),V1=C.forwardRef((e,t)=>{const s=Wr(xs,e.__scopeScrollArea),{forceMount:o,...l}=e,[m,f]=C.useState(!1),a=e.orientation==="horizontal",c=pu(()=>{if(s.viewport){const h=s.viewport.offsetWidth<s.viewport.scrollWidth,g=s.viewport.offsetHeight<s.viewport.scrollHeight;f(a?h:g)}},10);return Ji(s.viewport,c),Ji(s.content,c),i.jsx(Kt,{present:o||m,children:i.jsx(Qp,{"data-state":m?"visible":"hidden",...l,ref:t})})}),Qp=C.forwardRef((e,t)=>{const{orientation:s="vertical",...o}=e,l=Wr(xs,e.__scopeScrollArea),m=C.useRef(null),f=C.useRef(0),[a,c]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=G1(a.viewport,a.content),g={...o,sizes:a,onSizesChange:c,hasThumb:h>0&&h<1,onThumbChange:_=>m.current=_,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:_=>f.current=_};function d(_,S){return TO(_,f.current,a,S)}return s==="horizontal"?i.jsx(jO,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&m.current){const _=l.viewport.scrollLeft,S=$y(_,a,l.dir);m.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:_=>{l.viewport&&(l.viewport.scrollLeft=_)},onDragScroll:_=>{l.viewport&&(l.viewport.scrollLeft=d(_,l.dir))}}):s==="vertical"?i.jsx(EO,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&m.current){const _=l.viewport.scrollTop,S=$y(_,a);m.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:_=>{l.viewport&&(l.viewport.scrollTop=_)},onDragScroll:_=>{l.viewport&&(l.viewport.scrollTop=d(_))}}):null}),jO=C.forwardRef((e,t)=>{const{sizes:s,onSizesChange:o,...l}=e,m=Wr(xs,e.__scopeScrollArea),[f,a]=C.useState(),c=C.useRef(null),h=We(t,c,m.onScrollbarXChange);return C.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),i.jsx(W1,{"data-orientation":"horizontal",...l,ref:h,sizes:s,style:{bottom:0,left:m.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:m.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":fu(s)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.x),onDragScroll:g=>e.onDragScroll(g.x),onWheelScroll:(g,d)=>{if(m.viewport){const _=m.viewport.scrollLeft+g.deltaX;e.onWheelScroll(_),Y1(_,d)&&g.preventDefault()}},onResize:()=>{c.current&&m.viewport&&f&&o({content:m.viewport.scrollWidth,viewport:m.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Dc(f.paddingLeft),paddingEnd:Dc(f.paddingRight)}})}})}),EO=C.forwardRef((e,t)=>{const{sizes:s,onSizesChange:o,...l}=e,m=Wr(xs,e.__scopeScrollArea),[f,a]=C.useState(),c=C.useRef(null),h=We(t,c,m.onScrollbarYChange);return C.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),i.jsx(W1,{"data-orientation":"vertical",...l,ref:h,sizes:s,style:{top:0,right:m.dir==="ltr"?0:void 0,left:m.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":fu(s)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.y),onDragScroll:g=>e.onDragScroll(g.y),onWheelScroll:(g,d)=>{if(m.viewport){const _=m.viewport.scrollTop+g.deltaY;e.onWheelScroll(_),Y1(_,d)&&g.preventDefault()}},onResize:()=>{c.current&&m.viewport&&f&&o({content:m.viewport.scrollHeight,viewport:m.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Dc(f.paddingTop),paddingEnd:Dc(f.paddingBottom)}})}})}),[NO,z1]=B1(xs),W1=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,sizes:o,hasThumb:l,onThumbChange:m,onThumbPointerUp:f,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:h,onWheelScroll:g,onResize:d,..._}=e,S=Wr(xs,s),[j,b]=C.useState(null),v=We(t,D=>b(D)),y=C.useRef(null),p=C.useRef(""),x=S.viewport,k=o.content-o.viewport,P=It(g),T=It(c),R=pu(d,10);function E(D){if(y.current){const $=D.clientX-y.current.left,H=D.clientY-y.current.top;h({x:$,y:H})}}return C.useEffect(()=>{const D=$=>{const H=$.target;(j==null?void 0:j.contains(H))&&P($,k)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[x,j,k,P]),C.useEffect(T,[o,T]),Ji(j,R),Ji(S.content,R),i.jsx(NO,{scope:s,scrollbar:j,hasThumb:l,onThumbChange:It(m),onThumbPointerUp:It(f),onThumbPositionChange:T,onThumbPointerDown:It(a),children:i.jsx(Fe.div,{..._,ref:v,style:{position:"absolute",..._.style},onPointerDown:_e(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),y.current=j.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),E(D))}),onPointerMove:_e(e.onPointerMove,E),onPointerUp:_e(e.onPointerUp,D=>{const $=D.target;$.hasPointerCapture(D.pointerId)&&$.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=p.current,S.viewport&&(S.viewport.style.scrollBehavior=""),y.current=null})})})}),Mc="ScrollAreaThumb",U1=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=z1(Mc,e.__scopeScrollArea);return i.jsx(Kt,{present:s||l.hasThumb,children:i.jsx(PO,{ref:t,...o})})}),PO=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,style:o,...l}=e,m=Wr(Mc,s),f=z1(Mc,s),{onThumbPositionChange:a}=f,c=We(t,d=>f.onThumbChange(d)),h=C.useRef(void 0),g=pu(()=>{h.current&&(h.current(),h.current=void 0)},100);return C.useEffect(()=>{const d=m.viewport;if(d){const _=()=>{if(g(),!h.current){const S=AO(d,a);h.current=S,a()}};return a(),d.addEventListener("scroll",_),()=>d.removeEventListener("scroll",_)}},[m.viewport,g,a]),i.jsx(Fe.div,{"data-state":f.hasThumb?"visible":"hidden",...l,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:_e(e.onPointerDownCapture,d=>{const S=d.target.getBoundingClientRect(),j=d.clientX-S.left,b=d.clientY-S.top;f.onThumbPointerDown({x:j,y:b})}),onPointerUp:_e(e.onPointerUp,f.onThumbPointerUp)})});U1.displayName=Mc;var Zp="ScrollAreaCorner",K1=C.forwardRef((e,t)=>{const s=Wr(Zp,e.__scopeScrollArea),o=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&o?i.jsx(RO,{...e,ref:t}):null});K1.displayName=Zp;var RO=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,...o}=e,l=Wr(Zp,s),[m,f]=C.useState(0),[a,c]=C.useState(0),h=!!(m&&a);return Ji(l.scrollbarX,()=>{var d;const g=((d=l.scrollbarX)==null?void 0:d.offsetHeight)||0;l.onCornerHeightChange(g),c(g)}),Ji(l.scrollbarY,()=>{var d;const g=((d=l.scrollbarY)==null?void 0:d.offsetWidth)||0;l.onCornerWidthChange(g),f(g)}),h?i.jsx(Fe.div,{...o,ref:t,style:{width:m,height:a,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Dc(e){return e?parseInt(e,10):0}function G1(e,t){const s=e/t;return isNaN(s)?0:s}function fu(e){const t=G1(e.viewport,e.content),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-s)*t;return Math.max(o,18)}function TO(e,t,s,o="ltr"){const l=fu(s),m=l/2,f=t||m,a=l-f,c=s.scrollbar.paddingStart+f,h=s.scrollbar.size-s.scrollbar.paddingEnd-a,g=s.content-s.viewport,d=o==="ltr"?[0,g]:[g*-1,0];return q1([c,h],d)(e)}function $y(e,t,s="ltr"){const o=fu(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,m=t.scrollbar.size-l,f=t.content-t.viewport,a=m-o,c=s==="ltr"?[0,f]:[f*-1,0],h=ef(e,c);return q1([0,f],[0,a])(h)}function q1(e,t){return s=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(s-e[0])}}function Y1(e,t){return e>0&&e<t}var AO=(e,t=()=>{})=>{let s={left:e.scrollLeft,top:e.scrollTop},o=0;return(function l(){const m={left:e.scrollLeft,top:e.scrollTop},f=s.left!==m.left,a=s.top!==m.top;(f||a)&&t(),s=m,o=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(o)};function pu(e,t){const s=It(e),o=C.useRef(0);return C.useEffect(()=>()=>window.clearTimeout(o.current),[]),C.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(s,t)},[s,t])}function Ji(e,t){const s=It(t);Bt(()=>{let o=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(s)});return l.observe(e),()=>{window.cancelAnimationFrame(o),l.unobserve(e)}}},[e,s])}var X1=F1,MO=$1,DO=K1;const ri=C.forwardRef(({className:e,children:t,...s},o)=>i.jsxs(X1,{ref:o,className:we("relative overflow-hidden",e),...s,children:[i.jsx(MO,{className:"h-full w-full rounded-[inherit]",children:t}),i.jsx(J1,{}),i.jsx(DO,{})]}));ri.displayName=X1.displayName;const J1=C.forwardRef(({className:e,orientation:t="vertical",...s},o)=>i.jsx(Jp,{ref:o,orientation:t,className:we("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...s,children:i.jsx(U1,{className:"relative flex-1 rounded-full bg-border"})}));J1.displayName=Jp.displayName;function em({open:e,onOpenChange:t,onSelect:s,type:o="directory",initialPath:l="~",title:m="Select Path"}){const[f,a]=C.useState(""),[c,h]=C.useState([]),[g,d]=C.useState(!1),[_,S]=C.useState(null),[j,b]=C.useState(""),[v,y]=C.useState("");C.useEffect(()=>{e&&p(l)},[e,l]);const p=async R=>{d(!0),S(null);try{const E=await Ce.browse(R,o);E.error?(S(E.error),E.path&&(a(E.path),y(E.path))):(a(E.path),y(E.path),h(E.items||[]),E.home&&b(E.home))}catch(E){S(E.message)}finally{d(!1)}},x=R=>{R.type==="directory"?p(R.path):o==="file"&&(s(R.path),t(!1))},k=()=>{s(f),t(!1)},P=()=>{v&&p(v)},T=R=>{R.key==="Enter"&&P()};return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"max-w-lg",children:[i.jsx(tr,{children:i.jsxs(sr,{className:"flex items-center gap-2",children:[o==="directory"?i.jsx(Ut,{className:"w-5 h-5"}):i.jsx(Xh,{className:"w-5 h-5"}),m]})}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{value:v,onChange:R=>y(R.target.value),onKeyDown:T,placeholder:"Enter path...",className:"font-mono text-sm flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>p(j||"~"),title:"Go to home",children:i.jsx(rp,{className:"w-4 h-4"})}),i.jsx(de,{onClick:P,disabled:g,children:"Go"})]}),i.jsx("div",{className:"text-xs text-gray-500 font-mono truncate px-1",children:f}),_&&i.jsx("div",{className:"text-sm text-red-600 bg-red-50 p-2 rounded",children:_}),i.jsx(ri,{className:"h-64 border rounded-lg",children:g?i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx(yt,{className:"w-6 h-6 animate-spin text-gray-400"})}):i.jsx("div",{className:"p-1",children:c.length===0?i.jsx("div",{className:"text-sm text-gray-500 p-4 text-center",children:o==="directory"?"No subdirectories":"No files found"}):c.map((R,E)=>i.jsxs("button",{onClick:()=>x(R),className:"w-full flex items-center gap-2 px-3 py-2 text-sm hover:bg-gray-100 rounded transition-colors text-left",children:[R.type==="directory"?i.jsx(Ut,{className:"w-4 h-4 text-blue-500 flex-shrink-0"}):i.jsx(Xh,{className:"w-4 h-4 text-gray-400 flex-shrink-0"}),i.jsx("span",{className:`flex-1 truncate ${R.isParent?"text-gray-500":""}`,children:R.name}),R.type==="directory"&&!R.isParent&&i.jsx(eo,{className:"w-4 h-4 text-gray-400"})]},E))})})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),i.jsx(de,{onClick:k,disabled:!f,children:o==="directory"?"Select Folder":"Select"})]})]})})}const _a={mcps:{icon:pa,color:"text-blue-600",bgColor:"bg-blue-50",label:"MCP Servers"},settings:{icon:Yn,color:"text-gray-600 dark:text-slate-400",bgColor:"bg-gray-50 dark:bg-slate-800",label:"Settings"},command:{icon:Et,color:"text-green-600",bgColor:"bg-green-50",label:"Command"},rule:{icon:qn,color:"text-purple-600",bgColor:"bg-purple-50",label:"Rule"},workflow:{icon:D_,color:"text-cyan-600",bgColor:"bg-cyan-50",label:"Workflow"},claudemd:{icon:vr,color:"text-orange-600",bgColor:"bg-orange-50",label:"CLAUDE.md"},geminimd:{icon:vr,color:"text-blue-600",bgColor:"bg-blue-50",label:"GEMINI.md"},env:{icon:Vc,color:"text-yellow-600",bgColor:"bg-yellow-50",label:".env"},memory:{icon:Ki,color:"text-pink-600",bgColor:"bg-pink-50",label:"Memory"},folder:{icon:Ut,color:"text-yellow-600",bgColor:"bg-yellow-50",label:"Folder"}};function uc({item:e,level:t=0,selectedPath:s,onSelect:o,onContextMenu:l,expandedFolders:m,onToggleFolder:f}){const a=_a[e.type]||_a.folder,c=a.icon,h=s===e.path,g=e.type==="folder",d=m[e.path];return i.jsxs("div",{children:[i.jsxs("div",{className:we("flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer text-sm","hover:bg-gray-100 dark:hover:bg-slate-700 transition-colors",h&&"bg-blue-100 dark:bg-blue-900/30 hover:bg-blue-100 dark:hover:bg-blue-900/30"),style:{paddingLeft:`${t*16+8}px`},onClick:()=>g?f(e.path):o(e),onContextMenu:_=>l(_,e),children:[g&&i.jsx("span",{className:"w-4 h-4 flex items-center justify-center",children:d?i.jsx(ni,{className:"w-3 h-3"}):i.jsx(eo,{className:"w-3 h-3"})}),!g&&i.jsx("span",{className:"w-4"}),i.jsx(c,{className:we("w-4 h-4",a.color)}),i.jsx("span",{className:"flex-1 truncate",children:e.name}),e.mcpCount>0&&i.jsx(ot,{variant:"secondary",className:"text-xs px-1.5 py-0",children:e.mcpCount})]}),g&&d&&e.children&&i.jsx("div",{children:e.children.map(_=>i.jsx(uc,{item:_,level:t+1,selectedPath:s,onSelect:o,onContextMenu:l,expandedFolders:m,onToggleFolder:f},_.path))})]})}function LO({folder:e,isExpanded:t,isHome:s,isProject:o,isSubproject:l,depth:m=0,onToggle:f,onCreateFile:a,onSelectItem:c,selectedPath:h,onContextMenu:g,expandedFolders:d,onToggleFolder:_,templates:S,hasSubprojects:j,onAddSubproject:b,onRemoveSubproject:v,onHideSubproject:y}){var U,V,q,W,G,J,z,M,B,L;const p=(U=e.files)==null?void 0:U.some(F=>F.name==="mcps.json"),x=(V=e.files)==null?void 0:V.some(F=>F.name==="settings.json"),k=(q=e.files)==null?void 0:q.some(F=>F.name==="CLAUDE.md"||F.name==="CLAUDE.md (root)"),P=(W=e.files)==null?void 0:W.some(F=>F.name===".env"),T=()=>s?"bg-indigo-50 dark:bg-indigo-900/20 hover:bg-indigo-100 dark:hover:bg-indigo-900/30":l&&m>1?"bg-gray-50 dark:bg-slate-800 hover:bg-gray-100 dark:hover:bg-slate-700":l?"bg-amber-50 dark:bg-amber-900/20 hover:bg-amber-100 dark:hover:bg-amber-900/30":o?"bg-green-50 dark:bg-green-900/20 hover:bg-green-100 dark:hover:bg-green-900/30":"bg-gray-50 dark:bg-slate-800 hover:bg-gray-100 dark:hover:bg-slate-700",R=()=>s?"text-indigo-700 dark:text-indigo-400":l&&m>1?"text-gray-600 dark:text-slate-400":l?"text-amber-700 dark:text-amber-400":o?"text-green-700 dark:text-green-400":"text-gray-700 dark:text-slate-300",D=s?rp:t?yn:Ut,$=s?"Home":e.label,H=(((G=e.files)==null?void 0:G.length)||0)+(((J=e.geminiFiles)==null?void 0:J.length)||0)+(((z=e.agentFiles)==null?void 0:z.length)||0);return i.jsxs("div",{className:"border-b border-gray-200 dark:border-slate-700",children:[i.jsxs("div",{className:we("flex items-center gap-2 py-2 cursor-pointer transition-colors",T()),style:{paddingLeft:`${12+m*16}px`,paddingRight:"12px"},onClick:f,children:[i.jsx("span",{className:"w-4 h-4 flex items-center justify-center text-gray-500",children:t?i.jsx(ni,{className:"w-4 h-4"}):i.jsx(eo,{className:"w-4 h-4"})}),i.jsx(D,{className:we("w-4 h-4",R())}),i.jsx("span",{className:we("flex-1 min-w-0 font-medium text-sm truncate",R()),children:$}),i.jsxs(Ia,{children:[i.jsx(Ba,{asChild:!0,onClick:F=>F.stopPropagation(),children:i.jsx(de,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 flex-shrink-0 hover:bg-white/50 dark:hover:bg-slate-900/50",children:i.jsx(Ot,{className:"w-4 h-4"})})}),i.jsxs(co,{align:"end",className:"w-48",children:[i.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b mb-1",children:[o&&j&&i.jsx(ot,{variant:"outline",className:"text-[10px] px-1 py-0 bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400 border-green-300 dark:border-green-700",children:"root"}),!e.exists&&!s&&i.jsx(ot,{variant:"outline",className:"text-[10px] px-1 py-0",children:"no config"}),((M=e.appliedTemplate)==null?void 0:M.template)&&i.jsx(ot,{variant:"outline",className:"text-[10px] px-1 py-0 bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-400 border-purple-300 dark:border-purple-700",children:e.appliedTemplate.template.split("/").pop()}),!l&&e.exists&&!((B=e.appliedTemplate)!=null&&B.template)&&H===0&&i.jsx("span",{className:"text-[10px] text-muted-foreground",children:"configured"})]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"mcps")},disabled:p,className:p?"opacity-50":"",children:[i.jsx(pa,{className:"w-4 h-4 mr-2"}),"mcps.json",p&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"settings")},disabled:x,className:x?"opacity-50":"",children:[i.jsx(Yn,{className:"w-4 h-4 mr-2"}),"settings.json",x&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"env")},disabled:P,className:P?"opacity-50":"",children:[i.jsx(Vc,{className:"w-4 h-4 mr-2"}),".env",P&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),i.jsx(Rs,{}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"command")},children:[i.jsx(Et,{className:"w-4 h-4 mr-2"}),"New Command"]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"rule")},children:[i.jsx(qn,{className:"w-4 h-4 mr-2"}),"New Rule"]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"workflow")},children:[i.jsx(D_,{className:"w-4 h-4 mr-2"}),"New Workflow"]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"memory")},children:[i.jsx(Ki,{className:"w-4 h-4 mr-2"}),"New Memory"]}),i.jsx(Rs,{}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"claudemd")},disabled:k,className:k?"opacity-50":"",children:[i.jsx(vr,{className:"w-4 h-4 mr-2"}),"CLAUDE.md",k&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),(o||l)&&b&&i.jsxs(i.Fragment,{children:[i.jsx(Rs,{}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),b(e.dir)},children:[i.jsx(M_,{className:"w-4 h-4 mr-2"}),"Add Sub-project"]})]}),l&&y&&i.jsxs(ct,{onClick:F=>{F.stopPropagation(),y(e.dir)},children:[i.jsx(T_,{className:"w-4 h-4 mr-2"}),"Hide"]}),e.isManual&&v&&i.jsxs(ct,{onClick:F=>{F.stopPropagation(),v(e.dir)},className:"text-destructive focus:text-destructive",children:[i.jsx(xn,{className:"w-4 h-4 mr-2"}),"Remove"]}),S&&S.length>0&&(l||!j)&&!((L=e.appliedTemplate)!=null&&L.template)&&i.jsxs(i.Fragment,{children:[i.jsx(Rs,{}),i.jsxs(mf,{children:[i.jsxs(Tc,{children:[i.jsx(to,{className:"w-4 h-4 mr-2"}),"Apply Template"]}),i.jsxs(Ac,{children:[S.map(F=>{const Q=F.id||F.name;return i.jsx(ct,{onClick:se=>{se.stopPropagation(),a(e.dir,"template",Q)},children:F.name},Q)}),i.jsx(Rs,{}),i.jsxs(mf,{children:[i.jsx(Tc,{className:"text-xs text-muted-foreground",children:"Mark as Applied (migration)"}),i.jsx(Ac,{children:S.map(F=>{const Q=F.id||F.name;return i.jsx(ct,{onClick:se=>{se.stopPropagation(),a(e.dir,"mark-template",Q)},children:F.name},Q)})})]})]})]})]})]})]})]}),t&&i.jsxs("div",{className:"bg-white dark:bg-slate-950 py-1",children:[e.files&&e.files.length>0&&i.jsxs("div",{className:"mb-1",children:[i.jsxs("div",{className:"px-4 py-1 text-[10px] font-medium text-orange-600 dark:text-orange-400 uppercase tracking-wide flex items-center gap-1",children:[i.jsx(ar,{className:"w-3 h-3"}),"Claude Code"]}),e.files.map(F=>i.jsx(uc,{item:F,selectedPath:h,onSelect:c,onContextMenu:g,expandedFolders:d,onToggleFolder:_},F.path))]}),e.geminiFiles&&e.geminiFiles.length>0&&i.jsxs("div",{className:"mb-1 border-t border-dashed border-gray-200 dark:border-slate-700 pt-1",children:[i.jsxs("div",{className:"px-4 py-1 text-[10px] font-medium text-blue-600 dark:text-blue-400 uppercase tracking-wide flex items-center gap-1",children:[i.jsx(ar,{className:"w-3 h-3"}),"Gemini CLI"]}),e.geminiFiles.map(F=>i.jsx(uc,{item:F,selectedPath:h,onSelect:c,onContextMenu:g,expandedFolders:d,onToggleFolder:_},F.path))]}),e.agentFiles&&e.agentFiles.length>0&&i.jsxs("div",{className:"mb-1 border-t border-dashed border-gray-200 dark:border-slate-700 pt-1",children:[i.jsxs("div",{className:"px-4 py-1 text-[10px] font-medium text-purple-600 dark:text-purple-400 uppercase tracking-wide flex items-center gap-1",children:[i.jsx(ar,{className:"w-3 h-3"}),"Antigravity"]}),e.agentFiles.map(F=>i.jsx(uc,{item:F,selectedPath:h,onSelect:c,onContextMenu:g,expandedFolders:d,onToggleFolder:_},F.path))]}),(!e.files||e.files.length===0)&&(!e.geminiFiles||e.geminiFiles.length===0)&&(!e.agentFiles||e.agentFiles.length===0)&&i.jsx("div",{className:"px-4 py-3 text-sm text-gray-400 dark:text-slate-500 italic text-center",children:"No config files. Use + to create."})]})]})}function OO({content:e,parsed:t,onSave:s,registry:o}){const[l,m]=C.useState(t||{include:[],mcpServers:{}}),[f,a]=C.useState("rich"),[c,h]=C.useState(JSON.stringify(t||{},null,2)),[g,d]=C.useState(!1),[_,S]=C.useState({open:!1,json:""});C.useEffect(()=>{m(t||{include:[],mcpServers:{}}),h(JSON.stringify(t||{},null,2)),d(!1)},[t]);const j=p=>{var k;const x=(k=l.include)!=null&&k.includes(p)?l.include.filter(P=>P!==p):[...l.include||[],p];m({...l,include:x}),d(!0)},b=()=>{if(f==="json")try{const p=JSON.parse(c);s(JSON.stringify(p,null,2))}catch{ae.error("Invalid JSON");return}else s(JSON.stringify(l,null,2));d(!1)},v=()=>{if(!_.json.trim()){ae.error("Please paste the MCP JSON configuration");return}try{let p;try{p=JSON.parse(_.json)}catch{ae.error("Invalid JSON format");return}let x={};if(p.mcpServers&&typeof p.mcpServers=="object")x=p.mcpServers;else if(typeof p=="object"&&!Array.isArray(p)){if(Object.keys(p).includes("command")){ae.error('JSON is missing the MCP name. Expected: { "name": { "command": "...", "args": [...] } }');return}x=p}if(Object.keys(x).length===0){ae.error("No MCP configurations found in the JSON");return}for(const[R,E]of Object.entries(x))if(!E.command){ae.error(`MCP "${R}" is missing required "command" field`);return}const k={...l.mcpServers||{},...x},P={...l,mcpServers:k};m(P),h(JSON.stringify(P,null,2)),d(!0);const T=Object.keys(x).length;ae.success(`Added ${T} MCP${T>1?"s":""} - click Save to apply`),S({open:!1,json:""})}catch(p){ae.error("Failed to add: "+p.message)}},y=o!=null&&o.mcpServers?Object.keys(o.mcpServers):[];return i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 border-b bg-gray-50 dark:bg-slate-800",children:[i.jsx(qc,{value:f,onValueChange:a,children:i.jsxs(Pa,{className:"h-8",children:[i.jsx(es,{value:"rich",className:"text-xs px-3",children:"Rich Editor"}),i.jsx(es,{value:"json",className:"text-xs px-3",children:"JSON"})]})}),i.jsxs("div",{className:"flex gap-2",children:[i.jsxs(de,{size:"sm",variant:"outline",onClick:()=>S({open:!0,json:""}),children:[i.jsx(Ot,{className:"w-4 h-4 mr-1"}),"Add MCP"]}),g&&i.jsxs(de,{size:"sm",onClick:b,children:[i.jsx(ro,{className:"w-4 h-4 mr-1"}),"Save"]})]})]}),i.jsx(ri,{className:"flex-1",children:f==="rich"?i.jsxs("div",{className:"p-4 space-y-4",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:"Registry MCPs"}),i.jsx("div",{className:"space-y-2",children:y.length===0?i.jsx("p",{className:"text-sm text-gray-500 dark:text-slate-400",children:"No MCPs in registry"}):y.map(p=>{var x;return i.jsxs("div",{className:"flex items-center justify-between p-2 rounded border bg-white dark:bg-slate-950",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(pa,{className:"w-4 h-4 text-blue-500"}),i.jsx("span",{className:"text-sm",children:p})]}),i.jsx(St,{checked:(x=l.include)==null?void 0:x.includes(p),onCheckedChange:()=>j(p)})]},p)})})]}),Object.keys(l.mcpServers||{}).length>0&&i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:"Inline MCPs"}),i.jsx("div",{className:"space-y-2",children:Object.entries(l.mcpServers).map(([p,x])=>{var k;return i.jsxs("div",{className:"p-2 rounded border bg-white dark:bg-slate-950 group",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium",children:p}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(ot,{variant:"outline",className:"text-xs",children:"inline"}),i.jsx(de,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 opacity-0 group-hover:opacity-100 text-red-500 hover:text-red-700 hover:bg-red-50",onClick:()=>{const{[p]:P,...T}=l.mcpServers,R={...l,mcpServers:T};m(R),h(JSON.stringify(R,null,2)),d(!0),ae.success(`Removed ${p} - click Save to apply`)},children:i.jsx(xn,{className:"w-3.5 h-3.5"})})]})]}),i.jsxs("p",{className:"text-xs text-gray-500 dark:text-slate-400 mt-1 font-mono",children:[x.command," ",(k=x.args)==null?void 0:k.join(" ")]})]},p)})})]})]}):i.jsx(it,{className:"w-full h-full min-h-[400px] font-mono text-sm border-0 rounded-none resize-none",value:c,onChange:p=>{h(p.target.value),d(!0)}})}),i.jsx(lr,{open:_.open,onOpenChange:p=>S({..._,open:p}),children:i.jsxs(er,{className:"bg-white dark:bg-slate-950 max-w-2xl",children:[i.jsxs(tr,{children:[i.jsx(sr,{children:"Add MCP to Config"}),i.jsx(Rr,{children:"Paste the MCP JSON configuration to add to this config file."})]}),i.jsxs("div",{className:"py-4",children:[i.jsx(it,{value:_.json,onChange:p=>S({..._,json:p.target.value}),placeholder:`{
|
|
450
|
+
}`}),children:[i.jsx(Ot,{className:"w-4 h-4 mr-1"}),"Add MCP"]})]}),i.jsx("div",{className:"space-y-2",children:Object.keys(x).length===0?i.jsx("p",{className:"text-sm text-muted-foreground italic",children:"No MCP servers configured"}):Object.entries(x).map(([R,E])=>i.jsxs(cS,{open:j[R],onOpenChange:()=>T(R),children:[i.jsxs("div",{className:"flex items-center justify-between p-3 rounded-lg border bg-background group",children:[i.jsxs(uS,{className:"flex items-center gap-2 flex-1 text-left",children:[j[R]?i.jsx(ni,{className:"w-4 h-4 text-muted-foreground"}):i.jsx(eo,{className:"w-4 h-4 text-muted-foreground"}),i.jsx(pa,{className:"w-4 h-4 text-blue-500"}),i.jsx("span",{className:"font-medium text-sm",children:R}),i.jsx("span",{className:"text-xs text-muted-foreground font-mono",children:E.command})]}),i.jsx(de,{size:"sm",variant:"ghost",className:"h-7 w-7 p-0 opacity-0 group-hover:opacity-100 text-destructive hover:text-destructive",onClick:()=>P(R),children:i.jsx(xn,{className:"w-4 h-4"})})]}),i.jsx(dS,{children:i.jsx("div",{className:"mt-2 ml-6 p-3 rounded-lg bg-muted/50 border",children:i.jsx("pre",{className:"text-xs font-mono text-muted-foreground overflow-x-auto",children:JSON.stringify(E,null,2)})})})]},R))})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(CT,{className:"w-4 h-4 text-blue-500"}),"Appearance"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Theme"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Color theme for the CLI interface"})]}),i.jsxs(qi,{value:p("theme","name","Default"),onValueChange:R=>y("theme","name",R),children:[i.jsx(Zn,{className:"w-40",children:i.jsx(Yi,{})}),i.jsx(ei,{children:gO.map(R=>i.jsx(gr,{value:R.id,children:R.name},R.id))})]})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Output Format"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Format for CLI output"})]}),i.jsxs(qi,{value:p("core","outputFormat","text"),onValueChange:R=>y("core","outputFormat",R),children:[i.jsx(Zn,{className:"w-40",children:i.jsx(Yi,{})}),i.jsxs(ei,{children:[i.jsx(gr,{value:"text",children:"Text"}),i.jsx(gr,{value:"json",children:"JSON"})]})]})]})]})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(I_,{className:"w-4 h-4 text-blue-500"}),"Display Options"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Update Window Title"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Show status icons in terminal title"})]}),i.jsx(St,{checked:p("ui","updateWindowTitle",!0),onCheckedChange:R=>y("ui","updateWindowTitle",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Show Line Numbers"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Display line numbers in chat"})]}),i.jsx(St,{checked:p("ui","showLineNumbers",!1),onCheckedChange:R=>y("ui","showLineNumbers",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Show Citations"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Show citations for generated text"})]}),i.jsx(St,{checked:p("ui","showCitations",!1),onCheckedChange:R=>y("ui","showCitations",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Hide Context Summary"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Hide GEMINI.md and MCP servers above input"})]}),i.jsx(St,{checked:p("ui","hideContextSummary",!1),onCheckedChange:R=>y("ui","hideContextSummary",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Hide Working Directory"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Hide current directory path in footer"})]}),i.jsx(St,{checked:p("ui","hideWorkingDirectory",!1),onCheckedChange:R=>y("ui","hideWorkingDirectory",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Hide Model Info"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Hide model name and context usage in footer"})]}),i.jsx(St,{checked:p("ui","hideModelInfo",!1),onCheckedChange:R=>y("ui","hideModelInfo",R)})]})]})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(Yn,{className:"w-4 h-4 text-blue-500"}),"Advanced"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Vim Keybindings"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Use Vim keybindings in the prompt editor"})]}),i.jsx(St,{checked:p("core","enableVimKeybindings",!1),onCheckedChange:R=>y("core","enableVimKeybindings",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Auto-Compress History"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Compress conversation when context exceeds threshold"})]}),i.jsx(St,{checked:p("core","autoCompressHistory",!0),onCheckedChange:R=>y("core","autoCompressHistory",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Sandbox Mode"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Run tool executions in isolated container"})]}),i.jsx(St,{checked:p("sandbox","enabled",!1),onCheckedChange:R=>y("sandbox","enabled",R)})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsxs("label",{className:"text-sm font-medium text-foreground flex items-center gap-2",children:["YOLO Mode",i.jsx(ot,{variant:"destructive",className:"text-xs",children:"Dangerous"})]}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Auto-approve all tool calls without confirmation"})]}),i.jsx(St,{checked:p("core","yoloMode",!1),onCheckedChange:R=>y("core","yoloMode",R)})]})]})]}),i.jsxs("div",{className:"border border-border rounded-lg p-4 bg-card",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(ja,{className:"w-4 h-4 text-blue-500"}),"Privacy"]}),i.jsx("div",{className:"space-y-4",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Usage Statistics"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Allow collection of anonymous usage data"})]}),i.jsx(St,{checked:p("privacy","usageStatisticsEnabled",!0),onCheckedChange:R=>y("privacy","usageStatisticsEnabled",R)})]})})]})]}),i.jsx(lr,{open:_.open,onOpenChange:R=>S({..._,open:R}),children:i.jsxs(er,{className:"bg-card",children:[i.jsxs(tr,{children:[i.jsx(sr,{children:"Add MCP Server"}),i.jsx(Rr,{children:"Add a new MCP server to Gemini CLI"})]}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Name"}),i.jsx(rt,{value:_.name,onChange:R=>S({..._,name:R.target.value}),placeholder:"my-mcp-server",className:"mt-1"})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Configuration (JSON)"}),i.jsx(it,{value:_.json,onChange:R=>S({..._,json:R.target.value}),className:"mt-1 font-mono text-sm",rows:6})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:()=>S({open:!1,name:"",json:""}),children:"Cancel"}),i.jsxs(de,{onClick:k,children:[i.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Add MCP"]})]})]})})]})}var hu="Checkbox",[vO]=_r(hu),[yO,qp]=vO(hu);function xO(e){const{__scopeCheckbox:t,checked:s,children:o,defaultChecked:l,disabled:m,form:f,name:a,onCheckedChange:c,required:h,value:g="on",internal_do_not_use_render:d}=e,[_,S]=ts({prop:s,defaultProp:l??!1,onChange:c,caller:hu}),[j,b]=C.useState(null),[v,y]=C.useState(null),p=C.useRef(!1),x=j?!!f||!!j.closest("form"):!0,k={checked:_,disabled:m,setChecked:S,control:j,setControl:b,name:a,form:f,value:g,hasConsumerStoppedPropagationRef:p,required:h,defaultChecked:mn(l)?!1:l,isFormControl:x,bubbleInput:v,setBubbleInput:y};return i.jsx(yO,{scope:t,...k,children:_O(d)?d(k):o})}var R1="CheckboxTrigger",T1=C.forwardRef(({__scopeCheckbox:e,onKeyDown:t,onClick:s,...o},l)=>{const{control:m,value:f,disabled:a,checked:c,required:h,setControl:g,setChecked:d,hasConsumerStoppedPropagationRef:_,isFormControl:S,bubbleInput:j}=qp(R1,e),b=We(l,g),v=C.useRef(c);return C.useEffect(()=>{const y=m==null?void 0:m.form;if(y){const p=()=>d(v.current);return y.addEventListener("reset",p),()=>y.removeEventListener("reset",p)}},[m,d]),i.jsx(Fe.button,{type:"button",role:"checkbox","aria-checked":mn(c)?"mixed":c,"aria-required":h,"data-state":O1(c),"data-disabled":a?"":void 0,disabled:a,value:f,...o,ref:b,onKeyDown:_e(t,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:_e(s,y=>{d(p=>mn(p)?!0:!p),j&&S&&(_.current=y.isPropagationStopped(),_.current||y.stopPropagation())})})});T1.displayName=R1;var Yp=C.forwardRef((e,t)=>{const{__scopeCheckbox:s,name:o,checked:l,defaultChecked:m,required:f,disabled:a,value:c,onCheckedChange:h,form:g,...d}=e;return i.jsx(xO,{__scopeCheckbox:s,checked:l,defaultChecked:m,disabled:a,required:f,onCheckedChange:h,name:o,form:g,value:c,internal_do_not_use_render:({isFormControl:_})=>i.jsxs(i.Fragment,{children:[i.jsx(T1,{...d,ref:t,__scopeCheckbox:s}),_&&i.jsx(L1,{__scopeCheckbox:s})]})})});Yp.displayName=hu;var A1="CheckboxIndicator",M1=C.forwardRef((e,t)=>{const{__scopeCheckbox:s,forceMount:o,...l}=e,m=qp(A1,s);return i.jsx(Kt,{present:o||mn(m.checked)||m.checked===!0,children:i.jsx(Fe.span,{"data-state":O1(m.checked),"data-disabled":m.disabled?"":void 0,...l,ref:t,style:{pointerEvents:"none",...e.style}})})});M1.displayName=A1;var D1="CheckboxBubbleInput",L1=C.forwardRef(({__scopeCheckbox:e,...t},s)=>{const{control:o,hasConsumerStoppedPropagationRef:l,checked:m,defaultChecked:f,required:a,disabled:c,name:h,value:g,form:d,bubbleInput:_,setBubbleInput:S}=qp(D1,e),j=We(s,S),b=cp(m),v=up(o);C.useEffect(()=>{const p=_;if(!p)return;const x=window.HTMLInputElement.prototype,P=Object.getOwnPropertyDescriptor(x,"checked").set,T=!l.current;if(b!==m&&P){const R=new Event("click",{bubbles:T});p.indeterminate=mn(m),P.call(p,mn(m)?!1:m),p.dispatchEvent(R)}},[_,b,m,l]);const y=C.useRef(mn(m)?!1:m);return i.jsx(Fe.input,{type:"checkbox","aria-hidden":!0,defaultChecked:f??y.current,required:a,disabled:c,name:h,value:g,form:d,...t,tabIndex:-1,ref:j,style:{...t.style,...v,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});L1.displayName=D1;function _O(e){return typeof e=="function"}function mn(e){return e==="indeterminate"}function O1(e){return mn(e)?"indeterminate":e?"checked":"unchecked"}const I1=C.forwardRef(({className:e,...t},s)=>i.jsx(Yp,{ref:s,className:we("peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",e),...t,children:i.jsx(M1,{className:we("flex items-center justify-center text-current"),children:i.jsx(Ar,{className:"h-4 w-4"})})}));I1.displayName=Yp.displayName;const Ph={claude:{name:"Claude Code",folder:".claude",color:"text-orange-600",bg:"bg-orange-50",darkBg:"dark:bg-orange-950/30"},gemini:{name:"Gemini CLI",folder:".gemini",color:"text-blue-600",bg:"bg-blue-50",darkBg:"dark:bg-blue-950/30"},antigravity:{name:"Antigravity",folder:".agent",color:"text-purple-600",bg:"bg-purple-50",darkBg:"dark:bg-purple-950/30"}};function wO({open:e,onOpenChange:t,projectDir:s,onSynced:o}){var E,D,$;const[l,m]=C.useState("claude"),[f,a]=C.useState("antigravity"),[c,h]=C.useState(null),[g,d]=C.useState(!1),[_,S]=C.useState(!1),[j,b]=C.useState(new Set);C.useEffect(()=>{e&&s&&v()},[e,l,f,s]),C.useEffect(()=>{e&&b(new Set)},[e]);const v=async()=>{var H;d(!0);try{const U=await Ce.getSyncPreview(s,l,f);h(U);const V=new Set(((H=U.files)==null?void 0:H.filter(q=>q.status==="new"||q.status==="different").map(q=>q.name))||[]);b(V)}catch(U){ae.error("Failed to load sync preview: "+U.message),h(null)}finally{d(!1)}},y=()=>{m(f),a(l)},p=H=>{const U=new Set(j);U.has(H)?U.delete(H):U.add(H),b(U)},x=()=>{var H,U;j.size===((H=c==null?void 0:c.files)==null?void 0:H.length)?b(new Set):b(new Set(((U=c==null?void 0:c.files)==null?void 0:U.map(V=>V.name))||[]))},k=async()=>{if(j.size===0){ae.error("Please select at least one file to sync");return}S(!0);try{const H=await Ce.syncRules(s,l,f,Array.from(j));H.success?(ae.success(`Synced ${H.synced.length} file(s) to ${Ph[f].name}`),o==null||o(),t(!1)):ae.error(H.error||"Sync failed")}catch(H){ae.error("Sync failed: "+H.message)}finally{S(!1)}},P=H=>{switch(H){case"new":return i.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-green-100 text-green-700",children:"New"});case"different":return i.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-yellow-100 text-yellow-700",children:"Modified"});case"identical":return i.jsx("span",{className:"text-xs px-1.5 py-0.5 rounded bg-gray-100 dark:bg-slate-700 text-gray-500 dark:text-slate-400",children:"Same"});default:return null}},T=Ph[l],R=Ph[f];return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"sm:max-w-lg",children:[i.jsxs(tr,{children:[i.jsxs(sr,{className:"flex items-center gap-2",children:[i.jsx(yr,{className:"w-5 h-5 text-indigo-500"}),"Sync Rules Between Tools"]}),i.jsx(Rr,{children:"Copy rules from one AI tool's configuration to another."})]}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{className:"flex items-center gap-3 p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex-1",children:[i.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"From"}),i.jsxs(qi,{value:l,onValueChange:m,children:[i.jsx(Zn,{className:"w-full",children:i.jsx(Yi,{})}),i.jsxs(ei,{children:[i.jsx(gr,{value:"claude",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-orange-500"}),"Claude Code"]})}),i.jsx(gr,{value:"gemini",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-blue-500"}),"Gemini CLI"]})}),i.jsx(gr,{value:"antigravity",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-purple-500"}),"Antigravity"]})})]})]})]}),i.jsx(de,{variant:"ghost",size:"icon",onClick:y,className:"mt-5",title:"Swap direction",children:i.jsx(P_,{className:"w-4 h-4"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("label",{className:"text-xs text-muted-foreground mb-1 block",children:"To"}),i.jsxs(qi,{value:f,onValueChange:a,children:[i.jsx(Zn,{className:"w-full",children:i.jsx(Yi,{})}),i.jsxs(ei,{children:[i.jsx(gr,{value:"claude",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-orange-500"}),"Claude Code"]})}),i.jsx(gr,{value:"gemini",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-blue-500"}),"Gemini CLI"]})}),i.jsx(gr,{value:"antigravity",children:i.jsxs("span",{className:"flex items-center gap-2",children:[i.jsx(ar,{className:"w-3 h-3 text-purple-500"}),"Antigravity"]})})]})]})]})]}),i.jsxs("div",{className:"text-xs text-muted-foreground space-y-1",children:[i.jsxs("div",{children:["Source: ",i.jsxs("code",{className:"bg-muted px-1 rounded",children:[T.folder,"/rules/"]})]}),i.jsxs("div",{children:["Target: ",i.jsxs("code",{className:"bg-muted px-1 rounded",children:[R.folder,"/rules/"]})]})]}),i.jsxs("div",{className:"border rounded-lg",children:[i.jsxs("div",{className:"flex items-center justify-between px-3 py-2 border-b bg-muted/30",children:[i.jsx("span",{className:"text-sm font-medium",children:"Rules to Sync"}),((E=c==null?void 0:c.files)==null?void 0:E.length)>0&&i.jsx(de,{variant:"ghost",size:"sm",onClick:x,className:"h-6 text-xs",children:j.size===c.files.length?"Deselect All":"Select All"})]}),i.jsx("div",{className:"max-h-64 overflow-auto",children:g?i.jsx("div",{className:"flex items-center justify-center py-8",children:i.jsx(yt,{className:"w-5 h-5 animate-spin text-muted-foreground"})}):c!=null&&c.error?i.jsxs("div",{className:"flex items-center gap-2 p-4 text-sm text-amber-600",children:[i.jsx(da,{className:"w-4 h-4"}),c.error]}):((D=c==null?void 0:c.files)==null?void 0:D.length)===0?i.jsx("div",{className:"p-4 text-sm text-muted-foreground text-center",children:"No rules found in source folder"}):i.jsx("div",{className:"divide-y",children:($=c==null?void 0:c.files)==null?void 0:$.map(H=>i.jsxs("label",{className:we("flex items-center gap-3 px-3 py-2 cursor-pointer hover:bg-muted/30",j.has(H.name)&&"bg-primary/5"),children:[i.jsx(I1,{checked:j.has(H.name),onCheckedChange:()=>p(H.name)}),i.jsx(vr,{className:"w-4 h-4 text-purple-500"}),i.jsx("span",{className:"flex-1 text-sm",children:H.name}),P(H.status)]},H.name))})})]}),(c==null?void 0:c.files)&&j.size>0&&i.jsxs("p",{className:"text-xs text-muted-foreground",children:[j.size," file(s) selected for sync"]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),i.jsx(de,{onClick:k,disabled:_||g||j.size===0,children:_?i.jsxs(i.Fragment,{children:[i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}),"Syncing..."]}):i.jsxs(i.Fragment,{children:[i.jsx(Ar,{className:"w-4 h-4 mr-2"}),"Sync ",j.size," File(s)"]})})]})]})})}function bO(e,t){return C.useReducer((s,o)=>t[s][o]??s,e)}var Xp="ScrollArea",[B1]=_r(Xp),[SO,Wr]=B1(Xp),F1=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,type:o="hover",dir:l,scrollHideDelay:m=600,...f}=e,[a,c]=C.useState(null),[h,g]=C.useState(null),[d,_]=C.useState(null),[S,j]=C.useState(null),[b,v]=C.useState(null),[y,p]=C.useState(0),[x,k]=C.useState(0),[P,T]=C.useState(!1),[R,E]=C.useState(!1),D=We(t,H=>c(H)),$=Ea(l);return i.jsx(SO,{scope:s,type:o,dir:$,scrollHideDelay:m,scrollArea:a,viewport:h,onViewportChange:g,content:d,onContentChange:_,scrollbarX:S,onScrollbarXChange:j,scrollbarXEnabled:P,onScrollbarXEnabledChange:T,scrollbarY:b,onScrollbarYChange:v,scrollbarYEnabled:R,onScrollbarYEnabledChange:E,onCornerWidthChange:p,onCornerHeightChange:k,children:i.jsx(Fe.div,{dir:$,...f,ref:D,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":x+"px",...e.style}})})});F1.displayName=Xp;var H1="ScrollAreaViewport",$1=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,children:o,nonce:l,...m}=e,f=Wr(H1,s),a=C.useRef(null),c=We(t,a,f.onViewportChange);return i.jsxs(i.Fragment,{children:[i.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:l}),i.jsx(Fe.div,{"data-radix-scroll-area-viewport":"",...m,ref:c,style:{overflowX:f.scrollbarXEnabled?"scroll":"hidden",overflowY:f.scrollbarYEnabled?"scroll":"hidden",...e.style},children:i.jsx("div",{ref:f.onContentChange,style:{minWidth:"100%",display:"table"},children:o})})]})});$1.displayName=H1;var xs="ScrollAreaScrollbar",Jp=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=Wr(xs,e.__scopeScrollArea),{onScrollbarXEnabledChange:m,onScrollbarYEnabledChange:f}=l,a=e.orientation==="horizontal";return C.useEffect(()=>(a?m(!0):f(!0),()=>{a?m(!1):f(!1)}),[a,m,f]),l.type==="hover"?i.jsx(CO,{...o,ref:t,forceMount:s}):l.type==="scroll"?i.jsx(kO,{...o,ref:t,forceMount:s}):l.type==="auto"?i.jsx(V1,{...o,ref:t,forceMount:s}):l.type==="always"?i.jsx(Qp,{...o,ref:t}):null});Jp.displayName=xs;var CO=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=Wr(xs,e.__scopeScrollArea),[m,f]=C.useState(!1);return C.useEffect(()=>{const a=l.scrollArea;let c=0;if(a){const h=()=>{window.clearTimeout(c),f(!0)},g=()=>{c=window.setTimeout(()=>f(!1),l.scrollHideDelay)};return a.addEventListener("pointerenter",h),a.addEventListener("pointerleave",g),()=>{window.clearTimeout(c),a.removeEventListener("pointerenter",h),a.removeEventListener("pointerleave",g)}}},[l.scrollArea,l.scrollHideDelay]),i.jsx(Kt,{present:s||m,children:i.jsx(V1,{"data-state":m?"visible":"hidden",...o,ref:t})})}),kO=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=Wr(xs,e.__scopeScrollArea),m=e.orientation==="horizontal",f=pu(()=>c("SCROLL_END"),100),[a,c]=bO("hidden",{hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}});return C.useEffect(()=>{if(a==="idle"){const h=window.setTimeout(()=>c("HIDE"),l.scrollHideDelay);return()=>window.clearTimeout(h)}},[a,l.scrollHideDelay,c]),C.useEffect(()=>{const h=l.viewport,g=m?"scrollLeft":"scrollTop";if(h){let d=h[g];const _=()=>{const S=h[g];d!==S&&(c("SCROLL"),f()),d=S};return h.addEventListener("scroll",_),()=>h.removeEventListener("scroll",_)}},[l.viewport,m,c,f]),i.jsx(Kt,{present:s||a!=="hidden",children:i.jsx(Qp,{"data-state":a==="hidden"?"hidden":"visible",...o,ref:t,onPointerEnter:_e(e.onPointerEnter,()=>c("POINTER_ENTER")),onPointerLeave:_e(e.onPointerLeave,()=>c("POINTER_LEAVE"))})})}),V1=C.forwardRef((e,t)=>{const s=Wr(xs,e.__scopeScrollArea),{forceMount:o,...l}=e,[m,f]=C.useState(!1),a=e.orientation==="horizontal",c=pu(()=>{if(s.viewport){const h=s.viewport.offsetWidth<s.viewport.scrollWidth,g=s.viewport.offsetHeight<s.viewport.scrollHeight;f(a?h:g)}},10);return Ji(s.viewport,c),Ji(s.content,c),i.jsx(Kt,{present:o||m,children:i.jsx(Qp,{"data-state":m?"visible":"hidden",...l,ref:t})})}),Qp=C.forwardRef((e,t)=>{const{orientation:s="vertical",...o}=e,l=Wr(xs,e.__scopeScrollArea),m=C.useRef(null),f=C.useRef(0),[a,c]=C.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),h=G1(a.viewport,a.content),g={...o,sizes:a,onSizesChange:c,hasThumb:h>0&&h<1,onThumbChange:_=>m.current=_,onThumbPointerUp:()=>f.current=0,onThumbPointerDown:_=>f.current=_};function d(_,S){return TO(_,f.current,a,S)}return s==="horizontal"?i.jsx(jO,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&m.current){const _=l.viewport.scrollLeft,S=$y(_,a,l.dir);m.current.style.transform=`translate3d(${S}px, 0, 0)`}},onWheelScroll:_=>{l.viewport&&(l.viewport.scrollLeft=_)},onDragScroll:_=>{l.viewport&&(l.viewport.scrollLeft=d(_,l.dir))}}):s==="vertical"?i.jsx(EO,{...g,ref:t,onThumbPositionChange:()=>{if(l.viewport&&m.current){const _=l.viewport.scrollTop,S=$y(_,a);m.current.style.transform=`translate3d(0, ${S}px, 0)`}},onWheelScroll:_=>{l.viewport&&(l.viewport.scrollTop=_)},onDragScroll:_=>{l.viewport&&(l.viewport.scrollTop=d(_))}}):null}),jO=C.forwardRef((e,t)=>{const{sizes:s,onSizesChange:o,...l}=e,m=Wr(xs,e.__scopeScrollArea),[f,a]=C.useState(),c=C.useRef(null),h=We(t,c,m.onScrollbarXChange);return C.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),i.jsx(W1,{"data-orientation":"horizontal",...l,ref:h,sizes:s,style:{bottom:0,left:m.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:m.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":fu(s)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.x),onDragScroll:g=>e.onDragScroll(g.x),onWheelScroll:(g,d)=>{if(m.viewport){const _=m.viewport.scrollLeft+g.deltaX;e.onWheelScroll(_),Y1(_,d)&&g.preventDefault()}},onResize:()=>{c.current&&m.viewport&&f&&o({content:m.viewport.scrollWidth,viewport:m.viewport.offsetWidth,scrollbar:{size:c.current.clientWidth,paddingStart:Dc(f.paddingLeft),paddingEnd:Dc(f.paddingRight)}})}})}),EO=C.forwardRef((e,t)=>{const{sizes:s,onSizesChange:o,...l}=e,m=Wr(xs,e.__scopeScrollArea),[f,a]=C.useState(),c=C.useRef(null),h=We(t,c,m.onScrollbarYChange);return C.useEffect(()=>{c.current&&a(getComputedStyle(c.current))},[c]),i.jsx(W1,{"data-orientation":"vertical",...l,ref:h,sizes:s,style:{top:0,right:m.dir==="ltr"?0:void 0,left:m.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":fu(s)+"px",...e.style},onThumbPointerDown:g=>e.onThumbPointerDown(g.y),onDragScroll:g=>e.onDragScroll(g.y),onWheelScroll:(g,d)=>{if(m.viewport){const _=m.viewport.scrollTop+g.deltaY;e.onWheelScroll(_),Y1(_,d)&&g.preventDefault()}},onResize:()=>{c.current&&m.viewport&&f&&o({content:m.viewport.scrollHeight,viewport:m.viewport.offsetHeight,scrollbar:{size:c.current.clientHeight,paddingStart:Dc(f.paddingTop),paddingEnd:Dc(f.paddingBottom)}})}})}),[NO,z1]=B1(xs),W1=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,sizes:o,hasThumb:l,onThumbChange:m,onThumbPointerUp:f,onThumbPointerDown:a,onThumbPositionChange:c,onDragScroll:h,onWheelScroll:g,onResize:d,..._}=e,S=Wr(xs,s),[j,b]=C.useState(null),v=We(t,D=>b(D)),y=C.useRef(null),p=C.useRef(""),x=S.viewport,k=o.content-o.viewport,P=It(g),T=It(c),R=pu(d,10);function E(D){if(y.current){const $=D.clientX-y.current.left,H=D.clientY-y.current.top;h({x:$,y:H})}}return C.useEffect(()=>{const D=$=>{const H=$.target;(j==null?void 0:j.contains(H))&&P($,k)};return document.addEventListener("wheel",D,{passive:!1}),()=>document.removeEventListener("wheel",D,{passive:!1})},[x,j,k,P]),C.useEffect(T,[o,T]),Ji(j,R),Ji(S.content,R),i.jsx(NO,{scope:s,scrollbar:j,hasThumb:l,onThumbChange:It(m),onThumbPointerUp:It(f),onThumbPositionChange:T,onThumbPointerDown:It(a),children:i.jsx(Fe.div,{..._,ref:v,style:{position:"absolute",..._.style},onPointerDown:_e(e.onPointerDown,D=>{D.button===0&&(D.target.setPointerCapture(D.pointerId),y.current=j.getBoundingClientRect(),p.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",S.viewport&&(S.viewport.style.scrollBehavior="auto"),E(D))}),onPointerMove:_e(e.onPointerMove,E),onPointerUp:_e(e.onPointerUp,D=>{const $=D.target;$.hasPointerCapture(D.pointerId)&&$.releasePointerCapture(D.pointerId),document.body.style.webkitUserSelect=p.current,S.viewport&&(S.viewport.style.scrollBehavior=""),y.current=null})})})}),Mc="ScrollAreaThumb",U1=C.forwardRef((e,t)=>{const{forceMount:s,...o}=e,l=z1(Mc,e.__scopeScrollArea);return i.jsx(Kt,{present:s||l.hasThumb,children:i.jsx(PO,{ref:t,...o})})}),PO=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,style:o,...l}=e,m=Wr(Mc,s),f=z1(Mc,s),{onThumbPositionChange:a}=f,c=We(t,d=>f.onThumbChange(d)),h=C.useRef(void 0),g=pu(()=>{h.current&&(h.current(),h.current=void 0)},100);return C.useEffect(()=>{const d=m.viewport;if(d){const _=()=>{if(g(),!h.current){const S=AO(d,a);h.current=S,a()}};return a(),d.addEventListener("scroll",_),()=>d.removeEventListener("scroll",_)}},[m.viewport,g,a]),i.jsx(Fe.div,{"data-state":f.hasThumb?"visible":"hidden",...l,ref:c,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...o},onPointerDownCapture:_e(e.onPointerDownCapture,d=>{const S=d.target.getBoundingClientRect(),j=d.clientX-S.left,b=d.clientY-S.top;f.onThumbPointerDown({x:j,y:b})}),onPointerUp:_e(e.onPointerUp,f.onThumbPointerUp)})});U1.displayName=Mc;var Zp="ScrollAreaCorner",K1=C.forwardRef((e,t)=>{const s=Wr(Zp,e.__scopeScrollArea),o=!!(s.scrollbarX&&s.scrollbarY);return s.type!=="scroll"&&o?i.jsx(RO,{...e,ref:t}):null});K1.displayName=Zp;var RO=C.forwardRef((e,t)=>{const{__scopeScrollArea:s,...o}=e,l=Wr(Zp,s),[m,f]=C.useState(0),[a,c]=C.useState(0),h=!!(m&&a);return Ji(l.scrollbarX,()=>{var d;const g=((d=l.scrollbarX)==null?void 0:d.offsetHeight)||0;l.onCornerHeightChange(g),c(g)}),Ji(l.scrollbarY,()=>{var d;const g=((d=l.scrollbarY)==null?void 0:d.offsetWidth)||0;l.onCornerWidthChange(g),f(g)}),h?i.jsx(Fe.div,{...o,ref:t,style:{width:m,height:a,position:"absolute",right:l.dir==="ltr"?0:void 0,left:l.dir==="rtl"?0:void 0,bottom:0,...e.style}}):null});function Dc(e){return e?parseInt(e,10):0}function G1(e,t){const s=e/t;return isNaN(s)?0:s}function fu(e){const t=G1(e.viewport,e.content),s=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,o=(e.scrollbar.size-s)*t;return Math.max(o,18)}function TO(e,t,s,o="ltr"){const l=fu(s),m=l/2,f=t||m,a=l-f,c=s.scrollbar.paddingStart+f,h=s.scrollbar.size-s.scrollbar.paddingEnd-a,g=s.content-s.viewport,d=o==="ltr"?[0,g]:[g*-1,0];return q1([c,h],d)(e)}function $y(e,t,s="ltr"){const o=fu(t),l=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,m=t.scrollbar.size-l,f=t.content-t.viewport,a=m-o,c=s==="ltr"?[0,f]:[f*-1,0],h=ef(e,c);return q1([0,f],[0,a])(h)}function q1(e,t){return s=>{if(e[0]===e[1]||t[0]===t[1])return t[0];const o=(t[1]-t[0])/(e[1]-e[0]);return t[0]+o*(s-e[0])}}function Y1(e,t){return e>0&&e<t}var AO=(e,t=()=>{})=>{let s={left:e.scrollLeft,top:e.scrollTop},o=0;return(function l(){const m={left:e.scrollLeft,top:e.scrollTop},f=s.left!==m.left,a=s.top!==m.top;(f||a)&&t(),s=m,o=window.requestAnimationFrame(l)})(),()=>window.cancelAnimationFrame(o)};function pu(e,t){const s=It(e),o=C.useRef(0);return C.useEffect(()=>()=>window.clearTimeout(o.current),[]),C.useCallback(()=>{window.clearTimeout(o.current),o.current=window.setTimeout(s,t)},[s,t])}function Ji(e,t){const s=It(t);Bt(()=>{let o=0;if(e){const l=new ResizeObserver(()=>{cancelAnimationFrame(o),o=window.requestAnimationFrame(s)});return l.observe(e),()=>{window.cancelAnimationFrame(o),l.unobserve(e)}}},[e,s])}var X1=F1,MO=$1,DO=K1;const ri=C.forwardRef(({className:e,children:t,...s},o)=>i.jsxs(X1,{ref:o,className:we("relative overflow-hidden",e),...s,children:[i.jsx(MO,{className:"h-full w-full rounded-[inherit]",children:t}),i.jsx(J1,{}),i.jsx(DO,{})]}));ri.displayName=X1.displayName;const J1=C.forwardRef(({className:e,orientation:t="vertical",...s},o)=>i.jsx(Jp,{ref:o,orientation:t,className:we("flex touch-none select-none transition-colors",t==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",t==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",e),...s,children:i.jsx(U1,{className:"relative flex-1 rounded-full bg-border"})}));J1.displayName=Jp.displayName;function em({open:e,onOpenChange:t,onSelect:s,type:o="directory",initialPath:l="~",title:m="Select Path"}){const[f,a]=C.useState(""),[c,h]=C.useState([]),[g,d]=C.useState(!1),[_,S]=C.useState(null),[j,b]=C.useState(""),[v,y]=C.useState("");C.useEffect(()=>{e&&p(l)},[e,l]);const p=async R=>{d(!0),S(null);try{const E=await Ce.browse(R,o);E.error?(S(E.error),E.path&&(a(E.path),y(E.path))):(a(E.path),y(E.path),h(E.items||[]),E.home&&b(E.home))}catch(E){S(E.message)}finally{d(!1)}},x=R=>{R.type==="directory"?p(R.path):o==="file"&&(s(R.path),t(!1))},k=()=>{s(f),t(!1)},P=()=>{v&&p(v)},T=R=>{R.key==="Enter"&&P()};return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"max-w-lg",children:[i.jsx(tr,{children:i.jsxs(sr,{className:"flex items-center gap-2",children:[o==="directory"?i.jsx(Ut,{className:"w-5 h-5"}):i.jsx(Xh,{className:"w-5 h-5"}),m]})}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{value:v,onChange:R=>y(R.target.value),onKeyDown:T,placeholder:"Enter path...",className:"font-mono text-sm flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>p(j||"~"),title:"Go to home",children:i.jsx(rp,{className:"w-4 h-4"})}),i.jsx(de,{onClick:P,disabled:g,children:"Go"})]}),i.jsx("div",{className:"text-xs text-gray-500 font-mono truncate px-1",children:f}),_&&i.jsx("div",{className:"text-sm text-red-600 bg-red-50 p-2 rounded",children:_}),i.jsx(ri,{className:"h-64 border rounded-lg",children:g?i.jsx("div",{className:"flex items-center justify-center h-full",children:i.jsx(yt,{className:"w-6 h-6 animate-spin text-gray-400"})}):i.jsx("div",{className:"p-1",children:c.length===0?i.jsx("div",{className:"text-sm text-gray-500 p-4 text-center",children:o==="directory"?"No subdirectories":"No files found"}):c.map((R,E)=>i.jsxs("button",{onClick:()=>x(R),className:"w-full flex items-center gap-2 px-3 py-2 text-sm hover:bg-gray-100 rounded transition-colors text-left",children:[R.type==="directory"?i.jsx(Ut,{className:"w-4 h-4 text-blue-500 flex-shrink-0"}):i.jsx(Xh,{className:"w-4 h-4 text-gray-400 flex-shrink-0"}),i.jsx("span",{className:`flex-1 truncate ${R.isParent?"text-gray-500":""}`,children:R.name}),R.type==="directory"&&!R.isParent&&i.jsx(eo,{className:"w-4 h-4 text-gray-400"})]},E))})})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),i.jsx(de,{onClick:k,disabled:!f,children:o==="directory"?"Select Folder":"Select"})]})]})})}const _a={mcps:{icon:pa,color:"text-blue-600",bgColor:"bg-blue-50",label:"MCP Servers"},settings:{icon:Yn,color:"text-gray-600 dark:text-slate-400",bgColor:"bg-gray-50 dark:bg-slate-800",label:"Settings"},command:{icon:Et,color:"text-green-600",bgColor:"bg-green-50",label:"Command"},rule:{icon:qn,color:"text-purple-600",bgColor:"bg-purple-50",label:"Rule"},workflow:{icon:D_,color:"text-cyan-600",bgColor:"bg-cyan-50",label:"Workflow"},claudemd:{icon:vr,color:"text-orange-600",bgColor:"bg-orange-50",label:"CLAUDE.md"},geminimd:{icon:vr,color:"text-blue-600",bgColor:"bg-blue-50",label:"GEMINI.md"},env:{icon:Vc,color:"text-yellow-600",bgColor:"bg-yellow-50",label:".env"},memory:{icon:Ki,color:"text-pink-600",bgColor:"bg-pink-50",label:"Memory"},folder:{icon:Ut,color:"text-yellow-600",bgColor:"bg-yellow-50",label:"Folder"}};function uc({item:e,level:t=0,selectedPath:s,onSelect:o,onContextMenu:l,expandedFolders:m,onToggleFolder:f}){const a=_a[e.type]||_a.folder,c=a.icon,h=s===e.path,g=e.type==="folder",d=m[e.path];return i.jsxs("div",{children:[i.jsxs("div",{className:we("flex items-center gap-2 px-2 py-1.5 rounded-md cursor-pointer text-sm","hover:bg-gray-100 dark:hover:bg-slate-700 transition-colors",h&&"bg-blue-100 dark:bg-blue-900/30 hover:bg-blue-100 dark:hover:bg-blue-900/30"),style:{paddingLeft:`${t*16+8}px`},onClick:()=>g?f(e.path):o(e),onContextMenu:_=>l(_,e),children:[g&&i.jsx("span",{className:"w-4 h-4 flex items-center justify-center",children:d?i.jsx(ni,{className:"w-3 h-3"}):i.jsx(eo,{className:"w-3 h-3"})}),!g&&i.jsx("span",{className:"w-4"}),i.jsx(c,{className:we("w-4 h-4",a.color)}),i.jsx("span",{className:"flex-1 truncate",children:e.name}),e.mcpCount>0&&i.jsx(ot,{variant:"secondary",className:"text-xs px-1.5 py-0",children:e.mcpCount})]}),g&&d&&e.children&&i.jsx("div",{children:e.children.map(_=>i.jsx(uc,{item:_,level:t+1,selectedPath:s,onSelect:o,onContextMenu:l,expandedFolders:m,onToggleFolder:f},_.path))})]})}function LO({folder:e,isExpanded:t,isHome:s,isProject:o,isSubproject:l,depth:m=0,onToggle:f,onCreateFile:a,onSelectItem:c,selectedPath:h,onContextMenu:g,expandedFolders:d,onToggleFolder:_,templates:S,hasSubprojects:j,onAddSubproject:b,onRemoveSubproject:v,onHideSubproject:y}){var U,V,q,W,G,J,z,M,B,L;const p=(U=e.files)==null?void 0:U.some(F=>F.name==="mcps.json"),x=(V=e.files)==null?void 0:V.some(F=>F.name==="settings.json"),k=(q=e.files)==null?void 0:q.some(F=>F.name==="CLAUDE.md"||F.name==="CLAUDE.md (root)"),P=(W=e.files)==null?void 0:W.some(F=>F.name===".env"),T=()=>s?"bg-indigo-50 dark:bg-indigo-900/20 hover:bg-indigo-100 dark:hover:bg-indigo-900/30":l&&m>1?"bg-gray-50 dark:bg-slate-800 hover:bg-gray-100 dark:hover:bg-slate-700":l?"bg-amber-50 dark:bg-amber-900/20 hover:bg-amber-100 dark:hover:bg-amber-900/30":o?"bg-green-50 dark:bg-green-900/20 hover:bg-green-100 dark:hover:bg-green-900/30":"bg-gray-50 dark:bg-slate-800 hover:bg-gray-100 dark:hover:bg-slate-700",R=()=>s?"text-indigo-700 dark:text-indigo-400":l&&m>1?"text-gray-600 dark:text-slate-400":l?"text-amber-700 dark:text-amber-400":o?"text-green-700 dark:text-green-400":"text-gray-700 dark:text-slate-300",D=s?rp:t?yn:Ut,$=s?"Home":e.label,H=(((G=e.files)==null?void 0:G.length)||0)+(((J=e.geminiFiles)==null?void 0:J.length)||0)+(((z=e.agentFiles)==null?void 0:z.length)||0);return i.jsxs("div",{className:"border-b border-gray-200 dark:border-slate-700",children:[i.jsxs("div",{className:we("flex items-center gap-2 py-2 cursor-pointer transition-colors",T()),style:{paddingLeft:`${12+m*16}px`,paddingRight:"24px"},onClick:f,children:[i.jsx("span",{className:"w-4 h-4 flex items-center justify-center text-gray-500",children:t?i.jsx(ni,{className:"w-4 h-4"}):i.jsx(eo,{className:"w-4 h-4"})}),i.jsx(D,{className:we("w-4 h-4",R())}),i.jsx("span",{className:we("flex-1 min-w-0 font-medium text-sm truncate",R()),children:$}),i.jsxs(Ia,{children:[i.jsx(Ba,{asChild:!0,onClick:F=>F.stopPropagation(),children:i.jsx(de,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 flex-shrink-0 mr-1 hover:bg-white/50 dark:hover:bg-slate-900/50",children:i.jsx(Ot,{className:"w-4 h-4"})})}),i.jsxs(co,{align:"end",className:"w-48",children:[i.jsxs("div",{className:"flex items-center gap-1 px-2 py-1.5 border-b mb-1",children:[o&&j&&i.jsx(ot,{variant:"outline",className:"text-[10px] px-1 py-0 bg-green-100 dark:bg-green-900/30 text-green-700 dark:text-green-400 border-green-300 dark:border-green-700",children:"root"}),!e.exists&&!s&&i.jsx(ot,{variant:"outline",className:"text-[10px] px-1 py-0",children:"no config"}),((M=e.appliedTemplate)==null?void 0:M.template)&&i.jsx(ot,{variant:"outline",className:"text-[10px] px-1 py-0 bg-purple-100 dark:bg-purple-900/30 text-purple-700 dark:text-purple-400 border-purple-300 dark:border-purple-700",children:e.appliedTemplate.template.split("/").pop()}),!l&&e.exists&&!((B=e.appliedTemplate)!=null&&B.template)&&H===0&&i.jsx("span",{className:"text-[10px] text-muted-foreground",children:"configured"})]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"mcps")},disabled:p,className:p?"opacity-50":"",children:[i.jsx(pa,{className:"w-4 h-4 mr-2"}),"mcps.json",p&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"settings")},disabled:x,className:x?"opacity-50":"",children:[i.jsx(Yn,{className:"w-4 h-4 mr-2"}),"settings.json",x&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"env")},disabled:P,className:P?"opacity-50":"",children:[i.jsx(Vc,{className:"w-4 h-4 mr-2"}),".env",P&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),i.jsx(Rs,{}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"command")},children:[i.jsx(Et,{className:"w-4 h-4 mr-2"}),"New Command"]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"rule")},children:[i.jsx(qn,{className:"w-4 h-4 mr-2"}),"New Rule"]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"workflow")},children:[i.jsx(D_,{className:"w-4 h-4 mr-2"}),"New Workflow"]}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"memory")},children:[i.jsx(Ki,{className:"w-4 h-4 mr-2"}),"New Memory"]}),i.jsx(Rs,{}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),a(e.dir,"claudemd")},disabled:k,className:k?"opacity-50":"",children:[i.jsx(vr,{className:"w-4 h-4 mr-2"}),"CLAUDE.md",k&&i.jsx("span",{className:"ml-auto text-xs text-muted-foreground",children:"exists"})]}),(o||l)&&b&&i.jsxs(i.Fragment,{children:[i.jsx(Rs,{}),i.jsxs(ct,{onClick:F=>{F.stopPropagation(),b(e.dir)},children:[i.jsx(M_,{className:"w-4 h-4 mr-2"}),"Add Sub-project"]})]}),l&&y&&i.jsxs(ct,{onClick:F=>{F.stopPropagation(),y(e.dir)},children:[i.jsx(T_,{className:"w-4 h-4 mr-2"}),"Hide"]}),e.isManual&&v&&i.jsxs(ct,{onClick:F=>{F.stopPropagation(),v(e.dir)},className:"text-destructive focus:text-destructive",children:[i.jsx(xn,{className:"w-4 h-4 mr-2"}),"Remove"]}),S&&S.length>0&&(l||!j)&&!((L=e.appliedTemplate)!=null&&L.template)&&i.jsxs(i.Fragment,{children:[i.jsx(Rs,{}),i.jsxs(mf,{children:[i.jsxs(Tc,{children:[i.jsx(to,{className:"w-4 h-4 mr-2"}),"Apply Template"]}),i.jsxs(Ac,{children:[S.map(F=>{const Q=F.id||F.name;return i.jsx(ct,{onClick:se=>{se.stopPropagation(),a(e.dir,"template",Q)},children:F.name},Q)}),i.jsx(Rs,{}),i.jsxs(mf,{children:[i.jsx(Tc,{className:"text-xs text-muted-foreground",children:"Mark as Applied (migration)"}),i.jsx(Ac,{children:S.map(F=>{const Q=F.id||F.name;return i.jsx(ct,{onClick:se=>{se.stopPropagation(),a(e.dir,"mark-template",Q)},children:F.name},Q)})})]})]})]})]})]})]})]}),t&&i.jsxs("div",{className:"bg-white dark:bg-slate-950 py-1",children:[e.files&&e.files.length>0&&i.jsxs("div",{className:"mb-1",children:[i.jsxs("div",{className:"px-4 py-1 text-[10px] font-medium text-orange-600 dark:text-orange-400 uppercase tracking-wide flex items-center gap-1",children:[i.jsx(ar,{className:"w-3 h-3"}),"Claude Code"]}),e.files.map(F=>i.jsx(uc,{item:F,selectedPath:h,onSelect:c,onContextMenu:g,expandedFolders:d,onToggleFolder:_},F.path))]}),e.geminiFiles&&e.geminiFiles.length>0&&i.jsxs("div",{className:"mb-1 border-t border-dashed border-gray-200 dark:border-slate-700 pt-1",children:[i.jsxs("div",{className:"px-4 py-1 text-[10px] font-medium text-blue-600 dark:text-blue-400 uppercase tracking-wide flex items-center gap-1",children:[i.jsx(ar,{className:"w-3 h-3"}),"Gemini CLI"]}),e.geminiFiles.map(F=>i.jsx(uc,{item:F,selectedPath:h,onSelect:c,onContextMenu:g,expandedFolders:d,onToggleFolder:_},F.path))]}),e.agentFiles&&e.agentFiles.length>0&&i.jsxs("div",{className:"mb-1 border-t border-dashed border-gray-200 dark:border-slate-700 pt-1",children:[i.jsxs("div",{className:"px-4 py-1 text-[10px] font-medium text-purple-600 dark:text-purple-400 uppercase tracking-wide flex items-center gap-1",children:[i.jsx(ar,{className:"w-3 h-3"}),"Antigravity"]}),e.agentFiles.map(F=>i.jsx(uc,{item:F,selectedPath:h,onSelect:c,onContextMenu:g,expandedFolders:d,onToggleFolder:_},F.path))]}),(!e.files||e.files.length===0)&&(!e.geminiFiles||e.geminiFiles.length===0)&&(!e.agentFiles||e.agentFiles.length===0)&&i.jsx("div",{className:"px-4 py-3 text-sm text-gray-400 dark:text-slate-500 italic text-center",children:"No config files. Use + to create."})]})]})}function OO({content:e,parsed:t,onSave:s,registry:o}){const[l,m]=C.useState(t||{include:[],mcpServers:{}}),[f,a]=C.useState("rich"),[c,h]=C.useState(JSON.stringify(t||{},null,2)),[g,d]=C.useState(!1),[_,S]=C.useState({open:!1,json:""});C.useEffect(()=>{m(t||{include:[],mcpServers:{}}),h(JSON.stringify(t||{},null,2)),d(!1)},[t]);const j=p=>{var k;const x=(k=l.include)!=null&&k.includes(p)?l.include.filter(P=>P!==p):[...l.include||[],p];m({...l,include:x}),d(!0)},b=()=>{if(f==="json")try{const p=JSON.parse(c);s(JSON.stringify(p,null,2))}catch{ae.error("Invalid JSON");return}else s(JSON.stringify(l,null,2));d(!1)},v=()=>{if(!_.json.trim()){ae.error("Please paste the MCP JSON configuration");return}try{let p;try{p=JSON.parse(_.json)}catch{ae.error("Invalid JSON format");return}let x={};if(p.mcpServers&&typeof p.mcpServers=="object")x=p.mcpServers;else if(typeof p=="object"&&!Array.isArray(p)){if(Object.keys(p).includes("command")){ae.error('JSON is missing the MCP name. Expected: { "name": { "command": "...", "args": [...] } }');return}x=p}if(Object.keys(x).length===0){ae.error("No MCP configurations found in the JSON");return}for(const[R,E]of Object.entries(x))if(!E.command){ae.error(`MCP "${R}" is missing required "command" field`);return}const k={...l.mcpServers||{},...x},P={...l,mcpServers:k};m(P),h(JSON.stringify(P,null,2)),d(!0);const T=Object.keys(x).length;ae.success(`Added ${T} MCP${T>1?"s":""} - click Save to apply`),S({open:!1,json:""})}catch(p){ae.error("Failed to add: "+p.message)}},y=o!=null&&o.mcpServers?Object.keys(o.mcpServers):[];return i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 border-b bg-gray-50 dark:bg-slate-800",children:[i.jsx(qc,{value:f,onValueChange:a,children:i.jsxs(Pa,{className:"h-8",children:[i.jsx(es,{value:"rich",className:"text-xs px-3",children:"Rich Editor"}),i.jsx(es,{value:"json",className:"text-xs px-3",children:"JSON"})]})}),i.jsxs("div",{className:"flex gap-2",children:[i.jsxs(de,{size:"sm",variant:"outline",onClick:()=>S({open:!0,json:""}),children:[i.jsx(Ot,{className:"w-4 h-4 mr-1"}),"Add MCP"]}),g&&i.jsxs(de,{size:"sm",onClick:b,children:[i.jsx(ro,{className:"w-4 h-4 mr-1"}),"Save"]})]})]}),i.jsx(ri,{className:"flex-1",children:f==="rich"?i.jsxs("div",{className:"p-4 space-y-4",children:[i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:"Registry MCPs"}),i.jsx("div",{className:"space-y-2",children:y.length===0?i.jsx("p",{className:"text-sm text-gray-500 dark:text-slate-400",children:"No MCPs in registry"}):y.map(p=>{var x;return i.jsxs("div",{className:"flex items-center justify-between p-2 rounded border bg-white dark:bg-slate-950",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(pa,{className:"w-4 h-4 text-blue-500"}),i.jsx("span",{className:"text-sm",children:p})]}),i.jsx(St,{checked:(x=l.include)==null?void 0:x.includes(p),onCheckedChange:()=>j(p)})]},p)})})]}),Object.keys(l.mcpServers||{}).length>0&&i.jsxs("div",{children:[i.jsx("h3",{className:"text-sm font-medium mb-2",children:"Inline MCPs"}),i.jsx("div",{className:"space-y-2",children:Object.entries(l.mcpServers).map(([p,x])=>{var k;return i.jsxs("div",{className:"p-2 rounded border bg-white dark:bg-slate-950 group",children:[i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsx("span",{className:"text-sm font-medium",children:p}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(ot,{variant:"outline",className:"text-xs",children:"inline"}),i.jsx(de,{variant:"ghost",size:"sm",className:"h-6 w-6 p-0 opacity-0 group-hover:opacity-100 text-red-500 hover:text-red-700 hover:bg-red-50",onClick:()=>{const{[p]:P,...T}=l.mcpServers,R={...l,mcpServers:T};m(R),h(JSON.stringify(R,null,2)),d(!0),ae.success(`Removed ${p} - click Save to apply`)},children:i.jsx(xn,{className:"w-3.5 h-3.5"})})]})]}),i.jsxs("p",{className:"text-xs text-gray-500 dark:text-slate-400 mt-1 font-mono",children:[x.command," ",(k=x.args)==null?void 0:k.join(" ")]})]},p)})})]})]}):i.jsx(it,{className:"w-full h-full min-h-[400px] font-mono text-sm border-0 rounded-none resize-none",value:c,onChange:p=>{h(p.target.value),d(!0)}})}),i.jsx(lr,{open:_.open,onOpenChange:p=>S({..._,open:p}),children:i.jsxs(er,{className:"bg-white dark:bg-slate-950 max-w-2xl",children:[i.jsxs(tr,{children:[i.jsx(sr,{children:"Add MCP to Config"}),i.jsx(Rr,{children:"Paste the MCP JSON configuration to add to this config file."})]}),i.jsxs("div",{className:"py-4",children:[i.jsx(it,{value:_.json,onChange:p=>S({..._,json:p.target.value}),placeholder:`{
|
|
451
451
|
"my-mcp": {
|
|
452
452
|
"command": "npx",
|
|
453
453
|
"args": ["-y", "@example/mcp-server"],
|
|
@@ -455,7 +455,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
455
455
|
"API_KEY": "\${API_KEY}"
|
|
456
456
|
}
|
|
457
457
|
}
|
|
458
|
-
}`,className:"font-mono text-sm bg-gray-50 dark:bg-slate-800",rows:12}),i.jsxs("p",{className:"text-xs text-gray-500 dark:text-slate-400 mt-2",children:["Accepts formats: ",i.jsx("code",{className:"bg-gray-100 dark:bg-slate-700 px-1 rounded",children:'{ "name": { "command": "...", "args": [...] } }'})," or ",i.jsx("code",{className:"bg-gray-100 dark:bg-slate-700 px-1 rounded",children:'{ "mcpServers": { ... } }'})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:()=>S({open:!1,json:""}),children:"Cancel"}),i.jsxs(de,{onClick:v,className:"bg-blue-600 hover:bg-blue-700 text-white",children:[i.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Add MCP"]})]})]})})]})}function Vy({content:e,onSave:t,fileType:s}){const[o,l]=C.useState(e||""),[m,f]=C.useState(!1);C.useEffect(()=>{l(e||""),f(!1)},[e]);const a=()=>{t(o),f(!1)},c=_a[s]||_a.claudemd;return i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 border-b bg-gray-50 dark:bg-slate-800",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(c.icon,{className:we("w-4 h-4",c.color)}),i.jsx("span",{className:"text-sm font-medium",children:c.label})]}),i.jsx("div",{className:"flex gap-2",children:m&&i.jsxs(de,{size:"sm",onClick:a,children:[i.jsx(ro,{className:"w-4 h-4 mr-1"}),"Save"]})})]}),i.jsx(it,{className:"flex-1 w-full font-mono text-sm border-0 rounded-none resize-none p-4",value:o,onChange:h=>{l(h.target.value),f(!0)},placeholder:`Enter ${c.label.toLowerCase()} content...`})]})}function IO({content:e,parsed:t,onSave:s,filePath:o}){const l=async a=>{const c=JSON.stringify(a,null,2);s(c)},m=(o==null?void 0:o.includes(".gemini"))||(o==null?void 0:o.includes("/.gemini/")),f=(o==null?void 0:o.includes(".agent"))||(o==null?void 0:o.includes("/antigravity/"));return m&&!f?i.jsx("div",{className:"h-full overflow-auto p-4",children:i.jsx(P1,{settings:t||{},onSave:l,loading:!1,settingsPath:o||"~/.gemini/settings.json"})}):i.jsx("div",{className:"h-full overflow-auto p-4",children:i.jsx(N1,{settings:t||{},onSave:l,loading:!1,settingsPath:o||"~/.claude/settings.json"})})}function BO({open:e,onClose:t,item:s,intermediatePaths:o,onMove:l}){const[m,f]=C.useState("copy"),[a,c]=C.useState(null),[h,g]=C.useState(""),[d,_]=C.useState(!1),S=()=>{const j=h.trim()||a;if(!j){ae.error("Please select or enter a target path");return}l(s.path,j,m,d)};return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"max-w-md",children:[i.jsxs(tr,{children:[i.jsxs(sr,{children:[m==="copy"?"Copy":"Move"," ",s==null?void 0:s.name]}),i.jsx(Rr,{children:"Select a destination for this file"})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex gap-2",children:[i.jsxs(de,{variant:m==="copy"?"default":"outline",size:"sm",onClick:()=>f("copy"),children:[i.jsx(ha,{className:"w-4 h-4 mr-1"})," Copy"]}),i.jsxs(de,{variant:m==="move"?"default":"outline",size:"sm",onClick:()=>f("move"),children:[i.jsx(B_,{className:"w-4 h-4 mr-1"})," Move"]})]}),i.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:o==null?void 0:o.map(j=>i.jsxs("div",{className:we("flex items-center justify-between p-2 rounded border cursor-pointer",a===j.dir?"border-blue-500 bg-blue-50 dark:bg-blue-900/20":"hover:bg-gray-50 dark:hover:bg-slate-800"),onClick:()=>{c(j.dir),g("")},children:[i.jsxs("div",{className:"flex items-center gap-2",children:[j.isHome?i.jsx(rp,{className:"w-4 h-4"}):i.jsx(Ut,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:j.label})]}),j.hasClaudeFolder?i.jsx(ot,{variant:"secondary",className:"text-xs",children:"exists"}):i.jsx(ot,{variant:"outline",className:"text-xs",children:"create"})]},j.dir))}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Or enter custom path:"}),i.jsx(rt,{className:"mt-1 font-mono text-sm",placeholder:"/path/to/directory",value:h,onChange:j=>{g(j.target.value),c(null)}})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(St,{checked:d,onCheckedChange:_}),i.jsx("span",{className:"text-sm",children:"Merge if target exists"})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:t,children:"Cancel"}),i.jsx(de,{onClick:S,children:m==="copy"?"Copy":"Move"})]})]})})}function FO({open:e,onClose:t,item:s,onRename:o}){const[l,m]=C.useState("");C.useEffect(()=>{s!=null&&s.name&&m(s.name.replace(/\.md$/,""))},[s,e]);const f=()=>{if(!l.trim()){ae.error("Please enter a name");return}o(s,l.trim())};return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"sm:max-w-md",children:[i.jsx(tr,{children:i.jsxs(sr,{children:["Rename ",s==null?void 0:s.type]})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"New name"}),i.jsx(rt,{className:"mt-1",placeholder:"new-name",value:l,onChange:a=>m(a.target.value),onKeyDown:a=>a.key==="Enter"&&f()}),i.jsx("p",{className:"text-xs text-gray-500 dark:text-slate-400 mt-1",children:".md extension will be added automatically"})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:t,children:"Cancel"}),i.jsx(de,{onClick:f,children:"Rename"})]})]})})}function HO({open:e,onClose:t,dir:s,type:o,onCreate:l}){const[m,f]=C.useState("");C.useEffect(()=>{f("")},[e]);const a=()=>{if((o==="command"||o==="rule"||o==="workflow"||o==="memory")&&!m.trim()){ae.error("Please enter a name");return}const g=o==="command"||o==="rule"||o==="workflow"||o==="memory"?m.endsWith(".md")?m:`${m}.md`:m;l(s,g,o)},c=_a[o]||{},h=o==="command"||o==="rule"||o==="workflow"||o==="memory";return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"max-w-sm",children:[i.jsx(tr,{children:i.jsxs(sr,{children:["Create ",c.label||o]})}),h&&i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Name"}),i.jsx(rt,{className:"mt-1",placeholder:o==="command"?"my-command.md":o==="workflow"?"my-workflow.md":o==="memory"?"context.md":"my-rule.md",value:m,onChange:g=>f(g.target.value),onKeyDown:g=>g.key==="Enter"&&a()})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:t,children:"Cancel"}),i.jsx(de,{onClick:a,children:"Create"})]})]})})}function $O({project:e,onRefresh:t}){var Ee,Ye,Xe,Je,et,wr;const[s,o]=C.useState([]),[l,m]=C.useState([]),[f,a]=C.useState(null),[c,h]=C.useState([]),[g,d]=C.useState(null),[_,S]=C.useState(null),[j,b]=C.useState(()=>{try{return localStorage.getItem("claude-config-expanded-folder")||null}catch{return null}}),[v,y]=C.useState({}),[p,x]=C.useState(!0),[k,P]=C.useState({open:!1,item:null}),[T,R]=C.useState({open:!1,dir:null,type:null}),[E,D]=C.useState({open:!1,item:null}),[$,H]=C.useState(!1),[U,V]=C.useState({open:!1,projectDir:null}),[q,W]=C.useState({open:!1,dir:null,template:null,confidence:null}),[G,J]=C.useState({x:0,y:0,item:null}),[z,M]=C.useState(["claude"]),B=C.useCallback(async()=>{var ye;try{x(!0);const[xe,Le,Qe,Ft,dt]=await Promise.all([Ce.getClaudeFolders(),Ce.getIntermediatePaths(),Ce.getRegistry(),Ce.getConfig(),Ce.getTemplates().catch(()=>[])]);if(o(xe),m(Le),a(Qe),h(dt.templates||dt||[]),M(((ye=Ft.config)==null?void 0:ye.enabledTools)||["claude"]),xe.length>0){const Ht=localStorage.getItem("claude-config-expanded-folder");if(!Ht||!xe.find(Ue=>Ue.dir===Ht)){const Ue=xe.filter(oi=>!oi.isSubproject),is=Ue.length>1?Ue[Ue.length-1]:Ue[0],En=(is==null?void 0:is.dir)||xe[0].dir;b(En);try{localStorage.setItem("claude-config-expanded-folder",En)}catch{}}}}catch(xe){ae.error("Failed to load data: "+xe.message)}finally{x(!1)}},[]);C.useEffect(()=>{B(),d(null),S(null)},[B,e==null?void 0:e.dir]);const L=ye=>{const xe=j===ye?null:ye;b(xe);try{xe?localStorage.setItem("claude-config-expanded-folder",xe):localStorage.removeItem("claude-config-expanded-folder")}catch{}},F=async ye=>{d(ye);try{const xe=await Ce.getClaudeFile(ye.path);S(xe)}catch(xe){ae.error("Failed to load file: "+xe.message)}},Q=async ye=>{if(g)try{await Ce.saveClaudeFile(g.path,ye),ae.success("Saved");const xe=await Ce.getClaudeFile(g.path);S(xe),B()}catch(xe){ae.error("Failed to save: "+xe.message)}},se=ye=>{y(xe=>({...xe,[ye]:!xe[ye]}))},ce=(ye,xe)=>{ye.preventDefault(),J({x:ye.clientX,y:ye.clientY,item:xe})},ue=async(ye,xe,Le=null)=>{if(xe==="template"&&Le){try{await Ce.applyTemplate(Le,ye),ae.success(`Applied template: ${Le}`),B()}catch(Qe){ae.error("Failed to apply template: "+Qe.message)}return}if(xe==="mark-template"&&Le){try{await Ce.markTemplateApplied(Le,ye),ae.success(`Marked template: ${Le}`),B()}catch(Qe){ae.error("Failed to mark template: "+Qe.message)}return}xe==="command"||xe==="rule"||xe==="workflow"||xe==="memory"?R({open:!0,dir:ye,type:xe}):K(ye,xe==="mcps"?"mcps.json":xe==="settings"?"settings.json":xe==="env"?".env":"CLAUDE.md",xe)},K=async(ye,xe,Le)=>{try{const Qe=await Ce.createClaudeFile(ye,xe,Le);if(ae.success("Created"),R({open:!1,dir:null,type:null}),await B(),Qe.path){const Ft={path:Qe.path,name:xe,type:Le==="command"?"command":Le==="rule"?"rule":Le==="workflow"?"workflow":"file"};d(Ft),S(Qe.content||"")}}catch(Qe){ae.error("Failed to create: "+Qe.message)}},O=async(ye,xe)=>{try{const Le=await Ce.renameClaudeFile(ye.path,xe);Le.success?(ae.success("Renamed"),D({open:!1,item:null}),await B(),d({...ye,path:Le.newPath,name:xe.endsWith(".md")?xe:`${xe}.md`})):ae.error(Le.error||"Failed to rename")}catch(Le){ae.error("Failed to rename: "+Le.message)}},ne=async ye=>{if(confirm(`Delete ${ye.name}?`))try{await Ce.deleteClaudeFile(ye.path),ae.success("Deleted"),(g==null?void 0:g.path)===ye.path&&(d(null),S(null)),B()}catch(xe){ae.error("Failed to delete: "+xe.message)}},te=async(ye,xe,Le,Qe)=>{try{await Ce.moveClaudeItem(ye,xe,Le,Qe),ae.success(Le==="copy"?"Copied":"Moved"),P({open:!1,item:null}),B()}catch(Ft){ae.error("Failed: "+Ft.message)}},X=async ye=>{if(ye)try{const xe=await Ce.addManualSubproject(U.projectDir,ye);if(xe.success){ae.success(`Added sub-project: ${ye.split("/").pop()}`),V({open:!1,projectDir:null}),B();try{const Le=await Ce.detectTemplate(ye);Le.detected&&Le.template&&W({open:!0,dir:ye,template:Le.template,confidence:Le.confidence,reason:Le.reason})}catch{}}else ae.error(xe.error||"Failed to add sub-project")}catch(xe){ae.error("Failed to add sub-project: "+xe.message)}},re=async ye=>{const xe=s.find(Le=>!Le.isSubproject&&!Le.isHome);if(xe)try{const Le=await Ce.removeManualSubproject(xe.dir,ye);Le.success?(ae.success("Removed sub-project"),B()):ae.error(Le.error||"Failed to remove sub-project")}catch(Le){ae.error("Failed to remove sub-project: "+Le.message)}},me=async ye=>{const xe=s.find(Le=>!Le.isSubproject&&!Le.isHome);if(xe)try{const Le=await Ce.hideSubproject(xe.dir,ye);Le.success?(ae.success("Sub-project hidden"),B()):ae.error(Le.error||"Failed to hide sub-project")}catch(Le){ae.error("Failed to hide sub-project: "+Le.message)}},De=async()=>{if(!(!q.dir||!q.template))try{const ye=await Ce.applyTemplate(q.template.fullName,q.dir);ye.success?(ae.success(`Applied template: ${q.template.name}`),W({open:!1,dir:null,template:null,confidence:null}),B()):ae.error(ye.error||"Failed to apply template")}catch(ye){ae.error("Failed to apply template: "+ye.message)}},He=()=>{if(!g||!_)return i.jsx("div",{className:"h-full flex items-center justify-center text-gray-500 dark:text-slate-400",children:i.jsxs("div",{className:"text-center",children:[i.jsx(Xh,{className:"w-12 h-12 mx-auto mb-2 opacity-50"}),i.jsx("p",{children:"Select a file to edit"})]})});switch(g.type){case"mcps":return i.jsx(OO,{content:_.content,parsed:_.parsed,onSave:Q,registry:f});case"settings":return i.jsx(IO,{content:_.content,parsed:_.parsed,onSave:Q,filePath:g==null?void 0:g.path});case"command":case"rule":case"workflow":case"claudemd":case"env":return i.jsx(Vy,{content:_.content,onSave:Q,fileType:g.type});default:return i.jsx(Vy,{content:_.content,onSave:Q,fileType:"claudemd"})}};if(p)return i.jsx("div",{className:"h-full flex items-center justify-center",children:i.jsx(yr,{className:"w-6 h-6 animate-spin text-gray-400"})});const Ge=s.some(ye=>ye.isSubproject),Ne=(ye,xe)=>xe===0,Ae=(ye,xe)=>{const Le=s.findIndex(Qe=>Qe.isSubproject);return!ye.isSubproject&&(Le>=0?xe===Le-1:xe===s.length-1)};return i.jsxs("div",{className:"h-full flex",children:[i.jsxs("div",{className:"w-72 border-r flex flex-col bg-white dark:bg-slate-950",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[i.jsx("h2",{className:"font-semibold text-sm",children:"Project Config"}),i.jsxs("div",{className:"flex gap-1",children:[z.includes("claude")&&z.includes("antigravity")&&i.jsxs(de,{variant:"ghost",size:"sm",className:"h-7 px-2",onClick:()=>H(!0),title:"Sync rules between tools",children:[i.jsx(ER,{className:"w-4 h-4 mr-1"}),"Sync"]}),i.jsx(de,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:B,children:i.jsx(yr,{className:"w-4 h-4"})})]})]}),i.jsx(ri,{className:"flex-1",children:s.map((ye,xe)=>i.jsx(LO,{folder:ye,isExpanded:j===ye.dir,isHome:Ne(ye,xe),isProject:Ae(ye,xe),isSubproject:ye.isSubproject,depth:ye.depth||0,onToggle:()=>L(ye.dir),onCreateFile:ue,onSelectItem:F,selectedPath:g==null?void 0:g.path,onContextMenu:ce,expandedFolders:v,onToggleFolder:se,templates:c,hasSubprojects:Ge,onAddSubproject:Le=>V({open:!0,projectDir:Le}),onRemoveSubproject:re,onHideSubproject:me},ye.dir))})]}),i.jsxs("div",{className:"flex-1 flex flex-col bg-gray-50 dark:bg-slate-900",children:[g&&i.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-white dark:bg-slate-950",children:[i.jsx("div",{className:"flex items-center gap-2 text-sm",children:i.jsx("span",{className:"text-gray-500 dark:text-slate-400 font-mono truncate max-w-md",children:g.path})}),i.jsxs("div",{className:"flex gap-1",children:[i.jsx(de,{variant:"ghost",size:"sm",onClick:()=>P({open:!0,item:g}),children:i.jsx(ha,{className:"w-4 h-4"})}),i.jsx(de,{variant:"ghost",size:"sm",onClick:()=>ne(g),children:i.jsx(xn,{className:"w-4 h-4"})})]})]}),i.jsx("div",{className:"flex-1",children:He()})]}),G.item&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>J({x:0,y:0,item:null})}),i.jsxs("div",{className:"fixed z-50 bg-white dark:bg-slate-950 rounded-md shadow-lg border py-1 min-w-[160px]",style:{left:G.x,top:G.y},children:[(((Ee=G.item)==null?void 0:Ee.type)==="rule"||((Ye=G.item)==null?void 0:Ye.type)==="command"||((Xe=G.item)==null?void 0:Xe.type)==="workflow")&&i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center",onClick:()=>{D({open:!0,item:G.item}),J({x:0,y:0,item:null})},children:[i.jsx(sp,{className:"w-4 h-4 mr-2"})," Rename"]}),i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center",onClick:()=>{P({open:!0,item:G.item}),J({x:0,y:0,item:null})},children:[i.jsx(ha,{className:"w-4 h-4 mr-2"})," Copy to..."]}),i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center",onClick:()=>{P({open:!0,item:G.item}),J({x:0,y:0,item:null})},children:[i.jsx(B_,{className:"w-4 h-4 mr-2"})," Move to..."]}),i.jsx("div",{className:"border-t my-1"}),i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center text-red-600",onClick:()=>{ne(G.item),J({x:0,y:0,item:null})},children:[i.jsx(xn,{className:"w-4 h-4 mr-2"})," Delete"]})]})]}),i.jsx(BO,{open:k.open,onClose:()=>P({open:!1,item:null}),item:k.item,intermediatePaths:l,onMove:te}),i.jsx(HO,{open:T.open,onClose:()=>R({open:!1,dir:null,type:null}),dir:T.dir,type:T.type,onCreate:K}),i.jsx(FO,{open:E.open,onClose:()=>D({open:!1,item:null}),item:E.item,onRename:O}),i.jsx(wO,{open:$,onOpenChange:H,projectDir:e==null?void 0:e.dir,onSynced:B}),i.jsx(em,{open:U.open,onOpenChange:ye=>V({...U,open:ye}),onSelect:X,type:"directory",title:"Add Sub-project",initialPath:U.projectDir||"~"}),i.jsx(lr,{open:q.open,onOpenChange:ye=>W({...q,open:ye}),children:i.jsxs(er,{className:"max-w-md",children:[i.jsxs(tr,{children:[i.jsxs(sr,{className:"flex items-center gap-2",children:[i.jsx(to,{className:"w-5 h-5"}),"Template Detected"]}),i.jsx(Rr,{children:q.reason})]}),i.jsxs("div",{className:"py-4",children:[i.jsx("div",{className:"p-4 bg-muted rounded-lg",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-medium",children:(Je=q.template)==null?void 0:Je.name}),i.jsx("p",{className:"text-sm text-muted-foreground",children:(et=q.template)==null?void 0:et.description})]}),i.jsxs(ot,{variant:q.confidence==="high"?"default":"secondary",children:[q.confidence," confidence"]})]})}),i.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:["Apply this template to ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded",children:(wr=q.dir)==null?void 0:wr.split("/").pop()}),"?"]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>W({open:!1,dir:null,template:null,confidence:null}),children:"Skip"}),i.jsx(de,{onClick:De,children:"Apply Template"})]})]})})]})}function VO({projects:e=[],activeProject:t=null,onSwitch:s,onAddClick:o,onManageClick:l,disabled:m=!1}){const f=(t==null?void 0:t.name)||"No Project";return i.jsxs(Ia,{children:[i.jsx(Ba,{asChild:!0,children:i.jsxs(de,{variant:"outline",className:"gap-2 max-w-[220px] h-9",disabled:m,children:[i.jsx(yn,{className:"w-4 h-4 text-indigo-500 flex-shrink-0"}),i.jsx("span",{className:"truncate font-medium",children:f}),i.jsx(ni,{className:"w-4 h-4 opacity-50 flex-shrink-0"})]})}),i.jsxs(co,{align:"start",className:"w-72",children:[i.jsx(j1,{className:"text-xs text-gray-500 font-normal",children:"Projects"}),i.jsx(Rs,{}),e.length===0?i.jsxs("div",{className:"px-3 py-6 text-sm text-gray-500 text-center",children:[i.jsx(Ut,{className:"w-8 h-8 mx-auto mb-2 text-gray-300"}),i.jsx("p",{children:"No projects registered"}),i.jsx("p",{className:"text-xs mt-1",children:"Add a project to get started"})]}):i.jsx("div",{className:"max-h-64 overflow-y-auto",children:e.map(a=>i.jsxs(ct,{onClick:()=>!a.isActive&&s(a.id),className:`flex items-start gap-2 py-2 cursor-pointer ${a.isActive?"bg-indigo-50":""}`,disabled:a.isActive,children:[i.jsx("div",{className:"mt-0.5 flex-shrink-0",children:a.isActive?i.jsx(Ar,{className:"w-4 h-4 text-indigo-600"}):a.exists?i.jsx(Ut,{className:"w-4 h-4 text-gray-400"}):i.jsx(zc,{className:"w-4 h-4 text-amber-500"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:`truncate font-medium ${a.isActive?"text-indigo-700":""}`,children:a.name}),i.jsx("div",{className:"truncate text-xs text-gray-400 font-mono",children:a.path.replace(/^\/Users\/[^/]+/,"~")}),!a.exists&&i.jsx("div",{className:"text-xs text-amber-600 mt-0.5",children:"Path not found"})]}),a.hasClaudeConfig&&i.jsx("div",{className:"flex-shrink-0",children:i.jsx("div",{className:"w-2 h-2 rounded-full bg-green-400",title:"Has .claude config"})})]},a.id))}),i.jsx(Rs,{}),i.jsxs(ct,{onClick:o,className:"gap-2 cursor-pointer",children:[i.jsx(Ot,{className:"w-4 h-4"}),"Add Project"]}),e.length>0&&i.jsxs(ct,{onClick:l,className:"gap-2 cursor-pointer",children:[i.jsx(IT,{className:"w-4 h-4"}),"Manage Projects"]})]})]})}function Q1({open:e,onOpenChange:t,onAdded:s}){const[o,l]=C.useState(""),[m,f]=C.useState(""),[a,c]=C.useState(!1),[h,g]=C.useState(!1);C.useEffect(()=>{e&&(l(""),f(""))},[e]),C.useEffect(()=>{if(o&&!m){const S=o.split("/").pop();f(S||"")}},[o]);const d=S=>{l(S),c(!1)},_=async()=>{if(!o){ae.error("Please select a project path");return}g(!0);try{const S=await Ce.addProject(o,m||void 0);S.error?ae.error(S.error):(ae.success(`Added project: ${S.project.name}`),s==null||s(S.project),t(!1))}catch(S){ae.error("Failed to add project: "+S.message)}finally{g(!1)}};return i.jsxs(i.Fragment,{children:[i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"sm:max-w-md",children:[i.jsxs(tr,{children:[i.jsxs(sr,{className:"flex items-center gap-2",children:[i.jsx(yn,{className:"w-5 h-5 text-indigo-500"}),"Add Project"]}),i.jsx(Rr,{children:"Register a project folder to quickly switch between projects in the UI."})]}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(jt,{htmlFor:"path",children:"Project Path"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{id:"path",value:o,onChange:S=>l(S.target.value),placeholder:"/path/to/project",className:"font-mono text-sm flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>c(!0),title:"Browse",children:i.jsx(yn,{className:"w-4 h-4"})})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(jt,{htmlFor:"name",children:"Display Name"}),i.jsx(rt,{id:"name",value:m,onChange:S=>f(S.target.value),placeholder:"Auto-filled from folder name"}),i.jsx("p",{className:"text-xs text-gray-500",children:"Optional. Leave empty to use folder name."})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),i.jsx(de,{onClick:_,disabled:h||!o,children:h?i.jsxs(i.Fragment,{children:[i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}),"Adding..."]}):"Add Project"})]})]})}),i.jsx(em,{open:a,onOpenChange:c,onSelect:d,type:"directory",initialPath:"~",title:"Select Project Folder"})]})}const Z1=C.createContext({theme:"auto",setTheme:()=>{},resolvedTheme:"light"});function zO({children:e}){const[t,s]=C.useState(()=>{try{return localStorage.getItem("claude-config-theme")||"auto"}catch{return"auto"}}),[o,l]=C.useState("light");C.useEffect(()=>{const f=window.document.documentElement,a=g=>{let d;g==="auto"?d=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":d=g,l(d),d==="dark"?f.classList.add("dark"):f.classList.remove("dark")};a(t);const c=window.matchMedia("(prefers-color-scheme: dark)"),h=()=>{t==="auto"&&a("auto")};return c.addEventListener("change",h),()=>c.removeEventListener("change",h)},[t]);const m=f=>{s(f);try{localStorage.setItem("claude-config-theme",f)}catch{}};return i.jsx(Z1.Provider,{value:{theme:t,setTheme:m,resolvedTheme:o},children:e})}function WO(){return C.useContext(Z1)}function UO(){const{theme:e,setTheme:t,resolvedTheme:s}=WO(),o=s==="dark"?iy:oy;return i.jsxs(Ia,{children:[i.jsx(Ba,{asChild:!0,children:i.jsxs(de,{variant:"ghost",size:"sm",className:"w-9 px-0",children:[i.jsx(o,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),i.jsxs(co,{align:"end",children:[i.jsxs(ct,{onClick:()=>t("light"),className:e==="light"?"bg-accent":"",children:[i.jsx(oy,{className:"mr-2 h-4 w-4"}),"Light"]}),i.jsxs(ct,{onClick:()=>t("dark"),className:e==="dark"?"bg-accent":"",children:[i.jsx(iy,{className:"mr-2 h-4 w-4"}),"Dark"]}),i.jsxs(ct,{onClick:()=>t("auto"),className:e==="auto"?"bg-accent":"",children:[i.jsx(I_,{className:"mr-2 h-4 w-4"}),"System"]})]})]})}var KO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],GO=KO.reduce((e,t)=>{const s=ap(`Primitive.${t}`),o=C.forwardRef((l,m)=>{const{asChild:f,...a}=l,c=f?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(c,{...a,ref:m})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),qO="Separator",zy="horizontal",YO=["horizontal","vertical"],eC=C.forwardRef((e,t)=>{const{decorative:s,orientation:o=zy,...l}=e,m=XO(o)?o:zy,a=s?{role:"none"}:{"aria-orientation":m==="vertical"?m:void 0,role:"separator"};return i.jsx(GO.div,{"data-orientation":m,...a,...l,ref:t})});eC.displayName=qO;function XO(e){return YO.includes(e)}var tC=eC;const rC=C.forwardRef(({className:e,orientation:t="horizontal",decorative:s=!0,...o},l)=>i.jsx(tC,{ref:l,decorative:s,orientation:t,className:we("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));rC.displayName=tC.displayName;function JO(){var U,V;const[e,t]=C.useState(null),[s,o]=C.useState(""),[l,m]=C.useState({open:!1,field:null,type:"directory"}),[f,a]=C.useState(!0),[c,h]=C.useState(!1),[g,d]=C.useState(null),[_,S]=C.useState(!1),[j,b]=C.useState(null),[v,y]=C.useState([]);C.useEffect(()=>{R(),p(),x()},[]);const p=async()=>{try{const q=await Ce.checkVersion();d(q)}catch(q){console.error("Failed to load version info:",q)}},x=async()=>{try{const q=await Ce.getProject();b(q.dir),k(q.dir)}catch(q){console.error("Failed to load project info:",q)}},k=async q=>{if(q)try{const W=await Ce.getHiddenSubprojects(q);y(W.hidden||[])}catch(W){console.error("Failed to load hidden sub-projects:",W)}},P=async q=>{if(j)try{const W=await Ce.unhideSubproject(j,q);W.success?(ae.success("Sub-project unhidden"),k(j)):ae.error(W.error||"Failed to unhide")}catch(W){ae.error("Failed to unhide: "+W.message)}},T=async()=>{var q;if(!(g!=null&&g.updateAvailable)){ae.error("No update available");return}S(!0);try{const W=await Ce.performUpdate({updateMethod:g.updateMethod,sourcePath:g.sourcePath});W.success?(W.updateMethod==="npm"?ae.success(W.message||"Updated via npm! Restart the server to apply."):ae.success(`Updated! Files: ${((q=W.updated)==null?void 0:q.join(", "))||"all"}. Restart the server to apply.`),p()):ae.error("Update failed: "+W.error)}catch(W){ae.error("Update failed: "+W.message)}finally{S(!1)}},R=async()=>{try{a(!0);const q=await Ce.getConfig();t(q.config),o(q.path)}catch{ae.error("Failed to load settings")}finally{a(!1)}},E=async()=>{h(!0);try{await Ce.saveConfig(e),ae.success("Preferences saved!")}catch{ae.error("Failed to save preferences")}finally{h(!1)}},D=(q,W)=>{t(G=>({...G,[q]:W}))},$=(q,W,G)=>{t(J=>({...J,[q]:{...J[q],[W]:G}}))},H=q=>{const W=(e==null?void 0:e.enabledTools)||["claude"];W.includes(q)?W.length>1&&D("enabledTools",W.filter(G=>G!==q)):D("enabledTools",[...W,q])};return f?i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx(yt,{className:"w-8 h-8 animate-spin text-primary"})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-muted flex items-center justify-center",children:i.jsx(H_,{className:"w-5 h-5 text-muted-foreground"})}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"claude-config Preferences"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Tool settings for this configuration manager"})]})]}),i.jsxs("div",{className:"bg-card rounded-xl border border-border p-6 shadow-sm",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsx("div",{children:i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stored in: ",i.jsx("code",{className:"bg-muted px-2 py-0.5 rounded",children:s})]})}),i.jsxs(de,{onClick:E,disabled:c,children:[c?i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx(ro,{className:"w-4 h-4 mr-2"}),"Save"]})]}),i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(Ut,{className:"w-4 h-4"}),"Directories"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"MCP Tools Directories"}),i.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Folders containing local MCP tool repositories for discovery"}),i.jsxs("div",{className:"space-y-2",children:[((e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[])).map((q,W)=>i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{value:q||"",onChange:G=>{const J=[...(e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[])];J[W]=G.target.value,D("toolsDirs",J),e!=null&&e.toolsDir&&t(z=>{const{toolsDir:M,...B}=z;return{...B,toolsDirs:J}})},placeholder:"~/mcp-tools",className:"font-mono flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>m({open:!0,field:"toolsDirs",type:"directory",index:W}),title:"Browse...",children:i.jsx(yn,{className:"w-4 h-4"})}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>{const J=((e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[])).filter((z,M)=>M!==W);t(z=>{const{toolsDir:M,...B}=z;return{...B,toolsDirs:J.length>0?J:void 0}})},title:"Remove",className:"text-destructive hover:text-destructive",children:i.jsx(ip,{className:"w-4 h-4"})})]},W)),i.jsxs(de,{variant:"outline",size:"sm",onClick:()=>m({open:!0,field:"toolsDirs",type:"directory",index:-1}),className:"mt-2",children:[i.jsx(M_,{className:"w-4 h-4 mr-2"}),"Add Tools Folder"]})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Global Registry Path"}),i.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Path to the global MCP registry file"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{value:(e==null?void 0:e.registryPath)||"",onChange:q=>D("registryPath",q.target.value),placeholder:"~/.claude/registry.json",className:"font-mono flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>m({open:!0,field:"registryPath",type:"file"}),title:"Browse...",children:i.jsx(yn,{className:"w-4 h-4"})})]})]})]})]}),i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(to,{className:"w-4 h-4"}),"User Interface"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Default Port"}),i.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Port for the web UI server"}),i.jsx(rt,{type:"number",value:((U=e==null?void 0:e.ui)==null?void 0:U.port)||3333,onChange:q=>$("ui","port",parseInt(q.target.value)||3333),placeholder:"3333",className:"w-32"})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Open Browser on Start"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Automatically open browser when starting the UI"})]}),i.jsx(St,{checked:((V=e==null?void 0:e.ui)==null?void 0:V.openBrowser)??!0,onCheckedChange:q=>$("ui","openBrowser",q)})]})]})]}),i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(TR,{className:"w-4 h-4"}),"AI Assistant"]}),i.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Choose which AI assistant to use for features like MCP creation and tool import."}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:`flex items-center gap-3 p-3 rounded-lg cursor-pointer border-2 transition-colors ${((e==null?void 0:e.aiAssistant)||"claude")==="claude"?"border-orange-500 bg-orange-500/5":"border-transparent bg-muted/50 hover:bg-muted"}`,onClick:()=>D("aiAssistant","claude"),children:[i.jsx("input",{type:"radio",name:"aiAssistant",value:"claude",checked:((e==null?void 0:e.aiAssistant)||"claude")==="claude",onChange:()=>D("aiAssistant","claude"),className:"sr-only"}),i.jsx("div",{className:"w-8 h-8 rounded-md bg-orange-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-orange-500"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:"Claude Code"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Anthropic's AI coding assistant • Command: ",i.jsx("code",{className:"text-xs",children:"claude"})]})]}),((e==null?void 0:e.aiAssistant)||"claude")==="claude"&&i.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-500"})]}),i.jsxs("label",{className:`flex items-center gap-3 p-3 rounded-lg cursor-pointer border-2 transition-colors ${(e==null?void 0:e.aiAssistant)==="gemini"?"border-blue-500 bg-blue-500/5":"border-transparent bg-muted/50 hover:bg-muted"}`,onClick:()=>D("aiAssistant","gemini"),children:[i.jsx("input",{type:"radio",name:"aiAssistant",value:"gemini",checked:(e==null?void 0:e.aiAssistant)==="gemini",onChange:()=>D("aiAssistant","gemini"),className:"sr-only"}),i.jsx("div",{className:"w-8 h-8 rounded-md bg-blue-500/10 flex items-center justify-center",children:i.jsx(Et,{className:"w-4 h-4 text-blue-500"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:"Gemini CLI"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Google's AI coding assistant • Command: ",i.jsx("code",{className:"text-xs",children:"gemini"})]})]}),(e==null?void 0:e.aiAssistant)==="gemini"&&i.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500"})]})]})]}),i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(YR,{className:"w-4 h-4"}),"Enabled AI Tools"]}),i.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Select which AI coding tools to generate MCP configurations for. The Apply button will update all enabled tools."}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-orange-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-orange-500"})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Claude Code"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Anthropic's AI coding assistant • Output: ",i.jsx("code",{className:"text-xs",children:".mcp.json"})]})]})]}),i.jsx(St,{checked:((e==null?void 0:e.enabledTools)||["claude"]).includes("claude"),onCheckedChange:()=>H("claude")})]}),i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-blue-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-blue-500"})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Gemini CLI"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Google's terminal AI coding assistant • Output: ",i.jsx("code",{className:"text-xs",children:"~/.gemini/settings.json"})]})]})]}),i.jsx(St,{checked:((e==null?void 0:e.enabledTools)||["claude"]).includes("gemini"),onCheckedChange:()=>H("gemini")})]}),i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-purple-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-purple-500"})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Antigravity"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Google's AI IDE • Output: ",i.jsx("code",{className:"text-xs",children:"~/.gemini/antigravity/mcp_config.json"})]})]})]}),i.jsx(St,{checked:((e==null?void 0:e.enabledTools)||["claude"]).includes("antigravity"),onCheckedChange:()=>H("antigravity")})]}),i.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["Note: Antigravity does not support environment variable interpolation (",i.jsx("code",{children:"${VAR}"}),"). Variables are resolved to actual values when generating its config."]})]})]}),v.length>0&&i.jsxs("div",{children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(T_,{className:"w-4 h-4"}),"Hidden Sub-projects"]}),i.jsx("div",{className:"space-y-2",children:v.map(q=>i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Ut,{className:"w-4 h-4 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-foreground",children:q.name}),i.jsx("p",{className:"text-xs text-muted-foreground font-mono",children:q.dir.replace(j+"/","")})]})]}),i.jsxs(de,{size:"sm",variant:"outline",onClick:()=>P(q.dir),className:"h-7",children:[i.jsx(A_,{className:"w-3 h-3 mr-1"}),"Unhide"]})]},q.dir))})]}),i.jsxs("div",{children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(vr,{className:"w-4 h-4"}),"About"]}),i.jsxs("div",{className:"bg-muted rounded-lg p-4 space-y-3",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Installed Version"}),i.jsx("span",{className:"font-medium font-mono text-foreground",children:(g==null?void 0:g.installedVersion)||"Loading..."})]}),(g==null?void 0:g.updateAvailable)&&i.jsx("div",{className:"p-3 bg-green-500/10 border border-green-500/20 rounded-lg",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-green-600 dark:text-green-400",children:"Update Available!"}),i.jsxs("p",{className:"text-xs text-green-600/80 dark:text-green-400/80",children:["Version ",g.latestVersion," via ",g.updateMethod==="npm"?"npm":g.sourcePath]})]}),i.jsxs(de,{size:"sm",onClick:T,disabled:_,className:"bg-green-600 hover:bg-green-700 text-white",children:[_?i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx($c,{className:"w-4 h-4 mr-2"}),"Update Now"]})]})}),!(g!=null&&g.updateAvailable)&&(g==null?void 0:g.latestVersion)&&i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Latest Version"}),i.jsxs("span",{className:"font-mono text-green-600 dark:text-green-400",children:[g.latestVersion," ✓"]})]}),(g==null?void 0:g.sourcePath)&&!(g!=null&&g.updateAvailable)&&i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Dev Source"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"text-xs text-muted-foreground",children:g.sourcePath}),i.jsx(de,{size:"sm",variant:"outline",onClick:T,disabled:_,className:"h-7",children:_?i.jsx(yt,{className:"w-3 h-3 animate-spin"}):i.jsx(yr,{className:"w-3 h-3"})})]})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Install Location"}),i.jsx("code",{className:"text-xs text-muted-foreground",children:(g==null?void 0:g.installDir)||"~/.claude-config"})]}),i.jsxs("div",{className:"border-t border-border pt-3 mt-3",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Documentation"}),i.jsx("a",{href:"https://github.com/regression-io/claude-config",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"GitHub"})]}),i.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["After updating, restart the server with ",i.jsx("code",{className:"bg-muted-foreground/10 px-1 rounded",children:"claude-config ui"})]})]})]})]})]})]}),i.jsx(em,{open:l.open,onOpenChange:q=>m(W=>({...W,open:q})),onSelect:q=>{if(l.field==="toolsDirs"){const W=(e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[]);if(l.index===-1)t(G=>{const{toolsDir:J,...z}=G;return{...z,toolsDirs:[...W,q]}});else{const G=[...W];G[l.index]=q,t(J=>{const{toolsDir:z,...M}=J;return{...M,toolsDirs:G}})}}else l.field&&D(l.field,q)},type:l.type,initialPath:l.field==="toolsDirs"&&l.index>=0?((e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[]))[l.index]||"~":(e==null?void 0:e[l.field])||"~",title:l.type==="directory"?"Select Directory":"Select File"})]})}function QO(){const[e,t]=C.useState(null),[s,o]=C.useState(!0);C.useEffect(()=>{l()},[]);const l=async()=>{try{o(!0);const f=await Ce.getClaudeSettings();t(f.settings)}catch(f){console.error("Failed to load Claude settings:",f)}finally{o(!1)}},m=async f=>{try{await Ce.saveClaudeSettings(f),t(f),ae.success("Claude Code settings saved!")}catch(a){ae.error("Failed to save settings: "+a.message)}};return s?i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx(yt,{className:"w-8 h-8 animate-spin text-indigo-600"})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"bg-white dark:bg-slate-950 rounded-xl border border-gray-200 dark:border-slate-800 p-6 shadow-sm",children:i.jsx(N1,{settings:e,onSave:m,loading:s,settingsPath:"~/.claude/settings.json"})})})}function ZO(){const[e,t]=C.useState(null),[s,o]=C.useState(!0);C.useEffect(()=>{l()},[]);const l=async()=>{try{o(!0);const f=await Ce.getGeminiSettings();t(f.settings)}catch(f){console.error("Failed to load Gemini settings:",f)}finally{o(!1)}},m=async f=>{try{await Ce.saveGeminiSettings(f),t(f),ae.success("Gemini CLI settings saved!")}catch(a){ae.error("Failed to save settings: "+a.message)}};return s?i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx(yt,{className:"w-8 h-8 animate-spin text-blue-600"})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"bg-white dark:bg-slate-950 rounded-xl border border-gray-200 dark:border-slate-800 p-6 shadow-sm",children:i.jsx(P1,{settings:e,onSave:m,loading:s,settingsPath:"~/.gemini/settings.json"})})})}var Rh={exports:{}},Wy;function eI(){return Wy||(Wy=1,(function(e,t){(function(s,o){e.exports=o()})(globalThis,(()=>(()=>{var s={4567:function(f,a,c){var h=this&&this.__decorate||function(p,x,k,P){var T,R=arguments.length,E=R<3?x:P===null?P=Object.getOwnPropertyDescriptor(x,k):P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(p,x,k,P);else for(var D=p.length-1;D>=0;D--)(T=p[D])&&(E=(R<3?T(E):R>3?T(x,k,E):T(x,k))||E);return R>3&&E&&Object.defineProperty(x,k,E),E},g=this&&this.__param||function(p,x){return function(k,P){x(k,P,p)}};Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;const d=c(9042),_=c(9924),S=c(844),j=c(4725),b=c(2585),v=c(3656);let y=a.AccessibilityManager=class extends S.Disposable{constructor(p,x,k,P){super(),this._terminal=p,this._coreBrowserService=k,this._renderService=P,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let T=0;T<this._terminal.rows;T++)this._rowElements[T]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[T]);if(this._topBoundaryFocusListener=T=>this._handleBoundaryFocus(T,0),this._bottomBoundaryFocusListener=T=>this._handleBoundaryFocus(T,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new _.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((T=>this._handleResize(T.rows)))),this.register(this._terminal.onRender((T=>this._refreshRows(T.start,T.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((T=>this._handleChar(T)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
|
|
458
|
+
}`,className:"font-mono text-sm bg-gray-50 dark:bg-slate-800",rows:12}),i.jsxs("p",{className:"text-xs text-gray-500 dark:text-slate-400 mt-2",children:["Accepts formats: ",i.jsx("code",{className:"bg-gray-100 dark:bg-slate-700 px-1 rounded",children:'{ "name": { "command": "...", "args": [...] } }'})," or ",i.jsx("code",{className:"bg-gray-100 dark:bg-slate-700 px-1 rounded",children:'{ "mcpServers": { ... } }'})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:()=>S({open:!1,json:""}),children:"Cancel"}),i.jsxs(de,{onClick:v,className:"bg-blue-600 hover:bg-blue-700 text-white",children:[i.jsx(Ot,{className:"w-4 h-4 mr-2"}),"Add MCP"]})]})]})})]})}function Vy({content:e,onSave:t,fileType:s}){const[o,l]=C.useState(e||""),[m,f]=C.useState(!1);C.useEffect(()=>{l(e||""),f(!1)},[e]);const a=()=>{t(o),f(!1)},c=_a[s]||_a.claudemd;return i.jsxs("div",{className:"h-full flex flex-col",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 border-b bg-gray-50 dark:bg-slate-800",children:[i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(c.icon,{className:we("w-4 h-4",c.color)}),i.jsx("span",{className:"text-sm font-medium",children:c.label})]}),i.jsx("div",{className:"flex gap-2",children:m&&i.jsxs(de,{size:"sm",onClick:a,children:[i.jsx(ro,{className:"w-4 h-4 mr-1"}),"Save"]})})]}),i.jsx(it,{className:"flex-1 w-full font-mono text-sm border-0 rounded-none resize-none p-4",value:o,onChange:h=>{l(h.target.value),f(!0)},placeholder:`Enter ${c.label.toLowerCase()} content...`})]})}function IO({content:e,parsed:t,onSave:s,filePath:o}){const l=async a=>{const c=JSON.stringify(a,null,2);s(c)},m=(o==null?void 0:o.includes(".gemini"))||(o==null?void 0:o.includes("/.gemini/")),f=(o==null?void 0:o.includes(".agent"))||(o==null?void 0:o.includes("/antigravity/"));return m&&!f?i.jsx("div",{className:"h-full overflow-auto p-4",children:i.jsx(P1,{settings:t||{},onSave:l,loading:!1,settingsPath:o||"~/.gemini/settings.json"})}):i.jsx("div",{className:"h-full overflow-auto p-4",children:i.jsx(N1,{settings:t||{},onSave:l,loading:!1,settingsPath:o||"~/.claude/settings.json"})})}function BO({open:e,onClose:t,item:s,intermediatePaths:o,onMove:l}){const[m,f]=C.useState("copy"),[a,c]=C.useState(null),[h,g]=C.useState(""),[d,_]=C.useState(!1),S=()=>{const j=h.trim()||a;if(!j){ae.error("Please select or enter a target path");return}l(s.path,j,m,d)};return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"max-w-md",children:[i.jsxs(tr,{children:[i.jsxs(sr,{children:[m==="copy"?"Copy":"Move"," ",s==null?void 0:s.name]}),i.jsx(Rr,{children:"Select a destination for this file"})]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex gap-2",children:[i.jsxs(de,{variant:m==="copy"?"default":"outline",size:"sm",onClick:()=>f("copy"),children:[i.jsx(ha,{className:"w-4 h-4 mr-1"})," Copy"]}),i.jsxs(de,{variant:m==="move"?"default":"outline",size:"sm",onClick:()=>f("move"),children:[i.jsx(B_,{className:"w-4 h-4 mr-1"})," Move"]})]}),i.jsx("div",{className:"space-y-2 max-h-48 overflow-y-auto",children:o==null?void 0:o.map(j=>i.jsxs("div",{className:we("flex items-center justify-between p-2 rounded border cursor-pointer",a===j.dir?"border-blue-500 bg-blue-50 dark:bg-blue-900/20":"hover:bg-gray-50 dark:hover:bg-slate-800"),onClick:()=>{c(j.dir),g("")},children:[i.jsxs("div",{className:"flex items-center gap-2",children:[j.isHome?i.jsx(rp,{className:"w-4 h-4"}):i.jsx(Ut,{className:"w-4 h-4"}),i.jsx("span",{className:"text-sm",children:j.label})]}),j.hasClaudeFolder?i.jsx(ot,{variant:"secondary",className:"text-xs",children:"exists"}):i.jsx(ot,{variant:"outline",className:"text-xs",children:"create"})]},j.dir))}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Or enter custom path:"}),i.jsx(rt,{className:"mt-1 font-mono text-sm",placeholder:"/path/to/directory",value:h,onChange:j=>{g(j.target.value),c(null)}})]}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx(St,{checked:d,onCheckedChange:_}),i.jsx("span",{className:"text-sm",children:"Merge if target exists"})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:t,children:"Cancel"}),i.jsx(de,{onClick:S,children:m==="copy"?"Copy":"Move"})]})]})})}function FO({open:e,onClose:t,item:s,onRename:o}){const[l,m]=C.useState("");C.useEffect(()=>{s!=null&&s.name&&m(s.name.replace(/\.md$/,""))},[s,e]);const f=()=>{if(!l.trim()){ae.error("Please enter a name");return}o(s,l.trim())};return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"sm:max-w-md",children:[i.jsx(tr,{children:i.jsxs(sr,{children:["Rename ",s==null?void 0:s.type]})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"New name"}),i.jsx(rt,{className:"mt-1",placeholder:"new-name",value:l,onChange:a=>m(a.target.value),onKeyDown:a=>a.key==="Enter"&&f()}),i.jsx("p",{className:"text-xs text-gray-500 dark:text-slate-400 mt-1",children:".md extension will be added automatically"})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:t,children:"Cancel"}),i.jsx(de,{onClick:f,children:"Rename"})]})]})})}function HO({open:e,onClose:t,dir:s,type:o,onCreate:l}){const[m,f]=C.useState("");C.useEffect(()=>{f("")},[e]);const a=()=>{if((o==="command"||o==="rule"||o==="workflow"||o==="memory")&&!m.trim()){ae.error("Please enter a name");return}const g=o==="command"||o==="rule"||o==="workflow"||o==="memory"?m.endsWith(".md")?m:`${m}.md`:m;l(s,g,o)},c=_a[o]||{},h=o==="command"||o==="rule"||o==="workflow"||o==="memory";return i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"max-w-sm",children:[i.jsx(tr,{children:i.jsxs(sr,{children:["Create ",c.label||o]})}),h&&i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium",children:"Name"}),i.jsx(rt,{className:"mt-1",placeholder:o==="command"?"my-command.md":o==="workflow"?"my-workflow.md":o==="memory"?"context.md":"my-rule.md",value:m,onChange:g=>f(g.target.value),onKeyDown:g=>g.key==="Enter"&&a()})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"ghost",onClick:t,children:"Cancel"}),i.jsx(de,{onClick:a,children:"Create"})]})]})})}function $O({project:e,onRefresh:t}){var Ee,Ye,Xe,Je,et,wr;const[s,o]=C.useState([]),[l,m]=C.useState([]),[f,a]=C.useState(null),[c,h]=C.useState([]),[g,d]=C.useState(null),[_,S]=C.useState(null),[j,b]=C.useState(()=>{try{return localStorage.getItem("claude-config-expanded-folder")||null}catch{return null}}),[v,y]=C.useState({}),[p,x]=C.useState(!0),[k,P]=C.useState({open:!1,item:null}),[T,R]=C.useState({open:!1,dir:null,type:null}),[E,D]=C.useState({open:!1,item:null}),[$,H]=C.useState(!1),[U,V]=C.useState({open:!1,projectDir:null}),[q,W]=C.useState({open:!1,dir:null,template:null,confidence:null}),[G,J]=C.useState({x:0,y:0,item:null}),[z,M]=C.useState(["claude"]),B=C.useCallback(async()=>{var ye;try{x(!0);const[xe,Le,Qe,Ft,dt]=await Promise.all([Ce.getClaudeFolders(),Ce.getIntermediatePaths(),Ce.getRegistry(),Ce.getConfig(),Ce.getTemplates().catch(()=>[])]);if(o(xe),m(Le),a(Qe),h(dt.templates||dt||[]),M(((ye=Ft.config)==null?void 0:ye.enabledTools)||["claude"]),xe.length>0){const Ht=localStorage.getItem("claude-config-expanded-folder");if(!Ht||!xe.find(Ue=>Ue.dir===Ht)){const Ue=xe.filter(oi=>!oi.isSubproject),is=Ue.length>1?Ue[Ue.length-1]:Ue[0],En=(is==null?void 0:is.dir)||xe[0].dir;b(En);try{localStorage.setItem("claude-config-expanded-folder",En)}catch{}}}}catch(xe){ae.error("Failed to load data: "+xe.message)}finally{x(!1)}},[]);C.useEffect(()=>{B(),d(null),S(null)},[B,e==null?void 0:e.dir]);const L=ye=>{const xe=j===ye?null:ye;b(xe);try{xe?localStorage.setItem("claude-config-expanded-folder",xe):localStorage.removeItem("claude-config-expanded-folder")}catch{}},F=async ye=>{d(ye);try{const xe=await Ce.getClaudeFile(ye.path);S(xe)}catch(xe){ae.error("Failed to load file: "+xe.message)}},Q=async ye=>{if(g)try{await Ce.saveClaudeFile(g.path,ye),ae.success("Saved");const xe=await Ce.getClaudeFile(g.path);S(xe),B()}catch(xe){ae.error("Failed to save: "+xe.message)}},se=ye=>{y(xe=>({...xe,[ye]:!xe[ye]}))},ce=(ye,xe)=>{ye.preventDefault(),J({x:ye.clientX,y:ye.clientY,item:xe})},ue=async(ye,xe,Le=null)=>{if(xe==="template"&&Le){try{await Ce.applyTemplate(Le,ye),ae.success(`Applied template: ${Le}`),B()}catch(Qe){ae.error("Failed to apply template: "+Qe.message)}return}if(xe==="mark-template"&&Le){try{await Ce.markTemplateApplied(Le,ye),ae.success(`Marked template: ${Le}`),B()}catch(Qe){ae.error("Failed to mark template: "+Qe.message)}return}xe==="command"||xe==="rule"||xe==="workflow"||xe==="memory"?R({open:!0,dir:ye,type:xe}):K(ye,xe==="mcps"?"mcps.json":xe==="settings"?"settings.json":xe==="env"?".env":"CLAUDE.md",xe)},K=async(ye,xe,Le)=>{try{const Qe=await Ce.createClaudeFile(ye,xe,Le);if(ae.success("Created"),R({open:!1,dir:null,type:null}),await B(),Qe.path){const Ft={path:Qe.path,name:xe,type:Le==="command"?"command":Le==="rule"?"rule":Le==="workflow"?"workflow":"file"};d(Ft),S(Qe.content||"")}}catch(Qe){ae.error("Failed to create: "+Qe.message)}},O=async(ye,xe)=>{try{const Le=await Ce.renameClaudeFile(ye.path,xe);Le.success?(ae.success("Renamed"),D({open:!1,item:null}),await B(),d({...ye,path:Le.newPath,name:xe.endsWith(".md")?xe:`${xe}.md`})):ae.error(Le.error||"Failed to rename")}catch(Le){ae.error("Failed to rename: "+Le.message)}},ne=async ye=>{if(confirm(`Delete ${ye.name}?`))try{await Ce.deleteClaudeFile(ye.path),ae.success("Deleted"),(g==null?void 0:g.path)===ye.path&&(d(null),S(null)),B()}catch(xe){ae.error("Failed to delete: "+xe.message)}},te=async(ye,xe,Le,Qe)=>{try{await Ce.moveClaudeItem(ye,xe,Le,Qe),ae.success(Le==="copy"?"Copied":"Moved"),P({open:!1,item:null}),B()}catch(Ft){ae.error("Failed: "+Ft.message)}},X=async ye=>{if(ye)try{const xe=await Ce.addManualSubproject(U.projectDir,ye);if(xe.success){ae.success(`Added sub-project: ${ye.split("/").pop()}`),V({open:!1,projectDir:null}),B();try{const Le=await Ce.detectTemplate(ye);Le.detected&&Le.template&&W({open:!0,dir:ye,template:Le.template,confidence:Le.confidence,reason:Le.reason})}catch{}}else ae.error(xe.error||"Failed to add sub-project")}catch(xe){ae.error("Failed to add sub-project: "+xe.message)}},re=async ye=>{const xe=s.find(Le=>!Le.isSubproject&&!Le.isHome);if(xe)try{const Le=await Ce.removeManualSubproject(xe.dir,ye);Le.success?(ae.success("Removed sub-project"),B()):ae.error(Le.error||"Failed to remove sub-project")}catch(Le){ae.error("Failed to remove sub-project: "+Le.message)}},me=async ye=>{const xe=s.find(Le=>!Le.isSubproject&&!Le.isHome);if(xe)try{const Le=await Ce.hideSubproject(xe.dir,ye);Le.success?(ae.success("Sub-project hidden"),B()):ae.error(Le.error||"Failed to hide sub-project")}catch(Le){ae.error("Failed to hide sub-project: "+Le.message)}},De=async()=>{if(!(!q.dir||!q.template))try{const ye=await Ce.applyTemplate(q.template.fullName,q.dir);ye.success?(ae.success(`Applied template: ${q.template.name}`),W({open:!1,dir:null,template:null,confidence:null}),B()):ae.error(ye.error||"Failed to apply template")}catch(ye){ae.error("Failed to apply template: "+ye.message)}},He=()=>{if(!g||!_)return i.jsx("div",{className:"h-full flex items-center justify-center text-gray-500 dark:text-slate-400",children:i.jsxs("div",{className:"text-center",children:[i.jsx(Xh,{className:"w-12 h-12 mx-auto mb-2 opacity-50"}),i.jsx("p",{children:"Select a file to edit"})]})});switch(g.type){case"mcps":return i.jsx(OO,{content:_.content,parsed:_.parsed,onSave:Q,registry:f});case"settings":return i.jsx(IO,{content:_.content,parsed:_.parsed,onSave:Q,filePath:g==null?void 0:g.path});case"command":case"rule":case"workflow":case"claudemd":case"env":return i.jsx(Vy,{content:_.content,onSave:Q,fileType:g.type});default:return i.jsx(Vy,{content:_.content,onSave:Q,fileType:"claudemd"})}};if(p)return i.jsx("div",{className:"h-full flex items-center justify-center",children:i.jsx(yr,{className:"w-6 h-6 animate-spin text-gray-400"})});const Ge=s.some(ye=>ye.isSubproject),Ne=(ye,xe)=>xe===0,Ae=(ye,xe)=>{const Le=s.findIndex(Qe=>Qe.isSubproject);return!ye.isSubproject&&(Le>=0?xe===Le-1:xe===s.length-1)};return i.jsxs("div",{className:"h-full flex",children:[i.jsxs("div",{className:"w-80 border-r flex flex-col bg-white dark:bg-slate-950",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 border-b",children:[i.jsx("h2",{className:"font-semibold text-sm",children:"Project Config"}),i.jsxs("div",{className:"flex gap-1",children:[z.includes("claude")&&z.includes("antigravity")&&i.jsxs(de,{variant:"ghost",size:"sm",className:"h-7 px-2",onClick:()=>H(!0),title:"Sync rules between tools",children:[i.jsx(ER,{className:"w-4 h-4 mr-1"}),"Sync"]}),i.jsx(de,{variant:"ghost",size:"sm",className:"h-7 w-7 p-0",onClick:B,children:i.jsx(yr,{className:"w-4 h-4"})})]})]}),i.jsx(ri,{className:"flex-1",children:s.map((ye,xe)=>i.jsx(LO,{folder:ye,isExpanded:j===ye.dir,isHome:Ne(ye,xe),isProject:Ae(ye,xe),isSubproject:ye.isSubproject,depth:ye.depth||0,onToggle:()=>L(ye.dir),onCreateFile:ue,onSelectItem:F,selectedPath:g==null?void 0:g.path,onContextMenu:ce,expandedFolders:v,onToggleFolder:se,templates:c,hasSubprojects:Ge,onAddSubproject:Le=>V({open:!0,projectDir:Le}),onRemoveSubproject:re,onHideSubproject:me},ye.dir))})]}),i.jsxs("div",{className:"flex-1 flex flex-col bg-gray-50 dark:bg-slate-900",children:[g&&i.jsxs("div",{className:"flex items-center justify-between px-4 py-2 border-b bg-white dark:bg-slate-950",children:[i.jsx("div",{className:"flex items-center gap-2 text-sm",children:i.jsx("span",{className:"text-gray-500 dark:text-slate-400 font-mono truncate max-w-md",children:g.path})}),i.jsxs("div",{className:"flex gap-1",children:[i.jsx(de,{variant:"ghost",size:"sm",onClick:()=>P({open:!0,item:g}),children:i.jsx(ha,{className:"w-4 h-4"})}),i.jsx(de,{variant:"ghost",size:"sm",onClick:()=>ne(g),children:i.jsx(xn,{className:"w-4 h-4"})})]})]}),i.jsx("div",{className:"flex-1",children:He()})]}),G.item&&i.jsxs(i.Fragment,{children:[i.jsx("div",{className:"fixed inset-0 z-40",onClick:()=>J({x:0,y:0,item:null})}),i.jsxs("div",{className:"fixed z-50 bg-white dark:bg-slate-950 rounded-md shadow-lg border py-1 min-w-[160px]",style:{left:G.x,top:G.y},children:[(((Ee=G.item)==null?void 0:Ee.type)==="rule"||((Ye=G.item)==null?void 0:Ye.type)==="command"||((Xe=G.item)==null?void 0:Xe.type)==="workflow")&&i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center",onClick:()=>{D({open:!0,item:G.item}),J({x:0,y:0,item:null})},children:[i.jsx(sp,{className:"w-4 h-4 mr-2"})," Rename"]}),i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center",onClick:()=>{P({open:!0,item:G.item}),J({x:0,y:0,item:null})},children:[i.jsx(ha,{className:"w-4 h-4 mr-2"})," Copy to..."]}),i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center",onClick:()=>{P({open:!0,item:G.item}),J({x:0,y:0,item:null})},children:[i.jsx(B_,{className:"w-4 h-4 mr-2"})," Move to..."]}),i.jsx("div",{className:"border-t my-1"}),i.jsxs("button",{className:"w-full px-3 py-2 text-sm text-left hover:bg-gray-100 dark:hover:bg-slate-800 flex items-center text-red-600",onClick:()=>{ne(G.item),J({x:0,y:0,item:null})},children:[i.jsx(xn,{className:"w-4 h-4 mr-2"})," Delete"]})]})]}),i.jsx(BO,{open:k.open,onClose:()=>P({open:!1,item:null}),item:k.item,intermediatePaths:l,onMove:te}),i.jsx(HO,{open:T.open,onClose:()=>R({open:!1,dir:null,type:null}),dir:T.dir,type:T.type,onCreate:K}),i.jsx(FO,{open:E.open,onClose:()=>D({open:!1,item:null}),item:E.item,onRename:O}),i.jsx(wO,{open:$,onOpenChange:H,projectDir:e==null?void 0:e.dir,onSynced:B}),i.jsx(em,{open:U.open,onOpenChange:ye=>V({...U,open:ye}),onSelect:X,type:"directory",title:"Add Sub-project",initialPath:U.projectDir||"~"}),i.jsx(lr,{open:q.open,onOpenChange:ye=>W({...q,open:ye}),children:i.jsxs(er,{className:"max-w-md",children:[i.jsxs(tr,{children:[i.jsxs(sr,{className:"flex items-center gap-2",children:[i.jsx(to,{className:"w-5 h-5"}),"Template Detected"]}),i.jsx(Rr,{children:q.reason})]}),i.jsxs("div",{className:"py-4",children:[i.jsx("div",{className:"p-4 bg-muted rounded-lg",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"font-medium",children:(Je=q.template)==null?void 0:Je.name}),i.jsx("p",{className:"text-sm text-muted-foreground",children:(et=q.template)==null?void 0:et.description})]}),i.jsxs(ot,{variant:q.confidence==="high"?"default":"secondary",children:[q.confidence," confidence"]})]})}),i.jsxs("p",{className:"text-sm text-muted-foreground mt-3",children:["Apply this template to ",i.jsx("code",{className:"text-xs bg-muted px-1 py-0.5 rounded",children:(wr=q.dir)==null?void 0:wr.split("/").pop()}),"?"]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>W({open:!1,dir:null,template:null,confidence:null}),children:"Skip"}),i.jsx(de,{onClick:De,children:"Apply Template"})]})]})})]})}function VO({projects:e=[],activeProject:t=null,onSwitch:s,onAddClick:o,onManageClick:l,disabled:m=!1}){const f=(t==null?void 0:t.name)||"No Project";return i.jsxs(Ia,{children:[i.jsx(Ba,{asChild:!0,children:i.jsxs(de,{variant:"outline",className:"gap-2 max-w-[220px] h-9",disabled:m,children:[i.jsx(yn,{className:"w-4 h-4 text-indigo-500 flex-shrink-0"}),i.jsx("span",{className:"truncate font-medium",children:f}),i.jsx(ni,{className:"w-4 h-4 opacity-50 flex-shrink-0"})]})}),i.jsxs(co,{align:"start",className:"w-72",children:[i.jsx(j1,{className:"text-xs text-gray-500 font-normal",children:"Projects"}),i.jsx(Rs,{}),e.length===0?i.jsxs("div",{className:"px-3 py-6 text-sm text-gray-500 text-center",children:[i.jsx(Ut,{className:"w-8 h-8 mx-auto mb-2 text-gray-300"}),i.jsx("p",{children:"No projects registered"}),i.jsx("p",{className:"text-xs mt-1",children:"Add a project to get started"})]}):i.jsx("div",{className:"max-h-64 overflow-y-auto",children:e.map(a=>i.jsxs(ct,{onClick:()=>!a.isActive&&s(a.id),className:`flex items-start gap-2 py-2 cursor-pointer ${a.isActive?"bg-indigo-50":""}`,disabled:a.isActive,children:[i.jsx("div",{className:"mt-0.5 flex-shrink-0",children:a.isActive?i.jsx(Ar,{className:"w-4 h-4 text-indigo-600"}):a.exists?i.jsx(Ut,{className:"w-4 h-4 text-gray-400"}):i.jsx(zc,{className:"w-4 h-4 text-amber-500"})}),i.jsxs("div",{className:"flex-1 min-w-0",children:[i.jsx("div",{className:`truncate font-medium ${a.isActive?"text-indigo-700":""}`,children:a.name}),i.jsx("div",{className:"truncate text-xs text-gray-400 font-mono",children:a.path.replace(/^\/Users\/[^/]+/,"~")}),!a.exists&&i.jsx("div",{className:"text-xs text-amber-600 mt-0.5",children:"Path not found"})]}),a.hasClaudeConfig&&i.jsx("div",{className:"flex-shrink-0",children:i.jsx("div",{className:"w-2 h-2 rounded-full bg-green-400",title:"Has .claude config"})})]},a.id))}),i.jsx(Rs,{}),i.jsxs(ct,{onClick:o,className:"gap-2 cursor-pointer",children:[i.jsx(Ot,{className:"w-4 h-4"}),"Add Project"]}),e.length>0&&i.jsxs(ct,{onClick:l,className:"gap-2 cursor-pointer",children:[i.jsx(IT,{className:"w-4 h-4"}),"Manage Projects"]})]})]})}function Q1({open:e,onOpenChange:t,onAdded:s}){const[o,l]=C.useState(""),[m,f]=C.useState(""),[a,c]=C.useState(!1),[h,g]=C.useState(!1);C.useEffect(()=>{e&&(l(""),f(""))},[e]),C.useEffect(()=>{if(o&&!m){const S=o.split("/").pop();f(S||"")}},[o]);const d=S=>{l(S),c(!1)},_=async()=>{if(!o){ae.error("Please select a project path");return}g(!0);try{const S=await Ce.addProject(o,m||void 0);S.error?ae.error(S.error):(ae.success(`Added project: ${S.project.name}`),s==null||s(S.project),t(!1))}catch(S){ae.error("Failed to add project: "+S.message)}finally{g(!1)}};return i.jsxs(i.Fragment,{children:[i.jsx(lr,{open:e,onOpenChange:t,children:i.jsxs(er,{className:"sm:max-w-md",children:[i.jsxs(tr,{children:[i.jsxs(sr,{className:"flex items-center gap-2",children:[i.jsx(yn,{className:"w-5 h-5 text-indigo-500"}),"Add Project"]}),i.jsx(Rr,{children:"Register a project folder to quickly switch between projects in the UI."})]}),i.jsxs("div",{className:"space-y-4 py-4",children:[i.jsxs("div",{className:"space-y-2",children:[i.jsx(jt,{htmlFor:"path",children:"Project Path"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{id:"path",value:o,onChange:S=>l(S.target.value),placeholder:"/path/to/project",className:"font-mono text-sm flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>c(!0),title:"Browse",children:i.jsx(yn,{className:"w-4 h-4"})})]})]}),i.jsxs("div",{className:"space-y-2",children:[i.jsx(jt,{htmlFor:"name",children:"Display Name"}),i.jsx(rt,{id:"name",value:m,onChange:S=>f(S.target.value),placeholder:"Auto-filled from folder name"}),i.jsx("p",{className:"text-xs text-gray-500",children:"Optional. Leave empty to use folder name."})]})]}),i.jsxs(rr,{children:[i.jsx(de,{variant:"outline",onClick:()=>t(!1),children:"Cancel"}),i.jsx(de,{onClick:_,disabled:h||!o,children:h?i.jsxs(i.Fragment,{children:[i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}),"Adding..."]}):"Add Project"})]})]})}),i.jsx(em,{open:a,onOpenChange:c,onSelect:d,type:"directory",initialPath:"~",title:"Select Project Folder"})]})}const Z1=C.createContext({theme:"auto",setTheme:()=>{},resolvedTheme:"light"});function zO({children:e}){const[t,s]=C.useState(()=>{try{return localStorage.getItem("claude-config-theme")||"auto"}catch{return"auto"}}),[o,l]=C.useState("light");C.useEffect(()=>{const f=window.document.documentElement,a=g=>{let d;g==="auto"?d=window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light":d=g,l(d),d==="dark"?f.classList.add("dark"):f.classList.remove("dark")};a(t);const c=window.matchMedia("(prefers-color-scheme: dark)"),h=()=>{t==="auto"&&a("auto")};return c.addEventListener("change",h),()=>c.removeEventListener("change",h)},[t]);const m=f=>{s(f);try{localStorage.setItem("claude-config-theme",f)}catch{}};return i.jsx(Z1.Provider,{value:{theme:t,setTheme:m,resolvedTheme:o},children:e})}function WO(){return C.useContext(Z1)}function UO(){const{theme:e,setTheme:t,resolvedTheme:s}=WO(),o=s==="dark"?iy:oy;return i.jsxs(Ia,{children:[i.jsx(Ba,{asChild:!0,children:i.jsxs(de,{variant:"ghost",size:"sm",className:"w-9 px-0",children:[i.jsx(o,{className:"h-4 w-4"}),i.jsx("span",{className:"sr-only",children:"Toggle theme"})]})}),i.jsxs(co,{align:"end",children:[i.jsxs(ct,{onClick:()=>t("light"),className:e==="light"?"bg-accent":"",children:[i.jsx(oy,{className:"mr-2 h-4 w-4"}),"Light"]}),i.jsxs(ct,{onClick:()=>t("dark"),className:e==="dark"?"bg-accent":"",children:[i.jsx(iy,{className:"mr-2 h-4 w-4"}),"Dark"]}),i.jsxs(ct,{onClick:()=>t("auto"),className:e==="auto"?"bg-accent":"",children:[i.jsx(I_,{className:"mr-2 h-4 w-4"}),"System"]})]})]})}var KO=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],GO=KO.reduce((e,t)=>{const s=ap(`Primitive.${t}`),o=C.forwardRef((l,m)=>{const{asChild:f,...a}=l,c=f?s:t;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),i.jsx(c,{...a,ref:m})});return o.displayName=`Primitive.${t}`,{...e,[t]:o}},{}),qO="Separator",zy="horizontal",YO=["horizontal","vertical"],eC=C.forwardRef((e,t)=>{const{decorative:s,orientation:o=zy,...l}=e,m=XO(o)?o:zy,a=s?{role:"none"}:{"aria-orientation":m==="vertical"?m:void 0,role:"separator"};return i.jsx(GO.div,{"data-orientation":m,...a,...l,ref:t})});eC.displayName=qO;function XO(e){return YO.includes(e)}var tC=eC;const rC=C.forwardRef(({className:e,orientation:t="horizontal",decorative:s=!0,...o},l)=>i.jsx(tC,{ref:l,decorative:s,orientation:t,className:we("shrink-0 bg-border",t==="horizontal"?"h-[1px] w-full":"h-full w-[1px]",e),...o}));rC.displayName=tC.displayName;function JO(){var U,V;const[e,t]=C.useState(null),[s,o]=C.useState(""),[l,m]=C.useState({open:!1,field:null,type:"directory"}),[f,a]=C.useState(!0),[c,h]=C.useState(!1),[g,d]=C.useState(null),[_,S]=C.useState(!1),[j,b]=C.useState(null),[v,y]=C.useState([]);C.useEffect(()=>{R(),p(),x()},[]);const p=async()=>{try{const q=await Ce.checkVersion();d(q)}catch(q){console.error("Failed to load version info:",q)}},x=async()=>{try{const q=await Ce.getProject();b(q.dir),k(q.dir)}catch(q){console.error("Failed to load project info:",q)}},k=async q=>{if(q)try{const W=await Ce.getHiddenSubprojects(q);y(W.hidden||[])}catch(W){console.error("Failed to load hidden sub-projects:",W)}},P=async q=>{if(j)try{const W=await Ce.unhideSubproject(j,q);W.success?(ae.success("Sub-project unhidden"),k(j)):ae.error(W.error||"Failed to unhide")}catch(W){ae.error("Failed to unhide: "+W.message)}},T=async()=>{var q;if(!(g!=null&&g.updateAvailable)){ae.error("No update available");return}S(!0);try{const W=await Ce.performUpdate({updateMethod:g.updateMethod,sourcePath:g.sourcePath});W.success?(W.updateMethod==="npm"?ae.success(W.message||"Updated via npm! Restart the server to apply."):ae.success(`Updated! Files: ${((q=W.updated)==null?void 0:q.join(", "))||"all"}. Restart the server to apply.`),p()):ae.error("Update failed: "+W.error)}catch(W){ae.error("Update failed: "+W.message)}finally{S(!1)}},R=async()=>{try{a(!0);const q=await Ce.getConfig();t(q.config),o(q.path)}catch{ae.error("Failed to load settings")}finally{a(!1)}},E=async()=>{h(!0);try{await Ce.saveConfig(e),ae.success("Preferences saved!")}catch{ae.error("Failed to save preferences")}finally{h(!1)}},D=(q,W)=>{t(G=>({...G,[q]:W}))},$=(q,W,G)=>{t(J=>({...J,[q]:{...J[q],[W]:G}}))},H=q=>{const W=(e==null?void 0:e.enabledTools)||["claude"];W.includes(q)?W.length>1&&D("enabledTools",W.filter(G=>G!==q)):D("enabledTools",[...W,q])};return f?i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx(yt,{className:"w-8 h-8 animate-spin text-primary"})}):i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-10 h-10 rounded-lg bg-muted flex items-center justify-center",children:i.jsx(H_,{className:"w-5 h-5 text-muted-foreground"})}),i.jsxs("div",{children:[i.jsx("h2",{className:"text-lg font-semibold text-foreground",children:"claude-config Preferences"}),i.jsx("p",{className:"text-sm text-muted-foreground",children:"Tool settings for this configuration manager"})]})]}),i.jsxs("div",{className:"bg-card rounded-xl border border-border p-6 shadow-sm",children:[i.jsxs("div",{className:"flex items-center justify-between mb-6",children:[i.jsx("div",{children:i.jsxs("p",{className:"text-sm text-muted-foreground",children:["Stored in: ",i.jsx("code",{className:"bg-muted px-2 py-0.5 rounded",children:s})]})}),i.jsxs(de,{onClick:E,disabled:c,children:[c?i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx(ro,{className:"w-4 h-4 mr-2"}),"Save"]})]}),i.jsxs("div",{className:"space-y-6",children:[i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(Ut,{className:"w-4 h-4"}),"Directories"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"MCP Tools Directories"}),i.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Folders containing local MCP tool repositories for discovery"}),i.jsxs("div",{className:"space-y-2",children:[((e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[])).map((q,W)=>i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{value:q||"",onChange:G=>{const J=[...(e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[])];J[W]=G.target.value,D("toolsDirs",J),e!=null&&e.toolsDir&&t(z=>{const{toolsDir:M,...B}=z;return{...B,toolsDirs:J}})},placeholder:"~/mcp-tools",className:"font-mono flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>m({open:!0,field:"toolsDirs",type:"directory",index:W}),title:"Browse...",children:i.jsx(yn,{className:"w-4 h-4"})}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>{const J=((e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[])).filter((z,M)=>M!==W);t(z=>{const{toolsDir:M,...B}=z;return{...B,toolsDirs:J.length>0?J:void 0}})},title:"Remove",className:"text-destructive hover:text-destructive",children:i.jsx(ip,{className:"w-4 h-4"})})]},W)),i.jsxs(de,{variant:"outline",size:"sm",onClick:()=>m({open:!0,field:"toolsDirs",type:"directory",index:-1}),className:"mt-2",children:[i.jsx(M_,{className:"w-4 h-4 mr-2"}),"Add Tools Folder"]})]})]}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Global Registry Path"}),i.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Path to the global MCP registry file"}),i.jsxs("div",{className:"flex gap-2",children:[i.jsx(rt,{value:(e==null?void 0:e.registryPath)||"",onChange:q=>D("registryPath",q.target.value),placeholder:"~/.claude/registry.json",className:"font-mono flex-1"}),i.jsx(de,{variant:"outline",size:"icon",onClick:()=>m({open:!0,field:"registryPath",type:"file"}),title:"Browse...",children:i.jsx(yn,{className:"w-4 h-4"})})]})]})]})]}),i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(to,{className:"w-4 h-4"}),"User Interface"]}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Default Port"}),i.jsx("p",{className:"text-xs text-muted-foreground mb-2",children:"Port for the web UI server"}),i.jsx(rt,{type:"number",value:((U=e==null?void 0:e.ui)==null?void 0:U.port)||3333,onChange:q=>$("ui","port",parseInt(q.target.value)||3333),placeholder:"3333",className:"w-32"})]}),i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Open Browser on Start"}),i.jsx("p",{className:"text-xs text-muted-foreground",children:"Automatically open browser when starting the UI"})]}),i.jsx(St,{checked:((V=e==null?void 0:e.ui)==null?void 0:V.openBrowser)??!0,onCheckedChange:q=>$("ui","openBrowser",q)})]})]})]}),i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(TR,{className:"w-4 h-4"}),"AI Assistant"]}),i.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Choose which AI assistant to use for features like MCP creation and tool import."}),i.jsxs("div",{className:"space-y-2",children:[i.jsxs("label",{className:`flex items-center gap-3 p-3 rounded-lg cursor-pointer border-2 transition-colors ${((e==null?void 0:e.aiAssistant)||"claude")==="claude"?"border-orange-500 bg-orange-500/5":"border-transparent bg-muted/50 hover:bg-muted"}`,onClick:()=>D("aiAssistant","claude"),children:[i.jsx("input",{type:"radio",name:"aiAssistant",value:"claude",checked:((e==null?void 0:e.aiAssistant)||"claude")==="claude",onChange:()=>D("aiAssistant","claude"),className:"sr-only"}),i.jsx("div",{className:"w-8 h-8 rounded-md bg-orange-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-orange-500"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:"Claude Code"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Anthropic's AI coding assistant • Command: ",i.jsx("code",{className:"text-xs",children:"claude"})]})]}),((e==null?void 0:e.aiAssistant)||"claude")==="claude"&&i.jsx("div",{className:"w-2 h-2 rounded-full bg-orange-500"})]}),i.jsxs("label",{className:`flex items-center gap-3 p-3 rounded-lg cursor-pointer border-2 transition-colors ${(e==null?void 0:e.aiAssistant)==="gemini"?"border-blue-500 bg-blue-500/5":"border-transparent bg-muted/50 hover:bg-muted"}`,onClick:()=>D("aiAssistant","gemini"),children:[i.jsx("input",{type:"radio",name:"aiAssistant",value:"gemini",checked:(e==null?void 0:e.aiAssistant)==="gemini",onChange:()=>D("aiAssistant","gemini"),className:"sr-only"}),i.jsx("div",{className:"w-8 h-8 rounded-md bg-blue-500/10 flex items-center justify-center",children:i.jsx(Et,{className:"w-4 h-4 text-blue-500"})}),i.jsxs("div",{className:"flex-1",children:[i.jsx("span",{className:"text-sm font-medium text-foreground",children:"Gemini CLI"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Google's AI coding assistant • Command: ",i.jsx("code",{className:"text-xs",children:"gemini"})]})]}),(e==null?void 0:e.aiAssistant)==="gemini"&&i.jsx("div",{className:"w-2 h-2 rounded-full bg-blue-500"})]})]})]}),i.jsxs("div",{className:"border-b border-border pb-6",children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(YR,{className:"w-4 h-4"}),"Enabled AI Tools"]}),i.jsx("p",{className:"text-xs text-muted-foreground mb-4",children:"Select which AI coding tools to generate MCP configurations for. The Apply button will update all enabled tools."}),i.jsxs("div",{className:"space-y-4",children:[i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-orange-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-orange-500"})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Claude Code"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Anthropic's AI coding assistant • Output: ",i.jsx("code",{className:"text-xs",children:".mcp.json"})]})]})]}),i.jsx(St,{checked:((e==null?void 0:e.enabledTools)||["claude"]).includes("claude"),onCheckedChange:()=>H("claude")})]}),i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-blue-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-blue-500"})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Gemini CLI"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Google's terminal AI coding assistant • Output: ",i.jsx("code",{className:"text-xs",children:"~/.gemini/settings.json"})]})]})]}),i.jsx(St,{checked:((e==null?void 0:e.enabledTools)||["claude"]).includes("gemini"),onCheckedChange:()=>H("gemini")})]}),i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx("div",{className:"w-8 h-8 rounded-md bg-purple-500/10 flex items-center justify-center",children:i.jsx(ar,{className:"w-4 h-4 text-purple-500"})}),i.jsxs("div",{children:[i.jsx("label",{className:"text-sm font-medium text-foreground",children:"Antigravity"}),i.jsxs("p",{className:"text-xs text-muted-foreground",children:["Google's AI IDE • Output: ",i.jsx("code",{className:"text-xs",children:"~/.gemini/antigravity/mcp_config.json"})]})]})]}),i.jsx(St,{checked:((e==null?void 0:e.enabledTools)||["claude"]).includes("antigravity"),onCheckedChange:()=>H("antigravity")})]}),i.jsxs("p",{className:"text-xs text-muted-foreground italic",children:["Note: Antigravity does not support environment variable interpolation (",i.jsx("code",{children:"${VAR}"}),"). Variables are resolved to actual values when generating its config."]})]})]}),v.length>0&&i.jsxs("div",{children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(T_,{className:"w-4 h-4"}),"Hidden Sub-projects"]}),i.jsx("div",{className:"space-y-2",children:v.map(q=>i.jsxs("div",{className:"flex items-center justify-between p-3 bg-muted/50 rounded-lg",children:[i.jsxs("div",{className:"flex items-center gap-3",children:[i.jsx(Ut,{className:"w-4 h-4 text-muted-foreground"}),i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-foreground",children:q.name}),i.jsx("p",{className:"text-xs text-muted-foreground font-mono",children:q.dir.replace(j+"/","")})]})]}),i.jsxs(de,{size:"sm",variant:"outline",onClick:()=>P(q.dir),className:"h-7",children:[i.jsx(A_,{className:"w-3 h-3 mr-1"}),"Unhide"]})]},q.dir))})]}),i.jsxs("div",{children:[i.jsxs("h3",{className:"text-sm font-medium text-foreground mb-4 flex items-center gap-2",children:[i.jsx(vr,{className:"w-4 h-4"}),"About"]}),i.jsxs("div",{className:"bg-muted rounded-lg p-4 space-y-3",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Installed Version"}),i.jsx("span",{className:"font-medium font-mono text-foreground",children:(g==null?void 0:g.installedVersion)||"Loading..."})]}),(g==null?void 0:g.updateAvailable)&&i.jsx("div",{className:"p-3 bg-green-500/10 border border-green-500/20 rounded-lg",children:i.jsxs("div",{className:"flex items-center justify-between",children:[i.jsxs("div",{children:[i.jsx("p",{className:"text-sm font-medium text-green-600 dark:text-green-400",children:"Update Available!"}),i.jsxs("p",{className:"text-xs text-green-600/80 dark:text-green-400/80",children:["Version ",g.latestVersion," via ",g.updateMethod==="npm"?"npm":g.sourcePath]})]}),i.jsxs(de,{size:"sm",onClick:T,disabled:_,className:"bg-green-600 hover:bg-green-700 text-white",children:[_?i.jsx(yt,{className:"w-4 h-4 mr-2 animate-spin"}):i.jsx($c,{className:"w-4 h-4 mr-2"}),"Update Now"]})]})}),!(g!=null&&g.updateAvailable)&&(g==null?void 0:g.latestVersion)&&i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Latest Version"}),i.jsxs("span",{className:"font-mono text-green-600 dark:text-green-400",children:[g.latestVersion," ✓"]})]}),(g==null?void 0:g.sourcePath)&&!(g!=null&&g.updateAvailable)&&i.jsxs("div",{className:"flex items-center justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Dev Source"}),i.jsxs("div",{className:"flex items-center gap-2",children:[i.jsx("code",{className:"text-xs text-muted-foreground",children:g.sourcePath}),i.jsx(de,{size:"sm",variant:"outline",onClick:T,disabled:_,className:"h-7",children:_?i.jsx(yt,{className:"w-3 h-3 animate-spin"}):i.jsx(yr,{className:"w-3 h-3"})})]})]}),i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Install Location"}),i.jsx("code",{className:"text-xs text-muted-foreground",children:(g==null?void 0:g.installDir)||"~/.claude-config"})]}),i.jsxs("div",{className:"border-t border-border pt-3 mt-3",children:[i.jsxs("div",{className:"flex justify-between text-sm",children:[i.jsx("span",{className:"text-muted-foreground",children:"Documentation"}),i.jsx("a",{href:"https://github.com/regression-io/claude-config",target:"_blank",rel:"noopener noreferrer",className:"text-primary hover:underline",children:"GitHub"})]}),i.jsxs("p",{className:"text-xs text-muted-foreground mt-2",children:["After updating, restart the server with ",i.jsx("code",{className:"bg-muted-foreground/10 px-1 rounded",children:"claude-config ui"})]})]})]})]})]})]}),i.jsx(em,{open:l.open,onOpenChange:q=>m(W=>({...W,open:q})),onSelect:q=>{if(l.field==="toolsDirs"){const W=(e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[]);if(l.index===-1)t(G=>{const{toolsDir:J,...z}=G;return{...z,toolsDirs:[...W,q]}});else{const G=[...W];G[l.index]=q,t(J=>{const{toolsDir:z,...M}=J;return{...M,toolsDirs:G}})}}else l.field&&D(l.field,q)},type:l.type,initialPath:l.field==="toolsDirs"&&l.index>=0?((e==null?void 0:e.toolsDirs)||(e!=null&&e.toolsDir?[e.toolsDir]:[]))[l.index]||"~":(e==null?void 0:e[l.field])||"~",title:l.type==="directory"?"Select Directory":"Select File"})]})}function QO(){const[e,t]=C.useState(null),[s,o]=C.useState(!0);C.useEffect(()=>{l()},[]);const l=async()=>{try{o(!0);const f=await Ce.getClaudeSettings();t(f.settings)}catch(f){console.error("Failed to load Claude settings:",f)}finally{o(!1)}},m=async f=>{try{await Ce.saveClaudeSettings(f),t(f),ae.success("Claude Code settings saved!")}catch(a){ae.error("Failed to save settings: "+a.message)}};return s?i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx(yt,{className:"w-8 h-8 animate-spin text-indigo-600"})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"bg-white dark:bg-slate-950 rounded-xl border border-gray-200 dark:border-slate-800 p-6 shadow-sm",children:i.jsx(N1,{settings:e,onSave:m,loading:s,settingsPath:"~/.claude/settings.json"})})})}function ZO(){const[e,t]=C.useState(null),[s,o]=C.useState(!0);C.useEffect(()=>{l()},[]);const l=async()=>{try{o(!0);const f=await Ce.getGeminiSettings();t(f.settings)}catch(f){console.error("Failed to load Gemini settings:",f)}finally{o(!1)}},m=async f=>{try{await Ce.saveGeminiSettings(f),t(f),ae.success("Gemini CLI settings saved!")}catch(a){ae.error("Failed to save settings: "+a.message)}};return s?i.jsx("div",{className:"flex items-center justify-center h-64",children:i.jsx(yt,{className:"w-8 h-8 animate-spin text-blue-600"})}):i.jsx("div",{className:"space-y-6",children:i.jsx("div",{className:"bg-white dark:bg-slate-950 rounded-xl border border-gray-200 dark:border-slate-800 p-6 shadow-sm",children:i.jsx(P1,{settings:e,onSave:m,loading:s,settingsPath:"~/.gemini/settings.json"})})})}var Rh={exports:{}},Wy;function eI(){return Wy||(Wy=1,(function(e,t){(function(s,o){e.exports=o()})(globalThis,(()=>(()=>{var s={4567:function(f,a,c){var h=this&&this.__decorate||function(p,x,k,P){var T,R=arguments.length,E=R<3?x:P===null?P=Object.getOwnPropertyDescriptor(x,k):P;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")E=Reflect.decorate(p,x,k,P);else for(var D=p.length-1;D>=0;D--)(T=p[D])&&(E=(R<3?T(E):R>3?T(x,k,E):T(x,k))||E);return R>3&&E&&Object.defineProperty(x,k,E),E},g=this&&this.__param||function(p,x){return function(k,P){x(k,P,p)}};Object.defineProperty(a,"__esModule",{value:!0}),a.AccessibilityManager=void 0;const d=c(9042),_=c(9924),S=c(844),j=c(4725),b=c(2585),v=c(3656);let y=a.AccessibilityManager=class extends S.Disposable{constructor(p,x,k,P){super(),this._terminal=p,this._coreBrowserService=k,this._renderService=P,this._rowColumns=new WeakMap,this._liveRegionLineCount=0,this._charsToConsume=[],this._charsToAnnounce="",this._accessibilityContainer=this._coreBrowserService.mainDocument.createElement("div"),this._accessibilityContainer.classList.add("xterm-accessibility"),this._rowContainer=this._coreBrowserService.mainDocument.createElement("div"),this._rowContainer.setAttribute("role","list"),this._rowContainer.classList.add("xterm-accessibility-tree"),this._rowElements=[];for(let T=0;T<this._terminal.rows;T++)this._rowElements[T]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[T]);if(this._topBoundaryFocusListener=T=>this._handleBoundaryFocus(T,0),this._bottomBoundaryFocusListener=T=>this._handleBoundaryFocus(T,1),this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions(),this._accessibilityContainer.appendChild(this._rowContainer),this._liveRegion=this._coreBrowserService.mainDocument.createElement("div"),this._liveRegion.classList.add("live-region"),this._liveRegion.setAttribute("aria-live","assertive"),this._accessibilityContainer.appendChild(this._liveRegion),this._liveRegionDebouncer=this.register(new _.TimeBasedDebouncer(this._renderRows.bind(this))),!this._terminal.element)throw new Error("Cannot enable accessibility before Terminal.open");this._terminal.element.insertAdjacentElement("afterbegin",this._accessibilityContainer),this.register(this._terminal.onResize((T=>this._handleResize(T.rows)))),this.register(this._terminal.onRender((T=>this._refreshRows(T.start,T.end)))),this.register(this._terminal.onScroll((()=>this._refreshRows()))),this.register(this._terminal.onA11yChar((T=>this._handleChar(T)))),this.register(this._terminal.onLineFeed((()=>this._handleChar(`
|
|
459
459
|
`)))),this.register(this._terminal.onA11yTab((T=>this._handleTab(T)))),this.register(this._terminal.onKey((T=>this._handleKey(T.key)))),this.register(this._terminal.onBlur((()=>this._clearLiveRegion()))),this.register(this._renderService.onDimensionsChange((()=>this._refreshRowsDimensions()))),this.register((0,v.addDisposableDomListener)(document,"selectionchange",(()=>this._handleSelectionChange()))),this.register(this._coreBrowserService.onDprChange((()=>this._refreshRowsDimensions()))),this._refreshRows(),this.register((0,S.toDisposable)((()=>{this._accessibilityContainer.remove(),this._rowElements.length=0})))}_handleTab(p){for(let x=0;x<p;x++)this._handleChar(" ")}_handleChar(p){this._liveRegionLineCount<21&&(this._charsToConsume.length>0?this._charsToConsume.shift()!==p&&(this._charsToAnnounce+=p):this._charsToAnnounce+=p,p===`
|
|
460
460
|
`&&(this._liveRegionLineCount++,this._liveRegionLineCount===21&&(this._liveRegion.textContent+=d.tooMuchOutput)))}_clearLiveRegion(){this._liveRegion.textContent="",this._liveRegionLineCount=0}_handleKey(p){this._clearLiveRegion(),new RegExp("\\p{Control}","u").test(p)||this._charsToConsume.push(p)}_refreshRows(p,x){this._liveRegionDebouncer.refresh(p,x,this._terminal.rows)}_renderRows(p,x){const k=this._terminal.buffer,P=k.lines.length.toString();for(let T=p;T<=x;T++){const R=k.lines.get(k.ydisp+T),E=[],D=(R==null?void 0:R.translateToString(!0,void 0,void 0,E))||"",$=(k.ydisp+T+1).toString(),H=this._rowElements[T];H&&(D.length===0?(H.innerText=" ",this._rowColumns.set(H,[0,1])):(H.textContent=D,this._rowColumns.set(H,E)),H.setAttribute("aria-posinset",$),H.setAttribute("aria-setsize",P))}this._announceCharacters()}_announceCharacters(){this._charsToAnnounce.length!==0&&(this._liveRegion.textContent+=this._charsToAnnounce,this._charsToAnnounce="")}_handleBoundaryFocus(p,x){const k=p.target,P=this._rowElements[x===0?1:this._rowElements.length-2];if(k.getAttribute("aria-posinset")===(x===0?"1":`${this._terminal.buffer.lines.length}`)||p.relatedTarget!==P)return;let T,R;if(x===0?(T=k,R=this._rowElements.pop(),this._rowContainer.removeChild(R)):(T=this._rowElements.shift(),R=k,this._rowContainer.removeChild(T)),T.removeEventListener("focus",this._topBoundaryFocusListener),R.removeEventListener("focus",this._bottomBoundaryFocusListener),x===0){const E=this._createAccessibilityTreeNode();this._rowElements.unshift(E),this._rowContainer.insertAdjacentElement("afterbegin",E)}else{const E=this._createAccessibilityTreeNode();this._rowElements.push(E),this._rowContainer.appendChild(E)}this._rowElements[0].addEventListener("focus",this._topBoundaryFocusListener),this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._terminal.scrollLines(x===0?-1:1),this._rowElements[x===0?1:this._rowElements.length-2].focus(),p.preventDefault(),p.stopImmediatePropagation()}_handleSelectionChange(){var D;if(this._rowElements.length===0)return;const p=document.getSelection();if(!p)return;if(p.isCollapsed)return void(this._rowContainer.contains(p.anchorNode)&&this._terminal.clearSelection());if(!p.anchorNode||!p.focusNode)return void console.error("anchorNode and/or focusNode are null");let x={node:p.anchorNode,offset:p.anchorOffset},k={node:p.focusNode,offset:p.focusOffset};if((x.node.compareDocumentPosition(k.node)&Node.DOCUMENT_POSITION_PRECEDING||x.node===k.node&&x.offset>k.offset)&&([x,k]=[k,x]),x.node.compareDocumentPosition(this._rowElements[0])&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING)&&(x={node:this._rowElements[0].childNodes[0],offset:0}),!this._rowContainer.contains(x.node))return;const P=this._rowElements.slice(-1)[0];if(k.node.compareDocumentPosition(P)&(Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_PRECEDING)&&(k={node:P,offset:((D=P.textContent)==null?void 0:D.length)??0}),!this._rowContainer.contains(k.node))return;const T=({node:$,offset:H})=>{const U=$ instanceof Text?$.parentNode:$;let V=parseInt(U==null?void 0:U.getAttribute("aria-posinset"),10)-1;if(isNaN(V))return console.warn("row is invalid. Race condition?"),null;const q=this._rowColumns.get(U);if(!q)return console.warn("columns is null. Race condition?"),null;let W=H<q.length?q[H]:q.slice(-1)[0]+1;return W>=this._terminal.cols&&(++V,W=0),{row:V,column:W}},R=T(x),E=T(k);if(R&&E){if(R.row>E.row||R.row===E.row&&R.column>=E.column)throw new Error("invalid range");this._terminal.select(R.column,R.row,(E.row-R.row)*this._terminal.cols-R.column+E.column)}}_handleResize(p){this._rowElements[this._rowElements.length-1].removeEventListener("focus",this._bottomBoundaryFocusListener);for(let x=this._rowContainer.children.length;x<this._terminal.rows;x++)this._rowElements[x]=this._createAccessibilityTreeNode(),this._rowContainer.appendChild(this._rowElements[x]);for(;this._rowElements.length>p;)this._rowContainer.removeChild(this._rowElements.pop());this._rowElements[this._rowElements.length-1].addEventListener("focus",this._bottomBoundaryFocusListener),this._refreshRowsDimensions()}_createAccessibilityTreeNode(){const p=this._coreBrowserService.mainDocument.createElement("div");return p.setAttribute("role","listitem"),p.tabIndex=-1,this._refreshRowDimensions(p),p}_refreshRowsDimensions(){if(this._renderService.dimensions.css.cell.height){this._accessibilityContainer.style.width=`${this._renderService.dimensions.css.canvas.width}px`,this._rowElements.length!==this._terminal.rows&&this._handleResize(this._terminal.rows);for(let p=0;p<this._terminal.rows;p++)this._refreshRowDimensions(this._rowElements[p])}}_refreshRowDimensions(p){p.style.height=`${this._renderService.dimensions.css.cell.height}px`}};a.AccessibilityManager=y=h([g(1,b.IInstantiationService),g(2,j.ICoreBrowserService),g(3,j.IRenderService)],y)},3614:(f,a)=>{function c(_){return _.replace(/\r?\n/g,"\r")}function h(_,S){return S?"\x1B[200~"+_+"\x1B[201~":_}function g(_,S,j,b){_=h(_=c(_),j.decPrivateModes.bracketedPasteMode&&b.rawOptions.ignoreBracketedPasteMode!==!0),j.triggerDataEvent(_,!0),S.value=""}function d(_,S,j){const b=j.getBoundingClientRect(),v=_.clientX-b.left-10,y=_.clientY-b.top-10;S.style.width="20px",S.style.height="20px",S.style.left=`${v}px`,S.style.top=`${y}px`,S.style.zIndex="1000",S.focus()}Object.defineProperty(a,"__esModule",{value:!0}),a.rightClickHandler=a.moveTextAreaUnderMouseCursor=a.paste=a.handlePasteEvent=a.copyHandler=a.bracketTextForPaste=a.prepareTextForTerminal=void 0,a.prepareTextForTerminal=c,a.bracketTextForPaste=h,a.copyHandler=function(_,S){_.clipboardData&&_.clipboardData.setData("text/plain",S.selectionText),_.preventDefault()},a.handlePasteEvent=function(_,S,j,b){_.stopPropagation(),_.clipboardData&&g(_.clipboardData.getData("text/plain"),S,j,b)},a.paste=g,a.moveTextAreaUnderMouseCursor=d,a.rightClickHandler=function(_,S,j,b,v){d(_,S,j),v&&b.rightClickSelect(_),S.value=b.selectionText,S.select()}},7239:(f,a,c)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ColorContrastCache=void 0;const h=c(1505);a.ColorContrastCache=class{constructor(){this._color=new h.TwoKeyMap,this._css=new h.TwoKeyMap}setCss(g,d,_){this._css.set(g,d,_)}getCss(g,d){return this._css.get(g,d)}setColor(g,d,_){this._color.set(g,d,_)}getColor(g,d){return this._color.get(g,d)}clear(){this._color.clear(),this._css.clear()}}},3656:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.addDisposableDomListener=void 0,a.addDisposableDomListener=function(c,h,g,d){c.addEventListener(h,g,d);let _=!1;return{dispose:()=>{_||(_=!0,c.removeEventListener(h,g,d))}}}},3551:function(f,a,c){var h=this&&this.__decorate||function(y,p,x,k){var P,T=arguments.length,R=T<3?p:k===null?k=Object.getOwnPropertyDescriptor(p,x):k;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")R=Reflect.decorate(y,p,x,k);else for(var E=y.length-1;E>=0;E--)(P=y[E])&&(R=(T<3?P(R):T>3?P(p,x,R):P(p,x))||R);return T>3&&R&&Object.defineProperty(p,x,R),R},g=this&&this.__param||function(y,p){return function(x,k){p(x,k,y)}};Object.defineProperty(a,"__esModule",{value:!0}),a.Linkifier=void 0;const d=c(3656),_=c(8460),S=c(844),j=c(2585),b=c(4725);let v=a.Linkifier=class extends S.Disposable{get currentLink(){return this._currentLink}constructor(y,p,x,k,P){super(),this._element=y,this._mouseService=p,this._renderService=x,this._bufferService=k,this._linkProviderService=P,this._linkCacheDisposables=[],this._isMouseOut=!0,this._wasResized=!1,this._activeLine=-1,this._onShowLinkUnderline=this.register(new _.EventEmitter),this.onShowLinkUnderline=this._onShowLinkUnderline.event,this._onHideLinkUnderline=this.register(new _.EventEmitter),this.onHideLinkUnderline=this._onHideLinkUnderline.event,this.register((0,S.getDisposeArrayDisposable)(this._linkCacheDisposables)),this.register((0,S.toDisposable)((()=>{var T;this._lastMouseEvent=void 0,(T=this._activeProviderReplies)==null||T.clear()}))),this.register(this._bufferService.onResize((()=>{this._clearCurrentLink(),this._wasResized=!0}))),this.register((0,d.addDisposableDomListener)(this._element,"mouseleave",(()=>{this._isMouseOut=!0,this._clearCurrentLink()}))),this.register((0,d.addDisposableDomListener)(this._element,"mousemove",this._handleMouseMove.bind(this))),this.register((0,d.addDisposableDomListener)(this._element,"mousedown",this._handleMouseDown.bind(this))),this.register((0,d.addDisposableDomListener)(this._element,"mouseup",this._handleMouseUp.bind(this)))}_handleMouseMove(y){this._lastMouseEvent=y;const p=this._positionFromMouseEvent(y,this._element,this._mouseService);if(!p)return;this._isMouseOut=!1;const x=y.composedPath();for(let k=0;k<x.length;k++){const P=x[k];if(P.classList.contains("xterm"))break;if(P.classList.contains("xterm-hover"))return}this._lastBufferCell&&p.x===this._lastBufferCell.x&&p.y===this._lastBufferCell.y||(this._handleHover(p),this._lastBufferCell=p)}_handleHover(y){if(this._activeLine!==y.y||this._wasResized)return this._clearCurrentLink(),this._askForLink(y,!1),void(this._wasResized=!1);this._currentLink&&this._linkAtPosition(this._currentLink.link,y)||(this._clearCurrentLink(),this._askForLink(y,!0))}_askForLink(y,p){var k,P;this._activeProviderReplies&&p||((k=this._activeProviderReplies)==null||k.forEach((T=>{T==null||T.forEach((R=>{R.link.dispose&&R.link.dispose()}))})),this._activeProviderReplies=new Map,this._activeLine=y.y);let x=!1;for(const[T,R]of this._linkProviderService.linkProviders.entries())p?(P=this._activeProviderReplies)!=null&&P.get(T)&&(x=this._checkLinkProviderResult(T,y,x)):R.provideLinks(y.y,(E=>{var $,H;if(this._isMouseOut)return;const D=E==null?void 0:E.map((U=>({link:U})));($=this._activeProviderReplies)==null||$.set(T,D),x=this._checkLinkProviderResult(T,y,x),((H=this._activeProviderReplies)==null?void 0:H.size)===this._linkProviderService.linkProviders.length&&this._removeIntersectingLinks(y.y,this._activeProviderReplies)}))}_removeIntersectingLinks(y,p){const x=new Set;for(let k=0;k<p.size;k++){const P=p.get(k);if(P)for(let T=0;T<P.length;T++){const R=P[T],E=R.link.range.start.y<y?0:R.link.range.start.x,D=R.link.range.end.y>y?this._bufferService.cols:R.link.range.end.x;for(let $=E;$<=D;$++){if(x.has($)){P.splice(T--,1);break}x.add($)}}}}_checkLinkProviderResult(y,p,x){var T;if(!this._activeProviderReplies)return x;const k=this._activeProviderReplies.get(y);let P=!1;for(let R=0;R<y;R++)this._activeProviderReplies.has(R)&&!this._activeProviderReplies.get(R)||(P=!0);if(!P&&k){const R=k.find((E=>this._linkAtPosition(E.link,p)));R&&(x=!0,this._handleNewLink(R))}if(this._activeProviderReplies.size===this._linkProviderService.linkProviders.length&&!x)for(let R=0;R<this._activeProviderReplies.size;R++){const E=(T=this._activeProviderReplies.get(R))==null?void 0:T.find((D=>this._linkAtPosition(D.link,p)));if(E){x=!0,this._handleNewLink(E);break}}return x}_handleMouseDown(){this._mouseDownLink=this._currentLink}_handleMouseUp(y){if(!this._currentLink)return;const p=this._positionFromMouseEvent(y,this._element,this._mouseService);p&&this._mouseDownLink===this._currentLink&&this._linkAtPosition(this._currentLink.link,p)&&this._currentLink.link.activate(y,this._currentLink.link.text)}_clearCurrentLink(y,p){this._currentLink&&this._lastMouseEvent&&(!y||!p||this._currentLink.link.range.start.y>=y&&this._currentLink.link.range.end.y<=p)&&(this._linkLeave(this._element,this._currentLink.link,this._lastMouseEvent),this._currentLink=void 0,(0,S.disposeArray)(this._linkCacheDisposables))}_handleNewLink(y){if(!this._lastMouseEvent)return;const p=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);p&&this._linkAtPosition(y.link,p)&&(this._currentLink=y,this._currentLink.state={decorations:{underline:y.link.decorations===void 0||y.link.decorations.underline,pointerCursor:y.link.decorations===void 0||y.link.decorations.pointerCursor},isHovered:!0},this._linkHover(this._element,y.link,this._lastMouseEvent),y.link.decorations={},Object.defineProperties(y.link.decorations,{pointerCursor:{get:()=>{var x,k;return(k=(x=this._currentLink)==null?void 0:x.state)==null?void 0:k.decorations.pointerCursor},set:x=>{var k;(k=this._currentLink)!=null&&k.state&&this._currentLink.state.decorations.pointerCursor!==x&&(this._currentLink.state.decorations.pointerCursor=x,this._currentLink.state.isHovered&&this._element.classList.toggle("xterm-cursor-pointer",x))}},underline:{get:()=>{var x,k;return(k=(x=this._currentLink)==null?void 0:x.state)==null?void 0:k.decorations.underline},set:x=>{var k,P,T;(k=this._currentLink)!=null&&k.state&&((T=(P=this._currentLink)==null?void 0:P.state)==null?void 0:T.decorations.underline)!==x&&(this._currentLink.state.decorations.underline=x,this._currentLink.state.isHovered&&this._fireUnderlineEvent(y.link,x))}}}),this._linkCacheDisposables.push(this._renderService.onRenderedViewportChange((x=>{if(!this._currentLink)return;const k=x.start===0?0:x.start+1+this._bufferService.buffer.ydisp,P=this._bufferService.buffer.ydisp+1+x.end;if(this._currentLink.link.range.start.y>=k&&this._currentLink.link.range.end.y<=P&&(this._clearCurrentLink(k,P),this._lastMouseEvent)){const T=this._positionFromMouseEvent(this._lastMouseEvent,this._element,this._mouseService);T&&this._askForLink(T,!1)}}))))}_linkHover(y,p,x){var k;(k=this._currentLink)!=null&&k.state&&(this._currentLink.state.isHovered=!0,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(p,!0),this._currentLink.state.decorations.pointerCursor&&y.classList.add("xterm-cursor-pointer")),p.hover&&p.hover(x,p.text)}_fireUnderlineEvent(y,p){const x=y.range,k=this._bufferService.buffer.ydisp,P=this._createLinkUnderlineEvent(x.start.x-1,x.start.y-k-1,x.end.x,x.end.y-k-1,void 0);(p?this._onShowLinkUnderline:this._onHideLinkUnderline).fire(P)}_linkLeave(y,p,x){var k;(k=this._currentLink)!=null&&k.state&&(this._currentLink.state.isHovered=!1,this._currentLink.state.decorations.underline&&this._fireUnderlineEvent(p,!1),this._currentLink.state.decorations.pointerCursor&&y.classList.remove("xterm-cursor-pointer")),p.leave&&p.leave(x,p.text)}_linkAtPosition(y,p){const x=y.range.start.y*this._bufferService.cols+y.range.start.x,k=y.range.end.y*this._bufferService.cols+y.range.end.x,P=p.y*this._bufferService.cols+p.x;return x<=P&&P<=k}_positionFromMouseEvent(y,p,x){const k=x.getCoords(y,p,this._bufferService.cols,this._bufferService.rows);if(k)return{x:k[0],y:k[1]+this._bufferService.buffer.ydisp}}_createLinkUnderlineEvent(y,p,x,k,P){return{x1:y,y1:p,x2:x,y2:k,cols:this._bufferService.cols,fg:P}}};a.Linkifier=v=h([g(1,b.IMouseService),g(2,b.IRenderService),g(3,j.IBufferService),g(4,b.ILinkProviderService)],v)},9042:(f,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.tooMuchOutput=a.promptLabel=void 0,a.promptLabel="Terminal input",a.tooMuchOutput="Too much output to announce, navigate to rows manually to read"},3730:function(f,a,c){var h=this&&this.__decorate||function(b,v,y,p){var x,k=arguments.length,P=k<3?v:p===null?p=Object.getOwnPropertyDescriptor(v,y):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")P=Reflect.decorate(b,v,y,p);else for(var T=b.length-1;T>=0;T--)(x=b[T])&&(P=(k<3?x(P):k>3?x(v,y,P):x(v,y))||P);return k>3&&P&&Object.defineProperty(v,y,P),P},g=this&&this.__param||function(b,v){return function(y,p){v(y,p,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkProvider=void 0;const d=c(511),_=c(2585);let S=a.OscLinkProvider=class{constructor(b,v,y){this._bufferService=b,this._optionsService=v,this._oscLinkService=y}provideLinks(b,v){var D;const y=this._bufferService.buffer.lines.get(b-1);if(!y)return void v(void 0);const p=[],x=this._optionsService.rawOptions.linkHandler,k=new d.CellData,P=y.getTrimmedLength();let T=-1,R=-1,E=!1;for(let $=0;$<P;$++)if(R!==-1||y.hasContent($)){if(y.loadCell($,k),k.hasExtendedAttrs()&&k.extended.urlId){if(R===-1){R=$,T=k.extended.urlId;continue}E=k.extended.urlId!==T}else R!==-1&&(E=!0);if(E||R!==-1&&$===P-1){const H=(D=this._oscLinkService.getLinkData(T))==null?void 0:D.uri;if(H){const U={start:{x:R+1,y:b},end:{x:$+(E||$!==P-1?0:1),y:b}};let V=!1;if(!(x!=null&&x.allowNonHttpProtocols))try{const q=new URL(H);["http:","https:"].includes(q.protocol)||(V=!0)}catch{V=!0}V||p.push({text:H,range:U,activate:(q,W)=>x?x.activate(q,W,U):j(0,W),hover:(q,W)=>{var G;return(G=x==null?void 0:x.hover)==null?void 0:G.call(x,q,W,U)},leave:(q,W)=>{var G;return(G=x==null?void 0:x.leave)==null?void 0:G.call(x,q,W,U)}})}E=!1,k.hasExtendedAttrs()&&k.extended.urlId?(R=$,T=k.extended.urlId):(R=-1,T=-1)}}v(p)}};function j(b,v){if(confirm(`Do you want to navigate to ${v}?
|
|
461
461
|
|
package/ui/dist/index.html
CHANGED
|
@@ -19,8 +19,8 @@
|
|
|
19
19
|
|
|
20
20
|
<!-- PWA Manifest -->
|
|
21
21
|
<link rel="manifest" href="/manifest.json">
|
|
22
|
-
<script type="module" crossorigin src="/assets/index-
|
|
23
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
22
|
+
<script type="module" crossorigin src="/assets/index-TjCEPPuT.js"></script>
|
|
23
|
+
<link rel="stylesheet" crossorigin href="/assets/index-Cd1FStcF.css">
|
|
24
24
|
</head>
|
|
25
25
|
<body>
|
|
26
26
|
<div id="root"></div>
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright (c) 2014 The xterm.js authors. All rights reserved.
|
|
3
|
-
* Copyright (c) 2012-2013, Christopher Jeffrey (MIT License)
|
|
4
|
-
* https://github.com/chjj/term.js
|
|
5
|
-
* @license MIT
|
|
6
|
-
*
|
|
7
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
9
|
-
* in the Software without restriction, including without limitation the rights
|
|
10
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
12
|
-
* furnished to do so, subject to the following conditions:
|
|
13
|
-
*
|
|
14
|
-
* The above copyright notice and this permission notice shall be included in
|
|
15
|
-
* all copies or substantial portions of the Software.
|
|
16
|
-
*
|
|
17
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
23
|
-
* THE SOFTWARE.
|
|
24
|
-
*
|
|
25
|
-
* Originally forked from (with the author's permission):
|
|
26
|
-
* Fabrice Bellard's javascript vt100 for jslinux:
|
|
27
|
-
* http://bellard.org/jslinux/
|
|
28
|
-
* Copyright (c) 2011 Fabrice Bellard
|
|
29
|
-
* The original design remains. The terminal itself
|
|
30
|
-
* has been extended to include xterm CSI codes, among
|
|
31
|
-
* other features.
|
|
32
|
-
*/.xterm{cursor:text;position:relative;-moz-user-select:none;user-select:none;-ms-user-select:none;-webkit-user-select:none}.xterm.focus,.xterm:focus{outline:none}.xterm .xterm-helpers{position:absolute;top:0;z-index:5}.xterm .xterm-helper-textarea{padding:0;border:0;margin:0;position:absolute;opacity:0;left:-9999em;top:0;width:0;height:0;z-index:-5;white-space:nowrap;overflow:hidden;resize:none}.xterm .composition-view{background:#000;color:#fff;display:none;position:absolute;white-space:nowrap;z-index:1}.xterm .composition-view.active{display:block}.xterm .xterm-viewport{background-color:#000;overflow-y:scroll;cursor:default;position:absolute;right:0;left:0;top:0;bottom:0}.xterm .xterm-screen{position:relative}.xterm .xterm-screen canvas{position:absolute;left:0;top:0}.xterm .xterm-scroll-area{visibility:hidden}.xterm-char-measure-element{display:inline-block;visibility:hidden;position:absolute;top:0;left:-9999em;line-height:normal}.xterm.enable-mouse-events{cursor:default}.xterm.xterm-cursor-pointer,.xterm .xterm-cursor-pointer{cursor:pointer}.xterm.column-select.focus{cursor:crosshair}.xterm .xterm-accessibility:not(.debug),.xterm .xterm-message{position:absolute;left:0;top:0;bottom:0;right:0;z-index:10;color:transparent;pointer-events:none}.xterm .xterm-accessibility-tree:not(.debug) *::-moz-selection{color:transparent}.xterm .xterm-accessibility-tree:not(.debug) *::selection{color:transparent}.xterm .xterm-accessibility-tree{-webkit-user-select:text;-moz-user-select:text;user-select:text;white-space:pre}.xterm .live-region{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}.xterm-dim{opacity:1!important}.xterm-underline-1{text-decoration:underline}.xterm-underline-2{-webkit-text-decoration:double underline;text-decoration:double underline}.xterm-underline-3{-webkit-text-decoration:wavy underline;text-decoration:wavy underline}.xterm-underline-4{-webkit-text-decoration:dotted underline;text-decoration:dotted underline}.xterm-underline-5{-webkit-text-decoration:dashed underline;text-decoration:dashed underline}.xterm-overline{text-decoration:overline}.xterm-overline.xterm-underline-1{text-decoration:overline underline}.xterm-overline.xterm-underline-2{-webkit-text-decoration:overline double underline;text-decoration:overline double underline}.xterm-overline.xterm-underline-3{-webkit-text-decoration:overline wavy underline;text-decoration:overline wavy underline}.xterm-overline.xterm-underline-4{-webkit-text-decoration:overline dotted underline;text-decoration:overline dotted underline}.xterm-overline.xterm-underline-5{-webkit-text-decoration:overline dashed underline;text-decoration:overline dashed underline}.xterm-strikethrough{text-decoration:line-through}.xterm-screen .xterm-decoration-container .xterm-decoration{z-index:6;position:absolute}.xterm-screen .xterm-decoration-container .xterm-decoration.xterm-decoration-top-layer{z-index:7}.xterm-decoration-overview-ruler{z-index:8;position:absolute;top:0;right:0;pointer-events:none}.xterm-decoration-top{z-index:2;position:relative}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root{--background: 0 0% 100%;--foreground: 0 0% 3.9%;--card: 0 0% 100%;--card-foreground: 0 0% 3.9%;--popover: 0 0% 100%;--popover-foreground: 0 0% 3.9%;--primary: 0 0% 9%;--primary-foreground: 0 0% 98%;--secondary: 0 0% 96.1%;--secondary-foreground: 0 0% 9%;--muted: 0 0% 96.1%;--muted-foreground: 0 0% 45.1%;--accent: 0 0% 96.1%;--accent-foreground: 0 0% 9%;--destructive: 0 84.2% 60.2%;--destructive-foreground: 0 0% 98%;--border: 0 0% 89.8%;--input: 0 0% 89.8%;--ring: 0 0% 3.9%;--chart-1: 12 76% 61%;--chart-2: 173 58% 39%;--chart-3: 197 37% 24%;--chart-4: 43 74% 66%;--chart-5: 27 87% 67%;--radius: .5rem;--sidebar-background: 0 0% 98%;--sidebar-foreground: 240 5.3% 26.1%;--sidebar-primary: 240 5.9% 10%;--sidebar-primary-foreground: 0 0% 98%;--sidebar-accent: 240 4.8% 95.9%;--sidebar-accent-foreground: 240 5.9% 10%;--sidebar-border: 220 13% 91%;--sidebar-ring: 217.2 91.2% 59.8%}.dark{--background: 0 0% 3.9%;--foreground: 0 0% 98%;--card: 0 0% 3.9%;--card-foreground: 0 0% 98%;--popover: 0 0% 3.9%;--popover-foreground: 0 0% 98%;--primary: 0 0% 98%;--primary-foreground: 0 0% 9%;--secondary: 0 0% 14.9%;--secondary-foreground: 0 0% 98%;--muted: 0 0% 14.9%;--muted-foreground: 0 0% 63.9%;--accent: 0 0% 14.9%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 30.6%;--destructive-foreground: 0 0% 98%;--border: 0 0% 14.9%;--input: 0 0% 14.9%;--ring: 0 0% 83.1%;--chart-1: 220 70% 50%;--chart-2: 160 60% 45%;--chart-3: 30 80% 55%;--chart-4: 280 65% 60%;--chart-5: 340 75% 55%;--sidebar-background: 240 5.9% 10%;--sidebar-foreground: 240 4.8% 95.9%;--sidebar-primary: 224.3 76.3% 48%;--sidebar-primary-foreground: 0 0% 100%;--sidebar-accent: 240 3.7% 15.9%;--sidebar-accent-foreground: 240 4.8% 95.9%;--sidebar-border: 240 3.7% 15.9%;--sidebar-ring: 217.2 91.2% 59.8%}*{border-color:hsl(var(--border));outline-color:hsl(var(--ring) / .5)}body{background-color:hsl(var(--background));color:hsl(var(--foreground))}.container{width:100%}@media(min-width:640px){.container{max-width:640px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1280px){.container{max-width:1280px}}@media(min-width:1536px){.container{max-width:1536px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.pointer-events-auto{pointer-events:auto}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.inset-0{top:0;right:0;bottom:0;left:0}.inset-x-0{left:0;right:0}.inset-y-0{top:0;bottom:0}.-bottom-12{bottom:-3rem}.-left-12{left:-3rem}.-right-12{right:-3rem}.-top-12{top:-3rem}.bottom-0{bottom:0}.bottom-6{bottom:1.5rem}.left-0{left:0}.left-1{left:.25rem}.left-1\/2{left:50%}.left-2{left:.5rem}.left-3{left:.75rem}.left-\[50\%\]{left:50%}.right-0{right:0}.right-1{right:.25rem}.right-2{right:.5rem}.right-3{right:.75rem}.right-4{right:1rem}.top-0{top:0}.top-1\.5{top:.375rem}.top-1\/2{top:50%}.top-16{top:4rem}.top-2{top:.5rem}.top-3{top:.75rem}.top-3\.5{top:.875rem}.top-4{top:1rem}.top-\[1px\]{top:1px}.top-\[50\%\]{top:50%}.top-\[60\%\]{top:60%}.top-full{top:100%}.z-10{z-index:10}.z-20{z-index:20}.z-40{z-index:40}.z-50{z-index:50}.z-\[100\]{z-index:100}.z-\[1\]{z-index:1}.col-span-full{grid-column:1 / -1}.-mx-1{margin-left:-.25rem;margin-right:-.25rem}.mx-2{margin-left:.5rem;margin-right:.5rem}.mx-3\.5{margin-left:.875rem;margin-right:.875rem}.mx-4{margin-left:1rem;margin-right:1rem}.mx-auto{margin-left:auto;margin-right:auto}.my-0\.5{margin-top:.125rem;margin-bottom:.125rem}.my-1{margin-top:.25rem;margin-bottom:.25rem}.my-2{margin-top:.5rem;margin-bottom:.5rem}.my-3{margin-top:.75rem;margin-bottom:.75rem}.my-4{margin-top:1rem;margin-bottom:1rem}.-mb-\[1px\]{margin-bottom:-1px}.-ml-4{margin-left:-1rem}.-mt-4{margin-top:-1rem}.mb-1{margin-bottom:.25rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-2{margin-left:.5rem}.ml-3{margin-left:.75rem}.ml-4{margin-left:1rem}.ml-6{margin-left:1.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-2{margin-right:.5rem}.mt-0\.5{margin-top:.125rem}.mt-1{margin-top:.25rem}.mt-1\.5{margin-top:.375rem}.mt-2{margin-top:.5rem}.mt-24{margin-top:6rem}.mt-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.mt-6{margin-top:1.5rem}.mt-8{margin-top:2rem}.mt-auto{margin-top:auto}.line-clamp-2{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.contents{display:contents}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.aspect-video{aspect-ratio:16 / 9}.size-4{width:1rem;height:1rem}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-12{height:3rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-3{height:.75rem}.h-3\.5{height:.875rem}.h-4{height:1rem}.h-5{height:1.25rem}.h-6{height:1.5rem}.h-64{height:16rem}.h-7{height:1.75rem}.h-8{height:2rem}.h-9{height:2.25rem}.h-\[1px\]{height:1px}.h-\[400px\]{height:400px}.h-\[80vh\]{height:80vh}.h-\[calc\(100vh-64px\)\]{height:calc(100vh - 64px)}.h-\[var\(--radix-navigation-menu-viewport-height\)\]{height:var(--radix-navigation-menu-viewport-height)}.h-\[var\(--radix-select-trigger-height\)\]{height:var(--radix-select-trigger-height)}.h-auto{height:auto}.h-full{height:100%}.h-px{height:1px}.h-svh{height:100svh}.max-h-48{max-height:12rem}.max-h-64{max-height:16rem}.max-h-96{max-height:24rem}.max-h-\[250px\]{max-height:250px}.max-h-\[300px\]{max-height:300px}.max-h-\[800px\]{max-height:800px}.max-h-\[90vh\]{max-height:90vh}.max-h-screen{max-height:100vh}.min-h-0{min-height:0px}.min-h-\[100px\]{min-height:100px}.min-h-\[120px\]{min-height:120px}.min-h-\[200px\]{min-height:200px}.min-h-\[300px\]{min-height:300px}.min-h-\[400px\]{min-height:400px}.min-h-\[500px\]{min-height:500px}.min-h-\[60px\]{min-height:60px}.min-h-screen{min-height:100vh}.min-h-svh{min-height:100svh}.w-0{width:0px}.w-1{width:.25rem}.w-1\/3{width:33.333333%}.w-10{width:2.5rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-3\/4{width:75%}.w-32{width:8rem}.w-4{width:1rem}.w-40{width:10rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-6{width:1.5rem}.w-64{width:16rem}.w-7{width:1.75rem}.w-72{width:18rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-\[--sidebar-width\]{width:var(--sidebar-width)}.w-\[100px\]{width:100px}.w-\[1px\]{width:1px}.w-auto{width:auto}.w-full{width:100%}.w-max{width:-moz-max-content;width:max-content}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-5{min-width:1.25rem}.min-w-8{min-width:2rem}.min-w-9{min-width:2.25rem}.min-w-\[12rem\]{min-width:12rem}.min-w-\[160px\]{min-width:160px}.min-w-\[200px\]{min-width:200px}.min-w-\[8rem\]{min-width:8rem}.min-w-\[var\(--radix-select-trigger-width\)\]{min-width:var(--radix-select-trigger-width)}.max-w-2xl{max-width:42rem}.max-w-3xl{max-width:48rem}.max-w-4xl{max-width:56rem}.max-w-\[--skeleton-width\]{max-width:var(--skeleton-width)}.max-w-\[220px\]{max-width:220px}.max-w-lg{max-width:32rem}.max-w-max{max-width:-moz-max-content;max-width:max-content}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xs{max-width:20rem}.flex-1{flex:1 1 0%}.flex-none{flex:none}.flex-shrink-0,.shrink-0{flex-shrink:0}.grow{flex-grow:1}.grow-0{flex-grow:0}.basis-full{flex-basis:100%}.caption-bottom{caption-side:bottom}.border-collapse{border-collapse:collapse}.-translate-x-1\/2{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-x-px{--tw-translate-x: -1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-\[-50\%\]{--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-x-px{--tw-translate-x: 1px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.translate-y-\[-50\%\]{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-45{--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.rotate-90{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes pulse{50%{opacity:.5}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-default{cursor:default}.cursor-help{cursor:help}.cursor-pointer{cursor:pointer}.touch-none{touch-action:none}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize{resize:both}.list-disc{list-style-type:disc}.list-none{list-style-type:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.flex-col-reverse{flex-direction:column-reverse}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-6{gap:1.5rem}.space-x-1>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.25rem * var(--tw-space-x-reverse));margin-left:calc(.25rem * calc(1 - var(--tw-space-x-reverse)))}.space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.space-y-0\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.125rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.125rem * var(--tw-space-y-reverse))}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.25rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.25rem * var(--tw-space-y-reverse))}.space-y-1\.5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.375rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.375rem * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.5rem * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.divide-gray-100>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(243 244 246 / var(--tw-divide-opacity, 1))}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.overflow-x-hidden{overflow-x:hidden}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-\[2px\]{border-radius:2px}.rounded-\[inherit\]{border-radius:inherit}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-none{border-radius:0}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.rounded-xl{border-radius:.75rem}.rounded-t-\[10px\]{border-top-left-radius:10px;border-top-right-radius:10px}.rounded-t-lg{border-top-left-radius:var(--radius);border-top-right-radius:var(--radius)}.rounded-tl-sm{border-top-left-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-0{border-width:0px}.border-2{border-width:2px}.border-\[1\.5px\]{border-width:1.5px}.border-y{border-top-width:1px;border-bottom-width:1px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-l-2{border-left-width:2px}.border-l-4{border-left-width:4px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-dashed{border-style:dashed}.border-\[--color-border\]{border-color:var(--color-border)}.border-amber-200{--tw-border-opacity: 1;border-color:rgb(253 230 138 / var(--tw-border-opacity, 1))}.border-amber-500{--tw-border-opacity: 1;border-color:rgb(245 158 11 / var(--tw-border-opacity, 1))}.border-blue-200{--tw-border-opacity: 1;border-color:rgb(191 219 254 / var(--tw-border-opacity, 1))}.border-blue-300{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.border-blue-500{--tw-border-opacity: 1;border-color:rgb(59 130 246 / var(--tw-border-opacity, 1))}.border-border{border-color:hsl(var(--border))}.border-border\/50{border-color:hsl(var(--border) / .5)}.border-cyan-200{--tw-border-opacity: 1;border-color:rgb(165 243 252 / var(--tw-border-opacity, 1))}.border-destructive{border-color:hsl(var(--destructive))}.border-destructive\/50{border-color:hsl(var(--destructive) / .5)}.border-gray-200{--tw-border-opacity: 1;border-color:rgb(229 231 235 / var(--tw-border-opacity, 1))}.border-gray-300{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.border-gray-400{--tw-border-opacity: 1;border-color:rgb(156 163 175 / var(--tw-border-opacity, 1))}.border-gray-700{--tw-border-opacity: 1;border-color:rgb(55 65 81 / var(--tw-border-opacity, 1))}.border-green-200{--tw-border-opacity: 1;border-color:rgb(187 247 208 / var(--tw-border-opacity, 1))}.border-green-300{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.border-green-500{--tw-border-opacity: 1;border-color:rgb(34 197 94 / var(--tw-border-opacity, 1))}.border-green-500\/20{border-color:#22c55e33}.border-green-500\/30{border-color:#22c55e4d}.border-green-700{--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.border-indigo-200{--tw-border-opacity: 1;border-color:rgb(199 210 254 / var(--tw-border-opacity, 1))}.border-indigo-300{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.border-indigo-500{--tw-border-opacity: 1;border-color:rgb(99 102 241 / var(--tw-border-opacity, 1))}.border-input{border-color:hsl(var(--input))}.border-orange-200{--tw-border-opacity: 1;border-color:rgb(254 215 170 / var(--tw-border-opacity, 1))}.border-orange-500{--tw-border-opacity: 1;border-color:rgb(249 115 22 / var(--tw-border-opacity, 1))}.border-primary{border-color:hsl(var(--primary))}.border-primary\/50{border-color:hsl(var(--primary) / .5)}.border-purple-200{--tw-border-opacity: 1;border-color:rgb(233 213 255 / var(--tw-border-opacity, 1))}.border-purple-300{--tw-border-opacity: 1;border-color:rgb(216 180 254 / var(--tw-border-opacity, 1))}.border-red-200{--tw-border-opacity: 1;border-color:rgb(254 202 202 / var(--tw-border-opacity, 1))}.border-red-300{--tw-border-opacity: 1;border-color:rgb(252 165 165 / var(--tw-border-opacity, 1))}.border-sidebar-border{border-color:hsl(var(--sidebar-border))}.border-teal-200{--tw-border-opacity: 1;border-color:rgb(153 246 228 / var(--tw-border-opacity, 1))}.border-transparent{border-color:transparent}.border-b-white{--tw-border-opacity: 1;border-bottom-color:rgb(255 255 255 / var(--tw-border-opacity, 1))}.border-l-transparent{border-left-color:transparent}.border-t-transparent{border-top-color:transparent}.bg-\[--color-bg\]{background-color:var(--color-bg)}.bg-accent{background-color:hsl(var(--accent))}.bg-amber-100{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.bg-amber-50{--tw-bg-opacity: 1;background-color:rgb(255 251 235 / var(--tw-bg-opacity, 1))}.bg-amber-500{--tw-bg-opacity: 1;background-color:rgb(245 158 11 / var(--tw-bg-opacity, 1))}.bg-amber-500\/10{background-color:#f59e0b1a}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-background{background-color:hsl(var(--background))}.bg-black\/80{background-color:#000c}.bg-blue-100{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.bg-blue-50{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.bg-blue-500{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.bg-blue-500\/10{background-color:#3b82f61a}.bg-blue-500\/5{background-color:#3b82f60d}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-cyan-50{--tw-bg-opacity: 1;background-color:rgb(236 254 255 / var(--tw-bg-opacity, 1))}.bg-destructive{background-color:hsl(var(--destructive))}.bg-foreground{background-color:hsl(var(--foreground))}.bg-gray-100{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity, 1))}.bg-gray-50{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity, 1))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity, 1))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity, 1))}.bg-green-100{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.bg-green-400{--tw-bg-opacity: 1;background-color:rgb(74 222 128 / var(--tw-bg-opacity, 1))}.bg-green-50{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.bg-green-500{--tw-bg-opacity: 1;background-color:rgb(34 197 94 / var(--tw-bg-opacity, 1))}.bg-green-500\/10{background-color:#22c55e1a}.bg-green-600{--tw-bg-opacity: 1;background-color:rgb(22 163 74 / var(--tw-bg-opacity, 1))}.bg-green-900\/50{background-color:#14532d80}.bg-indigo-100{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.bg-indigo-50{--tw-bg-opacity: 1;background-color:rgb(238 242 255 / var(--tw-bg-opacity, 1))}.bg-indigo-500{--tw-bg-opacity: 1;background-color:rgb(99 102 241 / var(--tw-bg-opacity, 1))}.bg-indigo-600{--tw-bg-opacity: 1;background-color:rgb(79 70 229 / var(--tw-bg-opacity, 1))}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground\/10{background-color:hsl(var(--muted-foreground) / .1)}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-orange-100{--tw-bg-opacity: 1;background-color:rgb(255 237 213 / var(--tw-bg-opacity, 1))}.bg-orange-50{--tw-bg-opacity: 1;background-color:rgb(255 247 237 / var(--tw-bg-opacity, 1))}.bg-orange-500{--tw-bg-opacity: 1;background-color:rgb(249 115 22 / var(--tw-bg-opacity, 1))}.bg-orange-500\/10{background-color:#f973161a}.bg-orange-500\/5{background-color:#f973160d}.bg-pink-50{--tw-bg-opacity: 1;background-color:rgb(253 242 248 / var(--tw-bg-opacity, 1))}.bg-popover{background-color:hsl(var(--popover))}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-purple-100{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.bg-purple-50{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.bg-purple-500\/10{background-color:#a855f71a}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity, 1))}.bg-red-100{--tw-bg-opacity: 1;background-color:rgb(254 226 226 / var(--tw-bg-opacity, 1))}.bg-red-50{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.bg-red-500{--tw-bg-opacity: 1;background-color:rgb(239 68 68 / var(--tw-bg-opacity, 1))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-secondary{background-color:hsl(var(--secondary))}.bg-sidebar{background-color:hsl(var(--sidebar-background))}.bg-sidebar-border{background-color:hsl(var(--sidebar-border))}.bg-teal-100{--tw-bg-opacity: 1;background-color:rgb(204 251 241 / var(--tw-bg-opacity, 1))}.bg-teal-50{--tw-bg-opacity: 1;background-color:rgb(240 253 250 / var(--tw-bg-opacity, 1))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity, 1))}.bg-yellow-100{--tw-bg-opacity: 1;background-color:rgb(254 249 195 / var(--tw-bg-opacity, 1))}.bg-yellow-50{--tw-bg-opacity: 1;background-color:rgb(254 252 232 / var(--tw-bg-opacity, 1))}.bg-zinc-900{--tw-bg-opacity: 1;background-color:rgb(24 24 27 / var(--tw-bg-opacity, 1))}.bg-gradient-to-br{background-image:linear-gradient(to bottom right,var(--tw-gradient-stops))}.from-indigo-500{--tw-gradient-from: #6366f1 var(--tw-gradient-from-position);--tw-gradient-to: rgb(99 102 241 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.to-purple-600{--tw-gradient-to: #9333ea var(--tw-gradient-to-position)}.fill-current{fill:currentColor}.fill-primary{fill:hsl(var(--primary))}.p-0{padding:0}.p-1{padding:.25rem}.p-12{padding:3rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.p-\[1px\]{padding:1px}.px-0{padding-left:0;padding-right:0}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-2{padding-left:.5rem;padding-right:.5rem}.px-2\.5{padding-left:.625rem;padding-right:.625rem}.px-3{padding-left:.75rem;padding-right:.75rem}.px-4{padding-left:1rem;padding-right:1rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.py-0{padding-top:0;padding-bottom:0}.py-0\.5{padding-top:.125rem;padding-bottom:.125rem}.py-1{padding-top:.25rem;padding-bottom:.25rem}.py-1\.5{padding-top:.375rem;padding-bottom:.375rem}.py-12{padding-top:3rem;padding-bottom:3rem}.py-2{padding-top:.5rem;padding-bottom:.5rem}.py-2\.5{padding-top:.625rem;padding-bottom:.625rem}.py-3{padding-top:.75rem;padding-bottom:.75rem}.py-4{padding-top:1rem;padding-bottom:1rem}.py-6{padding-top:1.5rem;padding-bottom:1.5rem}.py-8{padding-top:2rem;padding-bottom:2rem}.pb-2{padding-bottom:.5rem}.pb-3{padding-bottom:.75rem}.pb-4{padding-bottom:1rem}.pb-6{padding-bottom:1.5rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-4{padding-left:1rem}.pl-8{padding-left:2rem}.pl-9{padding-left:2.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-8{padding-right:2rem}.pt-0{padding-top:0}.pt-1{padding-top:.25rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.text-left{text-align:left}.text-center{text-align:center}.align-middle{vertical-align:middle}.font-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[0\.8rem\]{font-size:.8rem}.text-\[10px\]{font-size:10px}.text-base{font-size:1rem;line-height:1.5rem}.text-lg{font-size:1.125rem;line-height:1.75rem}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.font-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.italic{font-style:italic}.tabular-nums{--tw-numeric-spacing: tabular-nums;font-variant-numeric:var(--tw-ordinal) var(--tw-slashed-zero) var(--tw-numeric-figure) var(--tw-numeric-spacing) var(--tw-numeric-fraction)}.leading-none{line-height:1}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.tracking-widest{letter-spacing:.1em}.text-accent-foreground{color:hsl(var(--accent-foreground))}.text-amber-500{--tw-text-opacity: 1;color:rgb(245 158 11 / var(--tw-text-opacity, 1))}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-amber-700{--tw-text-opacity: 1;color:rgb(180 83 9 / var(--tw-text-opacity, 1))}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-blue-700{--tw-text-opacity: 1;color:rgb(29 78 216 / var(--tw-text-opacity, 1))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-current{color:currentColor}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-cyan-700{--tw-text-opacity: 1;color:rgb(14 116 144 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-foreground{color:hsl(var(--foreground))}.text-foreground\/50{color:hsl(var(--foreground) / .5)}.text-gray-300{--tw-text-opacity: 1;color:rgb(209 213 219 / var(--tw-text-opacity, 1))}.text-gray-400{--tw-text-opacity: 1;color:rgb(156 163 175 / var(--tw-text-opacity, 1))}.text-gray-500{--tw-text-opacity: 1;color:rgb(107 114 128 / var(--tw-text-opacity, 1))}.text-gray-600{--tw-text-opacity: 1;color:rgb(75 85 99 / var(--tw-text-opacity, 1))}.text-gray-700{--tw-text-opacity: 1;color:rgb(55 65 81 / var(--tw-text-opacity, 1))}.text-gray-800{--tw-text-opacity: 1;color:rgb(31 41 55 / var(--tw-text-opacity, 1))}.text-gray-900{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.text-green-400{--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.text-green-500{--tw-text-opacity: 1;color:rgb(34 197 94 / var(--tw-text-opacity, 1))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity, 1))}.text-green-600\/80{color:#16a34acc}.text-green-700{--tw-text-opacity: 1;color:rgb(21 128 61 / var(--tw-text-opacity, 1))}.text-indigo-500{--tw-text-opacity: 1;color:rgb(99 102 241 / var(--tw-text-opacity, 1))}.text-indigo-600{--tw-text-opacity: 1;color:rgb(79 70 229 / var(--tw-text-opacity, 1))}.text-indigo-700{--tw-text-opacity: 1;color:rgb(67 56 202 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-orange-500{--tw-text-opacity: 1;color:rgb(249 115 22 / var(--tw-text-opacity, 1))}.text-orange-600{--tw-text-opacity: 1;color:rgb(234 88 12 / var(--tw-text-opacity, 1))}.text-orange-700{--tw-text-opacity: 1;color:rgb(194 65 12 / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-popover-foreground{color:hsl(var(--popover-foreground))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-purple-500{--tw-text-opacity: 1;color:rgb(168 85 247 / var(--tw-text-opacity, 1))}.text-purple-600{--tw-text-opacity: 1;color:rgb(147 51 234 / var(--tw-text-opacity, 1))}.text-purple-700{--tw-text-opacity: 1;color:rgb(126 34 206 / var(--tw-text-opacity, 1))}.text-purple-900{--tw-text-opacity: 1;color:rgb(88 28 135 / var(--tw-text-opacity, 1))}.text-red-500{--tw-text-opacity: 1;color:rgb(239 68 68 / var(--tw-text-opacity, 1))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-red-700{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.text-rose-600{--tw-text-opacity: 1;color:rgb(225 29 72 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-sidebar-foreground{color:hsl(var(--sidebar-foreground))}.text-sidebar-foreground\/70{color:hsl(var(--sidebar-foreground) / .7)}.text-slate-500{--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.text-teal-600{--tw-text-opacity: 1;color:rgb(13 148 136 / var(--tw-text-opacity, 1))}.text-teal-700{--tw-text-opacity: 1;color:rgb(15 118 110 / var(--tw-text-opacity, 1))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity, 1))}.text-yellow-700{--tw-text-opacity: 1;color:rgb(161 98 7 / var(--tw-text-opacity, 1))}.text-zinc-100{--tw-text-opacity: 1;color:rgb(244 244 245 / var(--tw-text-opacity, 1))}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.opacity-70{opacity:.7}.opacity-90{opacity:.9}.shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\[0_0_0_1px_hsl\(var\(--sidebar-border\)\)\]{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-border));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-md{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-none{--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-sm{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-xl{--tw-shadow: 0 20px 25px -5px rgb(0 0 0 / .1), 0 8px 10px -6px rgb(0 0 0 / .1);--tw-shadow-colored: 0 20px 25px -5px var(--tw-shadow-color), 0 8px 10px -6px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-indigo-500\/20{--tw-shadow-color: rgb(99 102 241 / .2);--tw-shadow: var(--tw-shadow-colored)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-0{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(0px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-1{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-2{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.ring-gray-400{--tw-ring-opacity: 1;--tw-ring-color: rgb(156 163 175 / var(--tw-ring-opacity, 1))}.ring-green-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(34 197 94 / var(--tw-ring-opacity, 1))}.ring-indigo-500{--tw-ring-opacity: 1;--tw-ring-color: rgb(99 102 241 / var(--tw-ring-opacity, 1))}.ring-primary\/20{--tw-ring-color: hsl(var(--primary) / .2)}.ring-ring{--tw-ring-color: hsl(var(--ring))}.ring-sidebar-ring{--tw-ring-color: hsl(var(--sidebar-ring))}.ring-offset-background{--tw-ring-offset-color: hsl(var(--background))}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.transition{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke,opacity,box-shadow,transform,filter,backdrop-filter;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[left\,right\,width\]{transition-property:left,right,width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[margin\,opacity\]{transition-property:margin,opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\,height\,padding\]{transition-property:width,height,padding;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-\[width\]{transition-property:width;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-all{transition-property:all;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-colors{transition-property:color,background-color,border-color,text-decoration-color,fill,stroke;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.transition-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-1000{transition-duration:1s}.duration-200{transition-duration:.2s}.duration-300{transition-duration:.3s}.ease-in-out{transition-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{transition-timing-function:linear}@keyframes enter{0%{opacity:var(--tw-enter-opacity, 1);transform:translate3d(var(--tw-enter-translate-x, 0),var(--tw-enter-translate-y, 0),0) scale3d(var(--tw-enter-scale, 1),var(--tw-enter-scale, 1),var(--tw-enter-scale, 1)) rotate(var(--tw-enter-rotate, 0))}}@keyframes exit{to{opacity:var(--tw-exit-opacity, 1);transform:translate3d(var(--tw-exit-translate-x, 0),var(--tw-exit-translate-y, 0),0) scale3d(var(--tw-exit-scale, 1),var(--tw-exit-scale, 1),var(--tw-exit-scale, 1)) rotate(var(--tw-exit-rotate, 0))}}.animate-in{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.fade-in-0{--tw-enter-opacity: 0}.zoom-in-95{--tw-enter-scale: .95}.duration-1000{animation-duration:1s}.duration-200{animation-duration:.2s}.duration-300{animation-duration:.3s}.ease-in-out{animation-timing-function:cubic-bezier(.4,0,.2,1)}.ease-linear{animation-timing-function:linear}.running{animation-play-state:running}.file\:border-0::file-selector-button{border-width:0px}.file\:bg-transparent::file-selector-button{background-color:transparent}.file\:text-sm::file-selector-button{font-size:.875rem;line-height:1.25rem}.file\:font-medium::file-selector-button{font-weight:500}.file\:text-foreground::file-selector-button{color:hsl(var(--foreground))}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.after\:absolute:after{content:var(--tw-content);position:absolute}.after\:-inset-2:after{content:var(--tw-content);top:-.5rem;right:-.5rem;bottom:-.5rem;left:-.5rem}.after\:inset-y-0:after{content:var(--tw-content);top:0;bottom:0}.after\:left-1\/2:after{content:var(--tw-content);left:50%}.after\:w-1:after{content:var(--tw-content);width:.25rem}.after\:w-\[2px\]:after{content:var(--tw-content);width:2px}.after\:-translate-x-1\/2:after{content:var(--tw-content);--tw-translate-x: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.first\:rounded-l-md:first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.first\:border-l:first-child{border-left-width:1px}.last\:rounded-r-md:last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.last\:border-b-0:last-child{border-bottom-width:0px}.focus-within\:relative:focus-within{position:relative}.focus-within\:z-20:focus-within{z-index:20}.hover\:border-blue-300:hover{--tw-border-opacity: 1;border-color:rgb(147 197 253 / var(--tw-border-opacity, 1))}.hover\:border-cyan-300:hover{--tw-border-opacity: 1;border-color:rgb(103 232 249 / var(--tw-border-opacity, 1))}.hover\:border-gray-300:hover{--tw-border-opacity: 1;border-color:rgb(209 213 219 / var(--tw-border-opacity, 1))}.hover\:border-green-300:hover{--tw-border-opacity: 1;border-color:rgb(134 239 172 / var(--tw-border-opacity, 1))}.hover\:border-indigo-300:hover{--tw-border-opacity: 1;border-color:rgb(165 180 252 / var(--tw-border-opacity, 1))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:border-purple-400:hover{--tw-border-opacity: 1;border-color:rgb(192 132 252 / var(--tw-border-opacity, 1))}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-amber-100:hover{--tw-bg-opacity: 1;background-color:rgb(254 243 199 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-100:hover{--tw-bg-opacity: 1;background-color:rgb(219 234 254 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-50:hover{--tw-bg-opacity: 1;background-color:rgb(239 246 255 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-500:hover{--tw-bg-opacity: 1;background-color:rgb(59 130 246 / var(--tw-bg-opacity, 1))}.hover\:bg-blue-700:hover{--tw-bg-opacity: 1;background-color:rgb(29 78 216 / var(--tw-bg-opacity, 1))}.hover\:bg-destructive\/80:hover{background-color:hsl(var(--destructive) / .8)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-gray-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 244 246 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-50:hover{--tw-bg-opacity: 1;background-color:rgb(249 250 251 / var(--tw-bg-opacity, 1))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity, 1))}.hover\:bg-green-100:hover{--tw-bg-opacity: 1;background-color:rgb(220 252 231 / var(--tw-bg-opacity, 1))}.hover\:bg-green-200:hover{--tw-bg-opacity: 1;background-color:rgb(187 247 208 / var(--tw-bg-opacity, 1))}.hover\:bg-green-50:hover{--tw-bg-opacity: 1;background-color:rgb(240 253 244 / var(--tw-bg-opacity, 1))}.hover\:bg-green-700:hover{--tw-bg-opacity: 1;background-color:rgb(21 128 61 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-100:hover{--tw-bg-opacity: 1;background-color:rgb(224 231 255 / var(--tw-bg-opacity, 1))}.hover\:bg-indigo-700:hover{--tw-bg-opacity: 1;background-color:rgb(67 56 202 / var(--tw-bg-opacity, 1))}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/30:hover{background-color:hsl(var(--muted) / .3)}.hover\:bg-muted\/50:hover{background-color:hsl(var(--muted) / .5)}.hover\:bg-primary:hover{background-color:hsl(var(--primary))}.hover\:bg-primary\/80:hover{background-color:hsl(var(--primary) / .8)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-purple-100:hover{--tw-bg-opacity: 1;background-color:rgb(243 232 255 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-50:hover{--tw-bg-opacity: 1;background-color:rgb(250 245 255 / var(--tw-bg-opacity, 1))}.hover\:bg-purple-700:hover{--tw-bg-opacity: 1;background-color:rgb(126 34 206 / var(--tw-bg-opacity, 1))}.hover\:bg-red-50:hover{--tw-bg-opacity: 1;background-color:rgb(254 242 242 / var(--tw-bg-opacity, 1))}.hover\:bg-secondary:hover{background-color:hsl(var(--secondary))}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:bg-sidebar-accent:hover{background-color:hsl(var(--sidebar-accent))}.hover\:bg-white\/50:hover{background-color:#ffffff80}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-destructive:hover{color:hsl(var(--destructive))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:text-gray-900:hover{--tw-text-opacity: 1;color:rgb(17 24 39 / var(--tw-text-opacity, 1))}.hover\:text-muted-foreground:hover{color:hsl(var(--muted-foreground))}.hover\:text-primary-foreground:hover{color:hsl(var(--primary-foreground))}.hover\:text-red-600:hover{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.hover\:text-red-700:hover{--tw-text-opacity: 1;color:rgb(185 28 28 / var(--tw-text-opacity, 1))}.hover\:text-sidebar-accent-foreground:hover{color:hsl(var(--sidebar-accent-foreground))}.hover\:underline:hover{text-decoration-line:underline}.hover\:opacity-100:hover{opacity:1}.hover\:shadow-\[0_0_0_1px_hsl\(var\(--sidebar-accent\)\)\]:hover{--tw-shadow: 0 0 0 1px hsl(var(--sidebar-accent));--tw-shadow-colored: 0 0 0 1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-lg:hover{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-md:hover{--tw-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);--tw-shadow-colored: 0 4px 6px -1px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:shadow-sm:hover{--tw-shadow: 0 1px 2px 0 rgb(0 0 0 / .05);--tw-shadow-colored: 0 1px 2px 0 var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.hover\:after\:bg-sidebar-border:hover:after{content:var(--tw-content);background-color:hsl(var(--sidebar-border))}.focus\:border-red-500:focus{--tw-border-opacity: 1;border-color:rgb(239 68 68 / var(--tw-border-opacity, 1))}.focus\:bg-accent:focus{background-color:hsl(var(--accent))}.focus\:bg-primary:focus{background-color:hsl(var(--primary))}.focus\:text-accent-foreground:focus{color:hsl(var(--accent-foreground))}.focus\:text-destructive:focus{color:hsl(var(--destructive))}.focus\:text-primary-foreground:focus{color:hsl(var(--primary-foreground))}.focus\:opacity-100:focus{opacity:1}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.focus\:ring-1:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-2:focus{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus\:ring-ring:focus{--tw-ring-color: hsl(var(--ring))}.focus\:ring-offset-2:focus{--tw-ring-offset-width: 2px}.focus-visible\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\:ring-1:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.focus-visible\:ring-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.focus-visible\:ring-sidebar-ring:focus-visible{--tw-ring-color: hsl(var(--sidebar-ring))}.focus-visible\:ring-offset-1:focus-visible{--tw-ring-offset-width: 1px}.focus-visible\:ring-offset-2:focus-visible{--tw-ring-offset-width: 2px}.focus-visible\:ring-offset-background:focus-visible{--tw-ring-offset-color: hsl(var(--background))}.active\:bg-sidebar-accent:active{background-color:hsl(var(--sidebar-accent))}.active\:text-sidebar-accent-foreground:active{color:hsl(var(--sidebar-accent-foreground))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.group\/menu-item:focus-within .group-focus-within\/menu-item\:opacity-100{opacity:1}.group\/menu-item:hover .group-hover\/menu-item\:opacity-100,.group:hover .group-hover\:opacity-100{opacity:1}.group.destructive .group-\[\.destructive\]\:border-muted\/40{border-color:hsl(var(--muted) / .4)}.group.toaster .group-\[\.toaster\]\:border-border{border-color:hsl(var(--border))}.group.toast .group-\[\.toast\]\:bg-muted{background-color:hsl(var(--muted))}.group.toast .group-\[\.toast\]\:bg-primary{background-color:hsl(var(--primary))}.group.toaster .group-\[\.toaster\]\:bg-background{background-color:hsl(var(--background))}.group.destructive .group-\[\.destructive\]\:text-red-300{--tw-text-opacity: 1;color:rgb(252 165 165 / var(--tw-text-opacity, 1))}.group.toast .group-\[\.toast\]\:text-muted-foreground{color:hsl(var(--muted-foreground))}.group.toast .group-\[\.toast\]\:text-primary-foreground{color:hsl(var(--primary-foreground))}.group.toaster .group-\[\.toaster\]\:text-foreground{color:hsl(var(--foreground))}.group.toaster .group-\[\.toaster\]\:shadow-lg{--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group.destructive .group-\[\.destructive\]\:hover\:border-destructive\/30:hover{border-color:hsl(var(--destructive) / .3)}.group.destructive .group-\[\.destructive\]\:hover\:bg-destructive:hover{background-color:hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:hover\:text-destructive-foreground:hover{color:hsl(var(--destructive-foreground))}.group.destructive .group-\[\.destructive\]\:hover\:text-red-50:hover{--tw-text-opacity: 1;color:rgb(254 242 242 / var(--tw-text-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-destructive:focus{--tw-ring-color: hsl(var(--destructive))}.group.destructive .group-\[\.destructive\]\:focus\:ring-red-400:focus{--tw-ring-opacity: 1;--tw-ring-color: rgb(248 113 113 / var(--tw-ring-opacity, 1))}.group.destructive .group-\[\.destructive\]\:focus\:ring-offset-red-600:focus{--tw-ring-offset-color: #dc2626}.peer\/menu-button:hover~.peer-hover\/menu-button\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}.peer:disabled~.peer-disabled\:cursor-not-allowed{cursor:not-allowed}.peer:disabled~.peer-disabled\:opacity-70{opacity:.7}.has-\[\[data-variant\=inset\]\]\:bg-sidebar:has([data-variant=inset]){background-color:hsl(var(--sidebar-background))}.has-\[\:disabled\]\:opacity-50:has(:disabled){opacity:.5}.group\/menu-item:has([data-sidebar=menu-action]) .group-has-\[\[data-sidebar\=menu-action\]\]\/menu-item\:pr-8{padding-right:2rem}.aria-disabled\:pointer-events-none[aria-disabled=true]{pointer-events:none}.aria-disabled\:opacity-50[aria-disabled=true]{opacity:.5}.aria-selected\:bg-accent[aria-selected=true]{background-color:hsl(var(--accent))}.aria-selected\:bg-accent\/50[aria-selected=true]{background-color:hsl(var(--accent) / .5)}.aria-selected\:text-accent-foreground[aria-selected=true]{color:hsl(var(--accent-foreground))}.aria-selected\:text-muted-foreground[aria-selected=true]{color:hsl(var(--muted-foreground))}.aria-selected\:opacity-100[aria-selected=true]{opacity:1}.data-\[disabled\=true\]\:pointer-events-none[data-disabled=true],.data-\[disabled\]\:pointer-events-none[data-disabled]{pointer-events:none}.data-\[panel-group-direction\=vertical\]\:h-px[data-panel-group-direction=vertical]{height:1px}.data-\[panel-group-direction\=vertical\]\:w-full[data-panel-group-direction=vertical]{width:100%}.data-\[side\=bottom\]\:translate-y-1[data-side=bottom]{--tw-translate-y: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=left\]\:-translate-x-1[data-side=left]{--tw-translate-x: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=right\]\:translate-x-1[data-side=right]{--tw-translate-x: .25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[side\=top\]\:-translate-y-1[data-side=top]{--tw-translate-y: -.25rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=checked\]\:translate-x-4[data-state=checked]{--tw-translate-x: 1rem;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=unchecked\]\:translate-x-0[data-state=unchecked],.data-\[swipe\=cancel\]\:translate-x-0[data-swipe=cancel]{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=end\]\:translate-x-\[var\(--radix-toast-swipe-end-x\)\][data-swipe=end]{--tw-translate-x: var(--radix-toast-swipe-end-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[swipe\=move\]\:translate-x-\[var\(--radix-toast-swipe-move-x\)\][data-swipe=move]{--tw-translate-x: var(--radix-toast-swipe-move-x);transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes accordion-up{0%{height:var(--radix-accordion-content-height)}to{height:0}}.data-\[state\=closed\]\:animate-accordion-up[data-state=closed]{animation:accordion-up .2s ease-out}@keyframes accordion-down{0%{height:0}to{height:var(--radix-accordion-content-height)}}.data-\[state\=open\]\:animate-accordion-down[data-state=open]{animation:accordion-down .2s ease-out}.data-\[panel-group-direction\=vertical\]\:flex-col[data-panel-group-direction=vertical]{flex-direction:column}.data-\[active\=true\]\:bg-sidebar-accent[data-active=true]{background-color:hsl(var(--sidebar-accent))}.data-\[active\]\:bg-accent\/50[data-active]{background-color:hsl(var(--accent) / .5)}.data-\[selected\=true\]\:bg-accent[data-selected=true]{background-color:hsl(var(--accent))}.data-\[state\=active\]\:bg-background[data-state=active]{background-color:hsl(var(--background))}.data-\[state\=checked\]\:bg-primary[data-state=checked]{background-color:hsl(var(--primary))}.data-\[state\=on\]\:bg-accent[data-state=on],.data-\[state\=open\]\:bg-accent[data-state=open]{background-color:hsl(var(--accent))}.data-\[state\=open\]\:bg-accent\/50[data-state=open]{background-color:hsl(var(--accent) / .5)}.data-\[state\=open\]\:bg-secondary[data-state=open]{background-color:hsl(var(--secondary))}.data-\[state\=selected\]\:bg-muted[data-state=selected]{background-color:hsl(var(--muted))}.data-\[state\=unchecked\]\:bg-input[data-state=unchecked]{background-color:hsl(var(--input))}.data-\[active\=true\]\:font-medium[data-active=true]{font-weight:500}.data-\[active\=true\]\:text-sidebar-accent-foreground[data-active=true]{color:hsl(var(--sidebar-accent-foreground))}.data-\[placeholder\]\:text-muted-foreground[data-placeholder]{color:hsl(var(--muted-foreground))}.data-\[selected\=true\]\:text-accent-foreground[data-selected=true]{color:hsl(var(--accent-foreground))}.data-\[state\=active\]\:text-foreground[data-state=active]{color:hsl(var(--foreground))}.data-\[state\=checked\]\:text-primary-foreground[data-state=checked]{color:hsl(var(--primary-foreground))}.data-\[state\=on\]\:text-accent-foreground[data-state=on],.data-\[state\=open\]\:text-accent-foreground[data-state=open]{color:hsl(var(--accent-foreground))}.data-\[state\=open\]\:text-muted-foreground[data-state=open]{color:hsl(var(--muted-foreground))}.data-\[disabled\=true\]\:opacity-50[data-disabled=true],.data-\[disabled\]\:opacity-50[data-disabled]{opacity:.5}.data-\[state\=open\]\:opacity-100[data-state=open]{opacity:1}.data-\[state\=active\]\:shadow[data-state=active]{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.data-\[swipe\=move\]\:transition-none[data-swipe=move]{transition-property:none}.data-\[state\=closed\]\:duration-300[data-state=closed]{transition-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{transition-duration:.5s}.data-\[motion\^\=from-\]\:animate-in[data-motion^=from-],.data-\[state\=open\]\:animate-in[data-state=open],.data-\[state\=visible\]\:animate-in[data-state=visible]{animation-name:enter;animation-duration:.15s;--tw-enter-opacity: initial;--tw-enter-scale: initial;--tw-enter-rotate: initial;--tw-enter-translate-x: initial;--tw-enter-translate-y: initial}.data-\[motion\^\=to-\]\:animate-out[data-motion^=to-],.data-\[state\=closed\]\:animate-out[data-state=closed],.data-\[state\=hidden\]\:animate-out[data-state=hidden],.data-\[swipe\=end\]\:animate-out[data-swipe=end]{animation-name:exit;animation-duration:.15s;--tw-exit-opacity: initial;--tw-exit-scale: initial;--tw-exit-rotate: initial;--tw-exit-translate-x: initial;--tw-exit-translate-y: initial}.data-\[motion\^\=from-\]\:fade-in[data-motion^=from-]{--tw-enter-opacity: 0}.data-\[motion\^\=to-\]\:fade-out[data-motion^=to-],.data-\[state\=closed\]\:fade-out-0[data-state=closed]{--tw-exit-opacity: 0}.data-\[state\=closed\]\:fade-out-80[data-state=closed]{--tw-exit-opacity: .8}.data-\[state\=hidden\]\:fade-out[data-state=hidden]{--tw-exit-opacity: 0}.data-\[state\=open\]\:fade-in-0[data-state=open],.data-\[state\=visible\]\:fade-in[data-state=visible]{--tw-enter-opacity: 0}.data-\[state\=closed\]\:zoom-out-95[data-state=closed]{--tw-exit-scale: .95}.data-\[state\=open\]\:zoom-in-90[data-state=open]{--tw-enter-scale: .9}.data-\[state\=open\]\:zoom-in-95[data-state=open]{--tw-enter-scale: .95}.data-\[motion\=from-end\]\:slide-in-from-right-52[data-motion=from-end]{--tw-enter-translate-x: 13rem}.data-\[motion\=from-start\]\:slide-in-from-left-52[data-motion=from-start]{--tw-enter-translate-x: -13rem}.data-\[motion\=to-end\]\:slide-out-to-right-52[data-motion=to-end]{--tw-exit-translate-x: 13rem}.data-\[motion\=to-start\]\:slide-out-to-left-52[data-motion=to-start]{--tw-exit-translate-x: -13rem}.data-\[side\=bottom\]\:slide-in-from-top-2[data-side=bottom]{--tw-enter-translate-y: -.5rem}.data-\[side\=left\]\:slide-in-from-right-2[data-side=left]{--tw-enter-translate-x: .5rem}.data-\[side\=right\]\:slide-in-from-left-2[data-side=right]{--tw-enter-translate-x: -.5rem}.data-\[side\=top\]\:slide-in-from-bottom-2[data-side=top]{--tw-enter-translate-y: .5rem}.data-\[state\=closed\]\:slide-out-to-bottom[data-state=closed]{--tw-exit-translate-y: 100%}.data-\[state\=closed\]\:slide-out-to-left[data-state=closed]{--tw-exit-translate-x: -100%}.data-\[state\=closed\]\:slide-out-to-left-1\/2[data-state=closed]{--tw-exit-translate-x: -50%}.data-\[state\=closed\]\:slide-out-to-right[data-state=closed],.data-\[state\=closed\]\:slide-out-to-right-full[data-state=closed]{--tw-exit-translate-x: 100%}.data-\[state\=closed\]\:slide-out-to-top[data-state=closed]{--tw-exit-translate-y: -100%}.data-\[state\=closed\]\:slide-out-to-top-\[48\%\][data-state=closed]{--tw-exit-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-bottom[data-state=open]{--tw-enter-translate-y: 100%}.data-\[state\=open\]\:slide-in-from-left[data-state=open]{--tw-enter-translate-x: -100%}.data-\[state\=open\]\:slide-in-from-left-1\/2[data-state=open]{--tw-enter-translate-x: -50%}.data-\[state\=open\]\:slide-in-from-right[data-state=open]{--tw-enter-translate-x: 100%}.data-\[state\=open\]\:slide-in-from-top[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=open\]\:slide-in-from-top-\[48\%\][data-state=open]{--tw-enter-translate-y: -48%}.data-\[state\=open\]\:slide-in-from-top-full[data-state=open]{--tw-enter-translate-y: -100%}.data-\[state\=closed\]\:duration-300[data-state=closed]{animation-duration:.3s}.data-\[state\=open\]\:duration-500[data-state=open]{animation-duration:.5s}.data-\[panel-group-direction\=vertical\]\:after\:left-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);left:0}.data-\[panel-group-direction\=vertical\]\:after\:h-1[data-panel-group-direction=vertical]:after{content:var(--tw-content);height:.25rem}.data-\[panel-group-direction\=vertical\]\:after\:w-full[data-panel-group-direction=vertical]:after{content:var(--tw-content);width:100%}.data-\[panel-group-direction\=vertical\]\:after\:-translate-y-1\/2[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[panel-group-direction\=vertical\]\:after\:translate-x-0[data-panel-group-direction=vertical]:after{content:var(--tw-content);--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.data-\[state\=open\]\:hover\:bg-sidebar-accent:hover[data-state=open]{background-color:hsl(var(--sidebar-accent))}.data-\[state\=open\]\:hover\:text-sidebar-accent-foreground:hover[data-state=open]{color:hsl(var(--sidebar-accent-foreground))}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:left-\[calc\(var\(--sidebar-width\)\*-1\)\]{left:calc(var(--sidebar-width) * -1)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:right-\[calc\(var\(--sidebar-width\)\*-1\)\]{right:calc(var(--sidebar-width) * -1)}.group[data-side=left] .group-data-\[side\=left\]\:-right-4{right:-1rem}.group[data-side=right] .group-data-\[side\=right\]\:left-0{left:0}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:-mt-8{margin-top:-2rem}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:hidden{display:none}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!size-8{width:2rem!important;height:2rem!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[--sidebar-width-icon\]{width:var(--sidebar-width-icon)}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)\)\]{width:calc(var(--sidebar-width-icon) + 1rem)}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:w-\[calc\(var\(--sidebar-width-icon\)_\+_theme\(spacing\.4\)_\+2px\)\]{width:calc(var(--sidebar-width-icon) + 1rem + 2px)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:w-0{width:0px}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:translate-x-0{--tw-translate-x: 0px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-side=right] .group-data-\[side\=right\]\:rotate-180,.group[data-state=open] .group-data-\[state\=open\]\:rotate-180{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:overflow-hidden{overflow:hidden}.group[data-variant=floating] .group-data-\[variant\=floating\]\:rounded-lg{border-radius:var(--radius)}.group[data-variant=floating] .group-data-\[variant\=floating\]\:border{border-width:1px}.group[data-side=left] .group-data-\[side\=left\]\:border-r{border-right-width:1px}.group[data-side=right] .group-data-\[side\=right\]\:border-l{border-left-width:1px}.group[data-variant=floating] .group-data-\[variant\=floating\]\:border-sidebar-border{border-color:hsl(var(--sidebar-border))}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!p-0{padding:0!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:\!p-2{padding:.5rem!important}.group[data-collapsible=icon] .group-data-\[collapsible\=icon\]\:opacity-0{opacity:0}.group[data-variant=floating] .group-data-\[variant\=floating\]\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:after\:left-full:after{content:var(--tw-content);left:100%}.group[data-collapsible=offcanvas] .group-data-\[collapsible\=offcanvas\]\:hover\:bg-sidebar:hover{background-color:hsl(var(--sidebar-background))}.peer\/menu-button[data-size=default]~.peer-data-\[size\=default\]\/menu-button\:top-1\.5{top:.375rem}.peer\/menu-button[data-size=lg]~.peer-data-\[size\=lg\]\/menu-button\:top-2\.5{top:.625rem}.peer\/menu-button[data-size=sm]~.peer-data-\[size\=sm\]\/menu-button\:top-1{top:.25rem}.peer[data-variant=inset]~.peer-data-\[variant\=inset\]\:min-h-\[calc\(100svh-theme\(spacing\.4\)\)\]{min-height:calc(100svh - 1rem)}.peer\/menu-button[data-active=true]~.peer-data-\[active\=true\]\/menu-button\:text-sidebar-accent-foreground{color:hsl(var(--sidebar-accent-foreground))}.dark\:divide-slate-800:is(.dark *)>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:rgb(30 41 59 / var(--tw-divide-opacity, 1))}.dark\:border-amber-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(146 64 14 / var(--tw-border-opacity, 1))}.dark\:border-blue-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(29 78 216 / var(--tw-border-opacity, 1))}.dark\:border-blue-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 64 175 / var(--tw-border-opacity, 1))}.dark\:border-cyan-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(21 94 117 / var(--tw-border-opacity, 1))}.dark\:border-destructive:is(.dark *){border-color:hsl(var(--destructive))}.dark\:border-green-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(21 128 61 / var(--tw-border-opacity, 1))}.dark\:border-purple-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(126 34 206 / var(--tw-border-opacity, 1))}.dark\:border-purple-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(107 33 168 / var(--tw-border-opacity, 1))}.dark\:border-red-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(153 27 27 / var(--tw-border-opacity, 1))}.dark\:border-slate-700:is(.dark *){--tw-border-opacity: 1;border-color:rgb(51 65 85 / var(--tw-border-opacity, 1))}.dark\:border-slate-800:is(.dark *){--tw-border-opacity: 1;border-color:rgb(30 41 59 / var(--tw-border-opacity, 1))}.dark\:border-b-slate-950:is(.dark *){--tw-border-opacity: 1;border-bottom-color:rgb(2 6 23 / var(--tw-border-opacity, 1))}.dark\:bg-amber-900\/20:is(.dark *){background-color:#78350f33}.dark\:bg-amber-900\/30:is(.dark *){background-color:#78350f4d}.dark\:bg-amber-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 26 3 / var(--tw-bg-opacity, 1))}.dark\:bg-amber-950\/50:is(.dark *){background-color:#451a0380}.dark\:bg-blue-900\/20:is(.dark *){background-color:#1e3a8a33}.dark\:bg-blue-900\/30:is(.dark *){background-color:#1e3a8a4d}.dark\:bg-blue-950\/30:is(.dark *){background-color:#1725544d}.dark\:bg-cyan-950\/30:is(.dark *){background-color:#0833444d}.dark\:bg-green-900\/20:is(.dark *){background-color:#14532d33}.dark\:bg-green-900\/30:is(.dark *){background-color:#14532d4d}.dark\:bg-green-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(5 46 22 / var(--tw-bg-opacity, 1))}.dark\:bg-indigo-900\/20:is(.dark *){background-color:#312e8133}.dark\:bg-indigo-900\/30:is(.dark *){background-color:#312e814d}.dark\:bg-indigo-900\/50:is(.dark *){background-color:#312e8180}.dark\:bg-indigo-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 27 75 / var(--tw-bg-opacity, 1))}.dark\:bg-indigo-950\/30:is(.dark *){background-color:#1e1b4b4d}.dark\:bg-indigo-950\/50:is(.dark *){background-color:#1e1b4b80}.dark\:bg-orange-950\/30:is(.dark *){background-color:#4314074d}.dark\:bg-purple-900\/30:is(.dark *){background-color:#581c874d}.dark\:bg-purple-950\/30:is(.dark *){background-color:#3b07644d}.dark\:bg-red-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(69 10 10 / var(--tw-bg-opacity, 1))}.dark\:bg-red-950\/50:is(.dark *){background-color:#450a0a80}.dark\:bg-slate-700:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-800:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-900:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.dark\:bg-slate-950:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(2 6 23 / var(--tw-bg-opacity, 1))}.dark\:text-amber-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 191 36 / var(--tw-text-opacity, 1))}.dark\:text-blue-400:is(.dark *){--tw-text-opacity: 1;color:rgb(96 165 250 / var(--tw-text-opacity, 1))}.dark\:text-cyan-400:is(.dark *){--tw-text-opacity: 1;color:rgb(34 211 238 / var(--tw-text-opacity, 1))}.dark\:text-green-400:is(.dark *){--tw-text-opacity: 1;color:rgb(74 222 128 / var(--tw-text-opacity, 1))}.dark\:text-green-400\/80:is(.dark *){color:#4ade80cc}.dark\:text-indigo-400:is(.dark *){--tw-text-opacity: 1;color:rgb(129 140 248 / var(--tw-text-opacity, 1))}.dark\:text-orange-400:is(.dark *){--tw-text-opacity: 1;color:rgb(251 146 60 / var(--tw-text-opacity, 1))}.dark\:text-purple-300:is(.dark *){--tw-text-opacity: 1;color:rgb(216 180 254 / var(--tw-text-opacity, 1))}.dark\:text-purple-400:is(.dark *){--tw-text-opacity: 1;color:rgb(192 132 252 / var(--tw-text-opacity, 1))}.dark\:text-red-400:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:text-slate-300:is(.dark *){--tw-text-opacity: 1;color:rgb(203 213 225 / var(--tw-text-opacity, 1))}.dark\:text-slate-400:is(.dark *){--tw-text-opacity: 1;color:rgb(148 163 184 / var(--tw-text-opacity, 1))}.dark\:text-slate-500:is(.dark *){--tw-text-opacity: 1;color:rgb(100 116 139 / var(--tw-text-opacity, 1))}.dark\:text-slate-600:is(.dark *){--tw-text-opacity: 1;color:rgb(71 85 105 / var(--tw-text-opacity, 1))}.dark\:text-white:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}.dark\:hover\:border-cyan-700:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(14 116 144 / var(--tw-border-opacity, 1))}.dark\:hover\:border-slate-600:hover:is(.dark *){--tw-border-opacity: 1;border-color:rgb(71 85 105 / var(--tw-border-opacity, 1))}.dark\:hover\:bg-amber-900\/30:hover:is(.dark *){background-color:#78350f4d}.dark\:hover\:bg-blue-900\/30:hover:is(.dark *){background-color:#1e3a8a4d}.dark\:hover\:bg-blue-950\/30:hover:is(.dark *){background-color:#1725544d}.dark\:hover\:bg-green-900\/30:hover:is(.dark *){background-color:#14532d4d}.dark\:hover\:bg-green-950\/30:hover:is(.dark *){background-color:#052e164d}.dark\:hover\:bg-indigo-900\/30:hover:is(.dark *){background-color:#312e814d}.dark\:hover\:bg-purple-950\/30:hover:is(.dark *){background-color:#3b07644d}.dark\:hover\:bg-slate-700:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(51 65 85 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-slate-800:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(30 41 59 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-slate-900:hover:is(.dark *){--tw-bg-opacity: 1;background-color:rgb(15 23 42 / var(--tw-bg-opacity, 1))}.dark\:hover\:bg-slate-900\/50:hover:is(.dark *){background-color:#0f172a80}.dark\:hover\:text-red-400:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(248 113 113 / var(--tw-text-opacity, 1))}.dark\:hover\:text-white:hover:is(.dark *){--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity, 1))}@media(min-width:640px){.sm\:bottom-0{bottom:0}.sm\:right-0{right:0}.sm\:top-auto{top:auto}.sm\:mt-0{margin-top:0}.sm\:flex{display:flex}.sm\:max-w-lg{max-width:32rem}.sm\:max-w-md{max-width:28rem}.sm\:max-w-sm{max-width:24rem}.sm\:flex-row{flex-direction:row}.sm\:flex-col{flex-direction:column}.sm\:justify-end{justify-content:flex-end}.sm\:gap-2\.5{gap:.625rem}.sm\:space-x-2>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(.5rem * var(--tw-space-x-reverse));margin-left:calc(.5rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-x-4>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:calc(1rem * var(--tw-space-x-reverse));margin-left:calc(1rem * calc(1 - var(--tw-space-x-reverse)))}.sm\:space-y-0>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(0px * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(0px * var(--tw-space-y-reverse))}.sm\:rounded-lg{border-radius:var(--radius)}.sm\:text-left{text-align:left}.data-\[state\=open\]\:sm\:slide-in-from-bottom-full[data-state=open]{--tw-enter-translate-y: 100%}}@media(min-width:768px){.md\:absolute{position:absolute}.md\:block{display:block}.md\:flex{display:flex}.md\:w-\[var\(--radix-navigation-menu-viewport-width\)\]{width:var(--radix-navigation-menu-viewport-width)}.md\:w-auto{width:auto}.md\:max-w-\[420px\]{max-width:420px}.md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.md\:text-sm{font-size:.875rem;line-height:1.25rem}.md\:opacity-0{opacity:0}.after\:md\:hidden:after{content:var(--tw-content);display:none}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:m-2{margin:.5rem}.peer[data-state=collapsed][data-variant=inset]~.md\:peer-data-\[state\=collapsed\]\:peer-data-\[variant\=inset\]\:ml-2{margin-left:.5rem}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:ml-0{margin-left:0}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:rounded-xl{border-radius:.75rem}.peer[data-variant=inset]~.md\:peer-data-\[variant\=inset\]\:shadow{--tw-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--tw-shadow-colored: 0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}}@media(min-width:1024px){.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}.\[\&\:has\(\>\.day-range-end\)\]\:rounded-r-md:has(>.day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\>\.day-range-start\)\]\:rounded-l-md:has(>.day-range-start){border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:rounded-md:has([aria-selected]){border-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\)\]\:bg-accent:has([aria-selected]){background-color:hsl(var(--accent))}.first\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-l-md:has([aria-selected]):first-child{border-top-left-radius:calc(var(--radius) - 2px);border-bottom-left-radius:calc(var(--radius) - 2px)}.last\:\[\&\:has\(\[aria-selected\]\)\]\:rounded-r-md:has([aria-selected]):last-child{border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[aria-selected\]\.day-outside\)\]\:bg-accent\/50:has([aria-selected].day-outside){background-color:hsl(var(--accent) / .5)}.\[\&\:has\(\[aria-selected\]\.day-range-end\)\]\:rounded-r-md:has([aria-selected].day-range-end){border-top-right-radius:calc(var(--radius) - 2px);border-bottom-right-radius:calc(var(--radius) - 2px)}.\[\&\:has\(\[role\=checkbox\]\)\]\:pr-0:has([role=checkbox]){padding-right:0}.\[\&\>\[role\=checkbox\]\]\:translate-y-\[2px\]>[role=checkbox]{--tw-translate-y: 2px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>button\]\:hidden>button{display:none}.\[\&\>span\:last-child\]\:truncate>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.\[\&\>span\]\:line-clamp-1>span{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1}.\[\&\>svg\+div\]\:translate-y-\[-3px\]>svg+div{--tw-translate-y: -3px;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\>svg\]\:absolute>svg{position:absolute}.\[\&\>svg\]\:left-4>svg{left:1rem}.\[\&\>svg\]\:top-4>svg{top:1rem}.\[\&\>svg\]\:size-4>svg{width:1rem;height:1rem}.\[\&\>svg\]\:h-2\.5>svg{height:.625rem}.\[\&\>svg\]\:h-3>svg{height:.75rem}.\[\&\>svg\]\:h-3\.5>svg{height:.875rem}.\[\&\>svg\]\:w-2\.5>svg{width:.625rem}.\[\&\>svg\]\:w-3>svg{width:.75rem}.\[\&\>svg\]\:w-3\.5>svg{width:.875rem}.\[\&\>svg\]\:shrink-0>svg{flex-shrink:0}.\[\&\>svg\]\:text-destructive>svg{color:hsl(var(--destructive))}.\[\&\>svg\]\:text-foreground>svg{color:hsl(var(--foreground))}.\[\&\>svg\]\:text-muted-foreground>svg{color:hsl(var(--muted-foreground))}.\[\&\>svg\]\:text-sidebar-accent-foreground>svg{color:hsl(var(--sidebar-accent-foreground))}.\[\&\>svg\~\*\]\:pl-7>svg~*{padding-left:1.75rem}.\[\&\>tr\]\:last\:border-b-0:last-child>tr{border-bottom-width:0px}.\[\&\[data-panel-group-direction\=vertical\]\>div\]\:rotate-90[data-panel-group-direction=vertical]>div{--tw-rotate: 90deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&\[data-state\=open\]\>svg\]\:rotate-180[data-state=open]>svg{--tw-rotate: 180deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.\[\&_\.recharts-cartesian-axis-tick_text\]\:fill-muted-foreground .recharts-cartesian-axis-tick text{fill:hsl(var(--muted-foreground))}.\[\&_\.recharts-cartesian-grid_line\[stroke\=\'\#ccc\'\]\]\:stroke-border\/50 .recharts-cartesian-grid line[stroke="#ccc"]{stroke:hsl(var(--border) / .5)}.\[\&_\.recharts-curve\.recharts-tooltip-cursor\]\:stroke-border .recharts-curve.recharts-tooltip-cursor{stroke:hsl(var(--border))}.\[\&_\.recharts-dot\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-dot[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-layer\]\:outline-none .recharts-layer{outline:2px solid transparent;outline-offset:2px}.\[\&_\.recharts-polar-grid_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-polar-grid [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-radial-bar-background-sector\]\:fill-muted .recharts-radial-bar-background-sector,.\[\&_\.recharts-rectangle\.recharts-tooltip-cursor\]\:fill-muted .recharts-rectangle.recharts-tooltip-cursor{fill:hsl(var(--muted))}.\[\&_\.recharts-reference-line_\[stroke\=\'\#ccc\'\]\]\:stroke-border .recharts-reference-line [stroke="#ccc"]{stroke:hsl(var(--border))}.\[\&_\.recharts-sector\[stroke\=\'\#fff\'\]\]\:stroke-transparent .recharts-sector[stroke="#fff"]{stroke:transparent}.\[\&_\.recharts-sector\]\:outline-none .recharts-sector,.\[\&_\.recharts-surface\]\:outline-none .recharts-surface{outline:2px solid transparent;outline-offset:2px}.\[\&_\[cmdk-group-heading\]\]\:px-2 [cmdk-group-heading]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-group-heading\]\]\:py-1\.5 [cmdk-group-heading]{padding-top:.375rem;padding-bottom:.375rem}.\[\&_\[cmdk-group-heading\]\]\:text-xs [cmdk-group-heading]{font-size:.75rem;line-height:1rem}.\[\&_\[cmdk-group-heading\]\]\:font-medium [cmdk-group-heading]{font-weight:500}.\[\&_\[cmdk-group-heading\]\]\:text-muted-foreground [cmdk-group-heading]{color:hsl(var(--muted-foreground))}.\[\&_\[cmdk-group\]\:not\(\[hidden\]\)_\~\[cmdk-group\]\]\:pt-0 [cmdk-group]:not([hidden])~[cmdk-group]{padding-top:0}.\[\&_\[cmdk-group\]\]\:px-2 [cmdk-group]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:h-5 [cmdk-input-wrapper] svg{height:1.25rem}.\[\&_\[cmdk-input-wrapper\]_svg\]\:w-5 [cmdk-input-wrapper] svg{width:1.25rem}.\[\&_\[cmdk-input\]\]\:h-12 [cmdk-input]{height:3rem}.\[\&_\[cmdk-item\]\]\:px-2 [cmdk-item]{padding-left:.5rem;padding-right:.5rem}.\[\&_\[cmdk-item\]\]\:py-3 [cmdk-item]{padding-top:.75rem;padding-bottom:.75rem}.\[\&_\[cmdk-item\]_svg\]\:h-5 [cmdk-item] svg{height:1.25rem}.\[\&_\[cmdk-item\]_svg\]\:w-5 [cmdk-item] svg{width:1.25rem}.\[\&_p\]\:leading-relaxed p{line-height:1.625}.\[\&_svg\]\:pointer-events-none svg{pointer-events:none}.\[\&_svg\]\:size-4 svg{width:1rem;height:1rem}.\[\&_svg\]\:shrink-0 svg{flex-shrink:0}.\[\&_tr\:last-child\]\:border-0 tr:last-child{border-width:0px}.\[\&_tr\]\:border-b tr{border-bottom-width:1px}[data-side=left][data-collapsible=offcanvas] .\[\[data-side\=left\]\[data-collapsible\=offcanvas\]_\&\]\:-right-2{right:-.5rem}[data-side=left][data-state=collapsed] .\[\[data-side\=left\]\[data-state\=collapsed\]_\&\]\:cursor-e-resize{cursor:e-resize}[data-side=left] .\[\[data-side\=left\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-side=right][data-collapsible=offcanvas] .\[\[data-side\=right\]\[data-collapsible\=offcanvas\]_\&\]\:-left-2{left:-.5rem}[data-side=right][data-state=collapsed] .\[\[data-side\=right\]\[data-state\=collapsed\]_\&\]\:cursor-w-resize{cursor:w-resize}[data-side=right] .\[\[data-side\=right\]_\&\]\:cursor-e-resize{cursor:e-resize}
|