From 816270bd09a37005fa327be09bf1ec6a80609593 Mon Sep 17 00:00:00 2001 From: nfebe Date: Sat, 26 Sep 2026 19:07:50 +0100 Subject: [PATCH 01/28] feat: Show whether a folder has been read, and when A repository the core is reading now, one read an hour ago and one never read looked the same on the Repositories screen: what it knew it worked out for itself and forgot on every reload. The core now says when each folder was last read and whether one is being read, and the screen shows that, refreshing itself until a read finishes. Adding a folder no longer asks for a read of its own, because registering one starts it. --- internal/core/client.go | 9 +- internal/ui/assets/assets/index-BGVtFZd1.css | 1 - internal/ui/assets/assets/index-CLbMFakI.css | 1 + .../{index-WjZ6Jgkb.js => index-Dru5flw6.js} | 189 +++++++++--------- internal/ui/assets/index.html | 4 +- ui/src/components/FolderPicker.vue | 3 +- ui/src/moments.js | 13 ++ ui/src/pages/Repositories.vue | 36 +++- ui/src/pages/Reviews.vue | 12 +- 9 files changed, 148 insertions(+), 120 deletions(-) delete mode 100644 internal/ui/assets/assets/index-BGVtFZd1.css create mode 100644 internal/ui/assets/assets/index-CLbMFakI.css rename internal/ui/assets/assets/{index-WjZ6Jgkb.js => index-Dru5flw6.js} (66%) create mode 100644 ui/src/moments.js diff --git a/internal/core/client.go b/internal/core/client.go index 1888db3..cc18afe 100644 --- a/internal/core/client.go +++ b/internal/core/client.go @@ -26,9 +26,14 @@ type envelope[T any] struct { } // Repository is one repository registered on this machine. +// +// IndexedAt is empty until it has been read, which is not the same as nothing +// having changed since, and Reading says a read is under way now. type Repository struct { - Name string `json:"name"` - Path string `json:"path"` + Name string `json:"name"` + Path string `json:"path"` + IndexedAt string `json:"indexed_at"` + Reading bool `json:"reading"` } // Node is one file, import or symbol in a repository's graph. diff --git a/internal/ui/assets/assets/index-BGVtFZd1.css b/internal/ui/assets/assets/index-BGVtFZd1.css deleted file mode 100644 index 2e5a503..0000000 --- a/internal/ui/assets/assets/index-BGVtFZd1.css +++ /dev/null @@ -1 +0,0 @@ -*,: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:Inter,system-ui,sans-serif;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:JetBrains Mono,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,.dark{color-scheme:dark;--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 9% 7%;--card-foreground: 0 0% 98%;--popover: 240 9% 7%;--popover-foreground: 0 0% 98%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 4% 16%;--secondary-foreground: 0 0% 98%;--muted: 240 5% 14%;--muted-foreground: 240 5% 64.9%;--accent: 240 4% 16%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 50.6%;--destructive-foreground: 0 0% 98%;--success: 142 71% 45%;--success-foreground: 0 0% 98%;--warning: 38 92% 50%;--warning-foreground: 0 0% 98%;--border: 240 6% 16%;--input: 240 6% 16%;--ring: 357 89% 47%;--radius: .25rem;--brand: 357 89% 47%;--pillar-memory: 217 91% 60%;--pillar-graph: 262 83% 66%;--pillar-review: 142 71% 45%;--pillar-tokens: 38 92% 50%}.\!dark{color-scheme:dark!important;--background: 240 10% 3.9% !important;--foreground: 0 0% 98% !important;--card: 240 9% 7% !important;--card-foreground: 0 0% 98% !important;--popover: 240 9% 7% !important;--popover-foreground: 0 0% 98% !important;--primary: 357 89% 47% !important;--primary-foreground: 0 0% 100% !important;--secondary: 240 4% 16% !important;--secondary-foreground: 0 0% 98% !important;--muted: 240 5% 14% !important;--muted-foreground: 240 5% 64.9% !important;--accent: 240 4% 16% !important;--accent-foreground: 0 0% 98% !important;--destructive: 0 62.8% 50.6% !important;--destructive-foreground: 0 0% 98% !important;--success: 142 71% 45% !important;--success-foreground: 0 0% 98% !important;--warning: 38 92% 50% !important;--warning-foreground: 0 0% 98% !important;--border: 240 6% 16% !important;--input: 240 6% 16% !important;--ring: 357 89% 47% !important;--radius: .25rem !important;--brand: 357 89% 47% !important;--pillar-memory: 217 91% 60% !important;--pillar-graph: 262 83% 66% !important;--pillar-review: 142 71% 45% !important;--pillar-tokens: 38 92% 50% !important}.light{color-scheme:light;--background: 240 20% 98%;--foreground: 240 10% 10%;--card: 0 0% 100%;--card-foreground: 240 10% 10%;--popover: 0 0% 100%;--popover-foreground: 240 10% 10%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 10% 94%;--secondary-foreground: 240 10% 20%;--muted: 240 10% 94%;--muted-foreground: 240 5% 45%;--accent: 357 60% 96%;--accent-foreground: 357 70% 40%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--success: 142 70% 35%;--success-foreground: 0 0% 100%;--warning: 38 92% 45%;--warning-foreground: 0 0% 100%;--border: 240 10% 90%;--input: 240 10% 90%;--ring: 357 89% 47%;--brand: 357 89% 47%;--pillar-memory: 217 91% 55%;--pillar-graph: 262 83% 58%;--pillar-review: 142 71% 40%;--pillar-tokens: 38 92% 45%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{scroll-behavior:smooth}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media(min-width:1400px){.container{max-width:1400px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: oklch(37.3% .034 259.733);--tw-prose-headings: oklch(21% .034 264.665);--tw-prose-lead: oklch(44.6% .03 256.802);--tw-prose-links: oklch(21% .034 264.665);--tw-prose-bold: oklch(21% .034 264.665);--tw-prose-counters: oklch(55.1% .027 264.364);--tw-prose-bullets: oklch(87.2% .01 258.338);--tw-prose-hr: oklch(92.8% .006 264.531);--tw-prose-quotes: oklch(21% .034 264.665);--tw-prose-quote-borders: oklch(92.8% .006 264.531);--tw-prose-captions: oklch(55.1% .027 264.364);--tw-prose-kbd: oklch(21% .034 264.665);--tw-prose-kbd-shadows: color-mix(in oklab, oklch(21% .034 264.665) 10%, transparent);--tw-prose-code: oklch(21% .034 264.665);--tw-prose-pre-code: oklch(92.8% .006 264.531);--tw-prose-pre-bg: oklch(27.8% .033 256.848);--tw-prose-th-borders: oklch(87.2% .01 258.338);--tw-prose-td-borders: oklch(92.8% .006 264.531);--tw-prose-invert-body: oklch(87.2% .01 258.338);--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: oklch(70.7% .022 261.325);--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: oklch(70.7% .022 261.325);--tw-prose-invert-bullets: oklch(44.6% .03 256.802);--tw-prose-invert-hr: oklch(37.3% .034 259.733);--tw-prose-invert-quotes: oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders: oklch(37.3% .034 259.733);--tw-prose-invert-captions: oklch(70.7% .022 261.325);--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: oklch(44.6% .03 256.802);--tw-prose-invert-td-borders: oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.light .gradient-text{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(124 58 237 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7c3aed var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #db2777 var(--tw-gradient-to-position)}.light .glass{border-bottom-width:1px;border-color:hsl(var(--border) / .5);background-color:hsl(var(--background) / .9);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .2)}.light .glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .1)}.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.left-2\.5{left:.625rem}.right-0{right:0}.right-4{right:1rem}.top-1\/2{top:50%}.top-4{top:1rem}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.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-3{margin-top:.75rem}.mt-4{margin-top:1rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.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-full{height:100%}.h-screen{height:100vh}.max-h-\[85vh\]{max-height:85vh}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-7{min-height:1.75rem}.min-h-8{min-height:2rem}.min-h-\[24rem\]{min-height:24rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-7{min-width:1.75rem}.min-w-8{min-width:2rem}.max-w-2xl{max-width:42rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-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))}.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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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 fade-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-up{animation:fade-up .4s ease-out}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.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))}.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))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-b{border-bottom-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-600\/20{border-color:#d9770633}.border-blue-600\/20{border-color:#2563eb33}.border-border{border-color:hsl(var(--border))}.border-border\/60{border-color:hsl(var(--border) / .6)}.border-cyan-600\/20{border-color:#0891b233}.border-destructive\/40{border-color:hsl(var(--destructive) / .4)}.border-destructive\/60{border-color:hsl(var(--destructive) / .6)}.border-emerald-600\/20{border-color:#05966933}.border-input{border-color:hsl(var(--input))}.border-lime-600\/20{border-color:#65a30d33}.border-pink-600\/20{border-color:#db277733}.border-primary\/30{border-color:hsl(var(--primary) / .3)}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-red-600\/20{border-color:#dc262633}.border-success\/40{border-color:hsl(var(--success) / .4)}.border-transparent{border-color:transparent}.border-violet-600\/20{border-color:#7c3aed33}.border-warning\/40{border-color:hsl(var(--warning) / .4)}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-600\/10{background-color:#d977061a}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/80{background-color:hsl(var(--card) / .8)}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-600\/10{background-color:#0891b21a}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/10{background-color:#0596691a}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-600\/10{background-color:#65a30d1a}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/40{background-color:hsl(var(--muted) / .4)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-muted\/60{background-color:hsl(var(--muted) / .6)}.bg-pillar-graph{--tw-bg-opacity: 1;background-color:hsl(var(--pillar-graph) / var(--tw-bg-opacity, 1))}.bg-pillar-graph\/15{background-color:hsl(var(--pillar-graph) / .15)}.bg-pillar-memory\/15{background-color:hsl(var(--pillar-memory) / .15)}.bg-pillar-review\/15{background-color:hsl(var(--pillar-review) / .15)}.bg-pillar-tokens\/15{background-color:hsl(var(--pillar-tokens) / .15)}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-600\/10{background-color:#db27771a}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/15{background-color:hsl(var(--primary) / .15)}.bg-primary\/20{background-color:hsl(var(--primary) / .2)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/10{background-color:#dc26261a}.bg-secondary{background-color:hsl(var(--secondary))}.bg-success{background-color:hsl(var(--success))}.bg-success\/10{background-color:hsl(var(--success) / .1)}.bg-success\/15{background-color:hsl(var(--success) / .15)}.bg-success\/20{background-color:hsl(var(--success) / .2)}.bg-success\/5{background-color:hsl(var(--success) / .05)}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-600\/10{background-color:#7c3aed1a}.bg-warning{background-color:hsl(var(--warning))}.bg-warning\/10{background-color:hsl(var(--warning) / .1)}.bg-warning\/15{background-color:hsl(var(--warning) / .15)}.bg-warning\/20{background-color:hsl(var(--warning) / .2)}.bg-warning\/5{background-color:hsl(var(--warning) / .05)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.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-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.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-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.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-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.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-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.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-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-brand{color:hsl(var(--brand))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-pillar-graph{--tw-text-opacity: 1;color:hsl(var(--pillar-graph) / var(--tw-text-opacity, 1))}.text-pillar-memory{--tw-text-opacity: 1;color:hsl(var(--pillar-memory) / var(--tw-text-opacity, 1))}.text-pillar-review{--tw-text-opacity: 1;color:hsl(var(--pillar-review) / var(--tw-text-opacity, 1))}.text-pillar-tokens{--tw-text-opacity: 1;color:hsl(var(--pillar-tokens) / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-success{color:hsl(var(--success))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-warning{color:hsl(var(--warning))}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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-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-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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-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-transform{transition-property:transform;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:pt-0:first-child{padding-top:0}.last\:pb-0:last-child{padding-bottom:0}.hover\:-translate-y-1:hover{--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))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background\/60:hover{background-color:hsl(var(--background) / .6)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-destructive:focus{border-color:hsl(var(--destructive))}.focus\:border-primary\/50:focus{border-color:hsl(var(--primary) / .5)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.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-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-50:disabled{opacity:.5}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-headings\:text-foreground :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-p\:text-muted-foreground :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-a\:text-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--primary))}.prose-a\:no-underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:none}.hover\:prose-a\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))):hover{text-decoration-line:underline}.prose-blockquote\:border-border :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}.prose-blockquote\:text-muted-foreground :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-strong\:text-foreground :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-em\:text-foreground :is(:where(em):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:rounded :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){border-radius:.25rem}.prose-code\:bg-muted\/60 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .6)}.prose-code\:px-1 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.25rem;padding-right:.25rem}.prose-code\:py-0\.5 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.125rem;padding-bottom:.125rem}.prose-code\:text-foreground :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:before\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):before{--tw-content: none;content:var(--tw-content)}.prose-code\:after\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):after{--tw-content: none;content:var(--tw-content)}.prose-pre\:border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-pre\:bg-muted\/50 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .5)}.prose-pre\:text-foreground :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-li\:text-muted-foreground :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-th\:text-foreground :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-td\:text-muted-foreground :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-hr\:border-border :is(:where(hr):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}@media(min-width:640px){.sm\:mr-3{margin-right:.75rem}.sm\:block{display:block}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.sm\:px-4{padding-left:1rem;padding-right:1rem}}@media(min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.lg\:grid-cols-\[18rem_1fr\]{grid-template-columns:18rem 1fr}.lg\:grid-cols-\[1fr_20rem\]{grid-template-columns:1fr 20rem}.lg\:items-start{align-items:flex-start}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pt-4{padding-top:1rem}}@media(min-width:1280px){.xl\:inline{display:inline}}@media(min-width:1536px){.\32xl\:px-2\.5{padding-left:.625rem;padding-right:.625rem}}.\[\&\>p\]\:inline>p{display:inline} diff --git a/internal/ui/assets/assets/index-CLbMFakI.css b/internal/ui/assets/assets/index-CLbMFakI.css new file mode 100644 index 0000000..b83d71a --- /dev/null +++ b/internal/ui/assets/assets/index-CLbMFakI.css @@ -0,0 +1 @@ +*,: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:Inter,system-ui,sans-serif;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:JetBrains Mono,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,.dark{color-scheme:dark;--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 9% 7%;--card-foreground: 0 0% 98%;--popover: 240 9% 7%;--popover-foreground: 0 0% 98%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 4% 16%;--secondary-foreground: 0 0% 98%;--muted: 240 5% 14%;--muted-foreground: 240 5% 64.9%;--accent: 240 4% 16%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 50.6%;--destructive-foreground: 0 0% 98%;--success: 142 71% 45%;--success-foreground: 0 0% 98%;--warning: 38 92% 50%;--warning-foreground: 0 0% 98%;--border: 240 6% 16%;--input: 240 6% 16%;--ring: 357 89% 47%;--radius: .25rem;--brand: 357 89% 47%;--pillar-memory: 217 91% 60%;--pillar-graph: 262 83% 66%;--pillar-review: 142 71% 45%;--pillar-tokens: 38 92% 50%;--severity-critical: 0 72% 51%;--severity-high: 25 90% 48%;--severity-moderate: 38 92% 50%;--severity-low: 217 91% 60%;--figure-1: 217 91% 55%;--figure-2: 330 81% 50%;--figure-3: 32 95% 44%;--figure-4: 160 94% 30%;--figure-5: 262 83% 58%;--figure-6: 192 91% 36%}.\!dark{color-scheme:dark!important;--background: 240 10% 3.9% !important;--foreground: 0 0% 98% !important;--card: 240 9% 7% !important;--card-foreground: 0 0% 98% !important;--popover: 240 9% 7% !important;--popover-foreground: 0 0% 98% !important;--primary: 357 89% 47% !important;--primary-foreground: 0 0% 100% !important;--secondary: 240 4% 16% !important;--secondary-foreground: 0 0% 98% !important;--muted: 240 5% 14% !important;--muted-foreground: 240 5% 64.9% !important;--accent: 240 4% 16% !important;--accent-foreground: 0 0% 98% !important;--destructive: 0 62.8% 50.6% !important;--destructive-foreground: 0 0% 98% !important;--success: 142 71% 45% !important;--success-foreground: 0 0% 98% !important;--warning: 38 92% 50% !important;--warning-foreground: 0 0% 98% !important;--border: 240 6% 16% !important;--input: 240 6% 16% !important;--ring: 357 89% 47% !important;--radius: .25rem !important;--brand: 357 89% 47% !important;--pillar-memory: 217 91% 60% !important;--pillar-graph: 262 83% 66% !important;--pillar-review: 142 71% 45% !important;--pillar-tokens: 38 92% 50% !important;--severity-critical: 0 72% 51% !important;--severity-high: 25 90% 48% !important;--severity-moderate: 38 92% 50% !important;--severity-low: 217 91% 60% !important;--figure-1: 217 91% 55% !important;--figure-2: 330 81% 50% !important;--figure-3: 32 95% 44% !important;--figure-4: 160 94% 30% !important;--figure-5: 262 83% 58% !important;--figure-6: 192 91% 36% !important}.light{color-scheme:light;--background: 240 20% 98%;--foreground: 240 10% 10%;--card: 0 0% 100%;--card-foreground: 240 10% 10%;--popover: 0 0% 100%;--popover-foreground: 240 10% 10%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 10% 94%;--secondary-foreground: 240 10% 20%;--muted: 240 10% 94%;--muted-foreground: 240 5% 45%;--accent: 357 60% 96%;--accent-foreground: 357 70% 40%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--success: 142 70% 35%;--success-foreground: 0 0% 100%;--warning: 38 92% 45%;--warning-foreground: 0 0% 100%;--border: 240 10% 90%;--input: 240 10% 90%;--ring: 357 89% 47%;--brand: 357 89% 47%;--pillar-memory: 217 91% 55%;--pillar-graph: 262 83% 58%;--pillar-review: 142 71% 40%;--pillar-tokens: 38 92% 45%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{scroll-behavior:smooth}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media(min-width:1400px){.container{max-width:1400px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: oklch(37.3% .034 259.733);--tw-prose-headings: oklch(21% .034 264.665);--tw-prose-lead: oklch(44.6% .03 256.802);--tw-prose-links: oklch(21% .034 264.665);--tw-prose-bold: oklch(21% .034 264.665);--tw-prose-counters: oklch(55.1% .027 264.364);--tw-prose-bullets: oklch(87.2% .01 258.338);--tw-prose-hr: oklch(92.8% .006 264.531);--tw-prose-quotes: oklch(21% .034 264.665);--tw-prose-quote-borders: oklch(92.8% .006 264.531);--tw-prose-captions: oklch(55.1% .027 264.364);--tw-prose-kbd: oklch(21% .034 264.665);--tw-prose-kbd-shadows: color-mix(in oklab, oklch(21% .034 264.665) 10%, transparent);--tw-prose-code: oklch(21% .034 264.665);--tw-prose-pre-code: oklch(92.8% .006 264.531);--tw-prose-pre-bg: oklch(27.8% .033 256.848);--tw-prose-th-borders: oklch(87.2% .01 258.338);--tw-prose-td-borders: oklch(92.8% .006 264.531);--tw-prose-invert-body: oklch(87.2% .01 258.338);--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: oklch(70.7% .022 261.325);--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: oklch(70.7% .022 261.325);--tw-prose-invert-bullets: oklch(44.6% .03 256.802);--tw-prose-invert-hr: oklch(37.3% .034 259.733);--tw-prose-invert-quotes: oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders: oklch(37.3% .034 259.733);--tw-prose-invert-captions: oklch(70.7% .022 261.325);--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: oklch(44.6% .03 256.802);--tw-prose-invert-td-borders: oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.light .gradient-text{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(124 58 237 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7c3aed var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #db2777 var(--tw-gradient-to-position)}.light .glass{border-bottom-width:1px;border-color:hsl(var(--border) / .5);background-color:hsl(var(--background) / .9);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .2)}.light .glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .1)}.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.left-2\.5{left:.625rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.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-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.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-full{height:100%}.h-screen{height:100vh}.max-h-64{max-height:16rem}.max-h-\[85vh\]{max-height:85vh}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-7{min-height:1.75rem}.min-h-8{min-height:2rem}.min-h-\[24rem\]{min-height:24rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-7{min-width:1.75rem}.min-w-8{min-width:2rem}.max-w-2xl{max-width:42rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x: -100%;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-y-2{--tw-translate-y: -.5rem;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-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))}.translate-x-full{--tw-translate-x: 100%;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-0{--tw-translate-y: 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))}.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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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 fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}@keyframes fade-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-up{animation:fade-up .4s ease-out}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}0%,to{opacity:1}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes shimmer{to{transform:translate(100%)}}.animate-shimmer{animation:shimmer 2s infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.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))}.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))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-600\/20{border-color:#d9770633}.border-blue-600\/20{border-color:#2563eb33}.border-border{border-color:hsl(var(--border))}.border-border\/60{border-color:hsl(var(--border) / .6)}.border-border\/70{border-color:hsl(var(--border) / .7)}.border-cyan-600\/20{border-color:#0891b233}.border-destructive\/30{border-color:hsl(var(--destructive) / .3)}.border-destructive\/40{border-color:hsl(var(--destructive) / .4)}.border-destructive\/60{border-color:hsl(var(--destructive) / .6)}.border-emerald-600\/20{border-color:#05966933}.border-fuchsia-600\/20{border-color:#c026d333}.border-input{border-color:hsl(var(--input))}.border-lime-600\/20{border-color:#65a30d33}.border-pink-600\/20{border-color:#db277733}.border-primary\/30{border-color:hsl(var(--primary) / .3)}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-red-600\/20{border-color:#dc262633}.border-success\/40{border-color:hsl(var(--success) / .4)}.border-transparent{border-color:transparent}.border-violet-600\/20{border-color:#7c3aed33}.border-warning\/40{border-color:hsl(var(--warning) / .4)}.border-r-primary\/50{border-right-color:hsl(var(--primary) / .5)}.border-t-primary{border-top-color:hsl(var(--primary))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-600\/10{background-color:#d977061a}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/80{background-color:hsl(var(--card) / .8)}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-600\/10{background-color:#0891b21a}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/10{background-color:#0596691a}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.bg-fuchsia-600\/10{background-color:#c026d31a}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-600\/10{background-color:#65a30d1a}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/40{background-color:hsl(var(--muted) / .4)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-muted\/60{background-color:hsl(var(--muted) / .6)}.bg-pillar-graph{--tw-bg-opacity: 1;background-color:hsl(var(--pillar-graph) / var(--tw-bg-opacity, 1))}.bg-pillar-graph\/15{background-color:hsl(var(--pillar-graph) / .15)}.bg-pillar-memory\/15{background-color:hsl(var(--pillar-memory) / .15)}.bg-pillar-review\/15{background-color:hsl(var(--pillar-review) / .15)}.bg-pillar-tokens\/15{background-color:hsl(var(--pillar-tokens) / .15)}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-600\/10{background-color:#db27771a}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/15{background-color:hsl(var(--primary) / .15)}.bg-primary\/25{background-color:hsl(var(--primary) / .25)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/10{background-color:#dc26261a}.bg-secondary{background-color:hsl(var(--secondary))}.bg-success{background-color:hsl(var(--success))}.bg-success\/10{background-color:hsl(var(--success) / .1)}.bg-success\/15{background-color:hsl(var(--success) / .15)}.bg-success\/20{background-color:hsl(var(--success) / .2)}.bg-success\/5{background-color:hsl(var(--success) / .05)}.bg-transparent{background-color:transparent}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-600\/10{background-color:#7c3aed1a}.bg-warning{background-color:hsl(var(--warning))}.bg-warning\/10{background-color:hsl(var(--warning) / .1)}.bg-warning\/15{background-color:hsl(var(--warning) / .15)}.bg-warning\/20{background-color:hsl(var(--warning) / .2)}.bg-warning\/5{background-color:hsl(var(--warning) / .05)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-foreground\/\[0\.06\]{--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--foreground) / .06) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.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-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.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-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.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-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.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-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.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-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-brand{color:hsl(var(--brand))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-pillar-graph{--tw-text-opacity: 1;color:hsl(var(--pillar-graph) / var(--tw-text-opacity, 1))}.text-pillar-memory{--tw-text-opacity: 1;color:hsl(var(--pillar-memory) / var(--tw-text-opacity, 1))}.text-pillar-review{--tw-text-opacity: 1;color:hsl(var(--pillar-review) / var(--tw-text-opacity, 1))}.text-pillar-tokens{--tw-text-opacity: 1;color:hsl(var(--pillar-tokens) / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-success{color:hsl(var(--success))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-warning{color:hsl(var(--warning))}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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-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-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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-2xl{--tw-blur: blur(40px);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)}.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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-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-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:pt-0:first-child{padding-top:0}.last\:pb-0:last-child{padding-bottom:0}.hover\:-translate-y-1:hover{--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))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background\/60:hover{background-color:hsl(var(--background) / .6)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/60:hover{background-color:hsl(var(--muted) / .6)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-destructive:focus{border-color:hsl(var(--destructive))}.focus\:border-primary\/50:focus{border-color:hsl(var(--primary) / .5)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.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-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-headings\:text-foreground :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-p\:text-muted-foreground :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-a\:text-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--primary))}.prose-a\:no-underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:none}.hover\:prose-a\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))):hover{text-decoration-line:underline}.prose-blockquote\:border-border :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}.prose-blockquote\:text-muted-foreground :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-strong\:text-foreground :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-em\:text-foreground :is(:where(em):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:rounded :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){border-radius:.25rem}.prose-code\:bg-muted\/60 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .6)}.prose-code\:px-1 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.25rem;padding-right:.25rem}.prose-code\:py-0\.5 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.125rem;padding-bottom:.125rem}.prose-code\:text-foreground :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:before\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):before{--tw-content: none;content:var(--tw-content)}.prose-code\:after\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):after{--tw-content: none;content:var(--tw-content)}.prose-pre\:border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-pre\:bg-muted\/50 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .5)}.prose-pre\:text-foreground :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-li\:text-muted-foreground :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-th\:text-foreground :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-td\:text-muted-foreground :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-hr\:border-border :is(:where(hr):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}@media(min-width:640px){.sm\:mr-3{margin-right:.75rem}.sm\:block{display:block}.sm\:w-\[32\%\]{width:32%}.sm\:w-\[40\%\]{width:40%}.sm\:w-\[55\%\]{width:55%}.sm\:min-w-\[22rem\]{min-width:22rem}.sm\:min-w-\[26rem\]{min-width:26rem}.sm\:min-w-\[32rem\]{min-width:32rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.sm\:px-4{padding-left:1rem;padding-right:1rem}}@media(min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.lg\:grid-cols-\[18rem_1fr\]{grid-template-columns:18rem 1fr}.lg\:grid-cols-\[1fr_20rem\]{grid-template-columns:1fr 20rem}.lg\:items-start{align-items:flex-start}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pt-4{padding-top:1rem}}@media(min-width:1280px){.xl\:inline{display:inline}}@media(min-width:1536px){.\32xl\:px-2\.5{padding-left:.625rem;padding-right:.625rem}}.\[\&\>p\]\:inline>p{display:inline} diff --git a/internal/ui/assets/assets/index-WjZ6Jgkb.js b/internal/ui/assets/assets/index-Dru5flw6.js similarity index 66% rename from internal/ui/assets/assets/index-WjZ6Jgkb.js rename to internal/ui/assets/assets/index-Dru5flw6.js index 6972fd8..459ffa7 100644 --- a/internal/ui/assets/assets/index-WjZ6Jgkb.js +++ b/internal/ui/assets/assets/index-Dru5flw6.js @@ -1,384 +1,379 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/force-graph-HZtkkbK0.js","assets/radial-aO03NmL0.js","assets/Paired-DNTqsPj0.js","assets/index-DHVCIEzJ.js","assets/3d-force-graph-B8lgMx4q.js","assets/three.module-D-PgY1-x.js"])))=>i.map(i=>d[i]); -var Bn=Object.defineProperty;var Sn=(e,t,n)=>t in e?Bn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var O1=(e,t,n)=>Sn(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** +var Rn=Object.defineProperty;var Qn=(e,t,n)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $1=(e,t,n)=>Qn(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** * @vue/shared v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function yt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const W1={},le=[],z2=()=>{},H7=()=>!1,J4=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),z4=e=>e.startsWith("onUpdate:"),r2=Object.assign,bt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Rn=Object.prototype.hasOwnProperty,N1=(e,t)=>Rn.call(e,t),v1=Array.isArray,M3=e=>u4(e)==="[object Map]",ie=e=>u4(e)==="[object Set]",zt=e=>u4(e)==="[object Date]",I1=e=>typeof e=="function",T1=e=>typeof e=="string",G2=e=>typeof e=="symbol",G1=e=>e!==null&&typeof e=="object",T7=e=>(G1(e)||I1(e))&&I1(e.then)&&I1(e.catch),Y7=Object.prototype.toString,u4=e=>Y7.call(e),Qn=e=>u4(e).slice(8,-1),V7=e=>u4(e)==="[object Object]",kt=e=>T1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Se=yt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j4=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Nn=/-\w/g,b2=j4(e=>e.replace(Nn,t=>t.slice(1).toUpperCase())),Kn=/\B([A-Z])/g,Z3=j4(e=>e.replace(Kn,"-$1").toLowerCase()),X4=j4(e=>e.charAt(0).toUpperCase()+e.slice(1)),y5=j4(e=>e?`on${X4(e)}`:""),V2=(e,t)=>!Object.is(e,t),D4=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Ct=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Gn=e=>{const t=T1(e)?Number(e):NaN;return isNaN(t)?e:t};let jt;const q4=()=>jt||(jt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function S2(e){if(v1(e)){const t={};for(let n=0;n{if(n){const l=n.split($n);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function f1(e){let t="";if(T1(e))t=e;else if(v1(e))for(let n=0;npe(n,t))}const j7=e=>!!(e&&e.__v_isRef===!0),N=e=>T1(e)?e:e==null?"":v1(e)||G1(e)&&(e.toString===Y7||!I1(e.toString))?j7(e)?N(e.value):JSON.stringify(e,X7,2):String(e),X7=(e,t)=>j7(t)?X7(e,t.value):M3(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],r)=>(n[b5(l,r)+" =>"]=o,n),{})}:ie(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>b5(n))}:G2(t)?b5(t):G1(t)&&!v1(t)&&!V7(t)?String(t):t,b5=(e,t="")=>{var n;return G2(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**/function yt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const L1={},oe=[],j2=()=>{},H7=()=>!1,U4=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),J4=e=>e.startsWith("onUpdate:"),r2=Object.assign,bt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Nn=Object.prototype.hasOwnProperty,N1=(e,t)=>Nn.call(e,t),g1=Array.isArray,E3=e=>u4(e)==="[object Map]",ce=e=>u4(e)==="[object Set]",jt=e=>u4(e)==="[object Date]",I1=e=>typeof e=="function",Y1=e=>typeof e=="string",O2=e=>typeof e=="symbol",G1=e=>e!==null&&typeof e=="object",Y7=e=>(G1(e)||I1(e))&&I1(e.then)&&I1(e.catch),V7=Object.prototype.toString,u4=e=>V7.call(e),Kn=e=>u4(e).slice(8,-1),U7=e=>u4(e)==="[object Object]",kt=e=>Y1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Re=yt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z4=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Gn=/-\w/g,b2=z4(e=>e.replace(Gn,t=>t.slice(1).toUpperCase())),On=/\B([A-Z])/g,F3=z4(e=>e.replace(On,"-$1").toLowerCase()),j4=z4(e=>e.charAt(0).toUpperCase()+e.slice(1)),g5=z4(e=>e?`on${j4(e)}`:""),U2=(e,t)=>!Object.is(e,t),E4=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Ct=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$n=e=>{const t=Y1(e)?Number(e):NaN;return isNaN(t)?e:t};let Xt;const X4=()=>Xt||(Xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function M2(e){if(g1(e)){const t={};for(let n=0;n{if(n){const l=n.split(Ln);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function i1(e){let t="";if(Y1(e))t=e;else if(g1(e))for(let n=0;nme(n,t))}const X7=e=>!!(e&&e.__v_isRef===!0),Q=e=>Y1(e)?e:e==null?"":g1(e)||G1(e)&&(e.toString===V7||!I1(e.toString))?X7(e)?Q(e.value):JSON.stringify(e,q7,2):String(e),q7=(e,t)=>X7(t)?q7(e,t.value):E3(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],r)=>(n[v5(l,r)+" =>"]=o,n),{})}:ce(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>v5(n))}:O2(t)?v5(t):G1(t)&&!g1(t)&&!U7(t)?String(t):t,v5=(e,t="")=>{var n;return O2(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let a2;class Yn{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&a2&&(a2.active?(this.parent=a2,this.index=(a2.scopes||(a2.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const l=this.scopes.slice();for(t=0,n=l.length;t0&&--this._on===0){if(a2===this)a2=this.prevScope;else{let t=a2;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(Qe){let t=Qe;for(Qe=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Re;){let t=Re;for(Re=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function n8(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function l8(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),_t(l),Un(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function V5(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(o8(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function o8(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Pe)||(e.globalVersion=Pe,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!V5(e))))return;e.flags|=2;const t=e.dep,n=P1,l=N2;P1=e,N2=!0;try{n8(e);const o=e.fn(e._value);(t.version===0||V2(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{P1=n,N2=l,l8(e),e.flags&=-3}}function _t(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)_t(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Un(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let N2=!0;const r8=[];function u3(){r8.push(N2),N2=!1}function d3(){const e=r8.pop();N2=e===void 0?!0:e}function qt(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=P1;P1=void 0;try{t()}finally{P1=n}}}let Pe=0;class Jn{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class It{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!P1||!N2||P1===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==P1)n=this.activeLink=new Jn(P1,this),P1.deps?(n.prevDep=P1.depsTail,P1.depsTail.nextDep=n,P1.depsTail=n):P1.deps=P1.depsTail=n,s8(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=P1.depsTail,n.nextDep=void 0,P1.depsTail.nextDep=n,P1.depsTail=n,P1.deps===n&&(P1.deps=l)}return n}trigger(t){this.version++,Pe++,this.notify(t)}notify(t){wt();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xt()}}}function s8(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)s8(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const U5=new WeakMap,Y3=Symbol(""),J5=Symbol(""),He=Symbol("");function f2(e,t,n){if(N2&&P1){let l=U5.get(e);l||U5.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new It),o.map=l,o.key=n),o.track()}}function s3(e,t,n,l,o,r){const s=U5.get(e);if(!s){Pe++;return}const a=i=>{i&&i.trigger()};if(wt(),t==="clear")s.forEach(a);else{const i=v1(e),c=i&&kt(n);if(i&&n==="length"){const d=Number(l);s.forEach((u,A)=>{(A==="length"||A===He||!G2(A)&&A>=d)&&a(u)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(He)),t){case"add":i?c&&a(s.get("length")):(a(s.get(Y3)),M3(e)&&a(s.get(J5)));break;case"delete":i||(a(s.get(Y3)),M3(e)&&a(s.get(J5)));break;case"set":M3(e)&&a(s.get(Y3));break}}xt()}function X3(e){const t=R1(e);return t===e?t:(f2(t,"iterate",He),E2(e)?t:t.map(O2))}function e5(e){return f2(e=R1(e),"iterate",He),e}function T2(e,t){return f3(e)?ce(V3(e)?O2(t):t):O2(t)}const zn={__proto__:null,[Symbol.iterator](){return C5(this,Symbol.iterator,e=>T2(this,e))},concat(...e){return X3(this).concat(...e.map(t=>v1(t)?X3(t):t))},entries(){return C5(this,"entries",e=>(e[1]=T2(this,e[1]),e))},every(e,t){return e3(this,"every",e,t,void 0,arguments)},filter(e,t){return e3(this,"filter",e,t,n=>n.map(l=>T2(this,l)),arguments)},find(e,t){return e3(this,"find",e,t,n=>T2(this,n),arguments)},findIndex(e,t){return e3(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return e3(this,"findLast",e,t,n=>T2(this,n),arguments)},findLastIndex(e,t){return e3(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return e3(this,"forEach",e,t,void 0,arguments)},includes(...e){return w5(this,"includes",e)},indexOf(...e){return w5(this,"indexOf",e)},join(e){return X3(this).join(e)},lastIndexOf(...e){return w5(this,"lastIndexOf",e)},map(e,t){return e3(this,"map",e,t,void 0,arguments)},pop(){return be(this,"pop")},push(...e){return be(this,"push",e)},reduce(e,...t){return e6(this,"reduce",e,t)},reduceRight(e,...t){return e6(this,"reduceRight",e,t)},shift(){return be(this,"shift")},some(e,t){return e3(this,"some",e,t,void 0,arguments)},splice(...e){return be(this,"splice",e)},toReversed(){return X3(this).toReversed()},toSorted(e){return X3(this).toSorted(e)},toSpliced(...e){return X3(this).toSpliced(...e)},unshift(...e){return be(this,"unshift",e)},values(){return C5(this,"values",e=>T2(this,e))}};function C5(e,t,n){const l=e5(e),o=l[t]();return l!==e&&!E2(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const jn=Array.prototype;function e3(e,t,n,l,o,r){const s=e5(e),a=s!==e&&!E2(e),i=s[t];if(i!==jn[t]){const u=i.apply(e,r);return a?O2(u):u}let c=n;s!==e&&(a?c=function(u,A){return n.call(this,T2(e,u),A,e)}:n.length>2&&(c=function(u,A){return n.call(this,u,A,e)}));const d=i.call(s,c,l);return a&&o?o(d):d}function e6(e,t,n,l){const o=e5(e),r=o!==e&&!E2(e);let s=n,a=!1;o!==e&&(r?(a=l.length===0,s=function(c,d,u){return a&&(a=!1,c=T2(e,c)),n.call(this,c,T2(e,d),u,e)}):n.length>3&&(s=function(c,d,u){return n.call(this,c,d,u,e)}));const i=o[t](s,...l);return a?T2(e,i):i}function w5(e,t,n){const l=R1(e);f2(l,"iterate",He);const o=l[t](...n);return(o===-1||o===!1)&&Dt(n[0])?(n[0]=R1(n[0]),l[t](...n)):o}function be(e,t,n=[]){u3(),wt();const l=R1(e)[t].apply(e,n);return xt(),d3(),l}const Xn=yt("__proto__,__v_isRef,__isVue"),a8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(G2));function qn(e){G2(e)||(e=String(e));const t=R1(this);return f2(t,"has",e),t.hasOwnProperty(e)}class i8{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return l===(o?r?cl:f8:r?d8:u8).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const s=v1(t);if(!o){let i;if(s&&(i=zn[n]))return i;if(n==="hasOwnProperty")return qn}const a=Reflect.get(t,n,n2(t)?t:l);if((G2(n)?a8.has(n):Xn(n))||(o||f2(t,"get",n),r))return a;if(n2(a)){const i=s&&kt(n)?a:a.value;return o&&G1(i)?j5(i):i}return G1(a)?o?j5(a):t5(a):a}}class c8 extends i8{constructor(t=!1){super(!1,t)}set(t,n,l,o){let r=t[n];const s=v1(t)&&kt(n);if(!this._isShallow){const c=f3(r);if(!E2(l)&&!f3(l)&&(r=R1(r),l=R1(l)),!s&&n2(r)&&!n2(l))return c||(r.value=l),!0}const a=s?Number(n)e,m4=e=>Reflect.getPrototypeOf(e);function ol(e,t,n){return function(...l){const o=this.__v_raw,r=R1(o),s=M3(r),a=e==="entries"||e===Symbol.iterator&&s,i=e==="keys"&&s,c=o[e](...l),d=n?z5:t?ce:O2;return!t&&f2(r,"iterate",i?J5:Y3),r2(Object.create(c),{next(){const{value:u,done:A}=c.next();return A?{value:u,done:A}:{value:a?[d(u[0]),d(u[1])]:d(u),done:A}}})}}function g4(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function rl(e,t){const n={get(o){const r=this.__v_raw,s=R1(r),a=R1(o);e||(V2(o,a)&&f2(s,"get",o),f2(s,"get",a));const{has:i}=m4(s),c=t?z5:e?ce:O2;if(i.call(s,o))return c(r.get(o));if(i.call(s,a))return c(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&f2(R1(o),"iterate",Y3),o.size},has(o){const r=this.__v_raw,s=R1(r),a=R1(o);return e||(V2(o,a)&&f2(s,"has",o),f2(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,i=R1(a),c=t?z5:e?ce:O2;return!e&&f2(i,"iterate",Y3),a.forEach((d,u)=>o.call(r,c(d),c(u),s))}};return r2(n,e?{add:g4("add"),set:g4("set"),delete:g4("delete"),clear:g4("clear")}:{add(o){const r=R1(this),s=m4(r),a=R1(o),i=!t&&!E2(o)&&!f3(o)?a:o;return s.has.call(r,i)||V2(o,i)&&s.has.call(r,o)||V2(a,i)&&s.has.call(r,a)||(r.add(i),s3(r,"add",i,i)),this},set(o,r){!t&&!E2(r)&&!f3(r)&&(r=R1(r));const s=R1(this),{has:a,get:i}=m4(s);let c=a.call(s,o);c||(o=R1(o),c=a.call(s,o));const d=i.call(s,o);return s.set(o,r),c?V2(r,d)&&s3(s,"set",o,r):s3(s,"add",o,r),this},delete(o){const r=R1(this),{has:s,get:a}=m4(r);let i=s.call(r,o);i||(o=R1(o),i=s.call(r,o)),a&&a.call(r,o);const c=r.delete(o);return i&&s3(r,"delete",o,void 0),c},clear(){const o=R1(this),r=o.size!==0,s=o.clear();return r&&s3(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ol(o,e,t)}),n}function Mt(e,t){const n=rl(e,t);return(l,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(N1(n,o)&&o in l?n:l,o,r)}const sl={get:Mt(!1,!1)},al={get:Mt(!1,!0)},il={get:Mt(!0,!1)};const u8=new WeakMap,d8=new WeakMap,f8=new WeakMap,cl=new WeakMap;function ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function t5(e){return f3(e)?e:Et(e,!1,tl,sl,u8)}function A8(e){return Et(e,!1,ll,al,d8)}function j5(e){return Et(e,!0,nl,il,f8)}function Et(e,t,n,l,o){if(!G1(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const s=ul(Qn(e));if(s===0)return e;const a=new Proxy(e,s===2?l:n);return o.set(e,a),a}function V3(e){return f3(e)?V3(e.__v_raw):!!(e&&e.__v_isReactive)}function f3(e){return!!(e&&e.__v_isReadonly)}function E2(e){return!!(e&&e.__v_isShallow)}function Dt(e){return e?!!e.__v_raw:!1}function R1(e){const t=e&&e.__v_raw;return t?R1(t):e}function dl(e){return!N1(e,"__v_skip")&&Object.isExtensible(e)&&U7(e,"__v_skip",!0),e}const O2=e=>G1(e)?t5(e):e,ce=e=>G1(e)?j5(e):e;function n2(e){return e?e.__v_isRef===!0:!1}function z(e){return h8(e,!1)}function fl(e){return h8(e,!0)}function h8(e,t){return n2(e)?e:new Al(e,t)}class Al{constructor(t,n){this.dep=new It,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:R1(t),this._value=n?t:O2(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||E2(t)||f3(t);t=l?t:R1(t),V2(t,n)&&(this._rawValue=t,this._value=l?t:O2(t),this.dep.trigger())}}function f(e){return n2(e)?e.value:e}const hl={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return n2(o)&&!n2(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function p8(e){return V3(e)?e:new Proxy(e,hl)}class pl{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new It(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Pe-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&P1!==this)return t8(this,!0),!0}get value(){const t=this.dep.track();return o8(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function ml(e,t,n=!1){let l,o;return I1(e)?l=e:(l=e.get,o=e.set),new pl(l,o,n)}const v4={},R4=new WeakMap;let $3;function gl(e,t=!1,n=$3){if(n){let l=R4.get(n);l||R4.set(n,l=[]),l.push(e)}}function vl(e,t,n=W1){const{immediate:l,deep:o,once:r,scheduler:s,augmentJob:a,call:i}=n,c=_=>o?_:E2(_)||o===!1||o===0?a3(_,1):a3(_);let d,u,A,m,p=!1,y=!1;if(n2(e)?(u=()=>e.value,p=E2(e)):V3(e)?(u=()=>c(e),p=!0):v1(e)?(y=!0,p=e.some(_=>V3(_)||E2(_)),u=()=>e.map(_=>{if(n2(_))return _.value;if(V3(_))return c(_);if(I1(_))return i?i(_,2):_()})):I1(e)?t?u=i?()=>i(e,2):e:u=()=>{if(A){u3();try{A()}finally{d3()}}const _=$3;$3=d;try{return i?i(e,3,[m]):e(m)}finally{$3=_}}:u=z2,t&&o){const _=u,R=o===!0?1/0:o;u=()=>a3(_(),R)}const k=Vn(),F=()=>{d.stop(),k&&k.active&&bt(k.effects,d)};if(r&&t){const _=t;t=(...R)=>{const $=_(...R);return F(),$}}let M=y?new Array(e.length).fill(v4):v4;const E=_=>{if(!(!(d.flags&1)||!d.dirty&&!_))if(t){const R=d.run();if(_||o||p||(y?R.some(($,D)=>V2($,M[D])):V2(R,M))){A&&A();const $=$3;$3=d;try{const D=[R,M===v4?void 0:y&&M[0]===v4?[]:M,m];M=R,i?i(t,3,D):t(...D)}finally{$3=$}}}else d.run()};return a&&a(E),d=new q7(u),d.scheduler=s?()=>s(E,!1):E,m=_=>gl(_,!1,d),A=d.onStop=()=>{const _=R4.get(d);if(_){if(i)i(_,4);else for(const R of _)R();R4.delete(d)}},t?l?E(!0):M=d.run():s?s(E.bind(null,!0),!0):d.run(),F.pause=d.pause.bind(d),F.resume=d.resume.bind(d),F.stop=F,F}function a3(e,t=1/0,n){if(t<=0||!G1(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,n2(e))a3(e.value,t,n);else if(v1(e))for(let l=0;l{a3(l,t,n)});else if(V7(e)){for(const l in e)a3(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&a3(e[l],t,n)}return e}/** +**/let a2;class Un{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&a2&&(a2.active?(this.parent=a2,this.index=(a2.scopes||(a2.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const l=this.scopes.slice();for(t=0,n=l.length;t0&&--this._on===0){if(a2===this)a2=this.prevScope;else{let t=a2;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(Ne){let t=Ne;for(Ne=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Qe;){let t=Qe;for(Qe=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function l8(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function o8(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),_t(l),zn(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function H5(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(r8(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function r8(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Te)||(e.globalVersion=Te,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!H5(e))))return;e.flags|=2;const t=e.dep,n=T1,l=K2;T1=e,K2=!0;try{l8(e);const o=e.fn(e._value);(t.version===0||U2(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{T1=n,K2=l,o8(e),e.flags&=-3}}function _t(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)_t(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zn(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let K2=!0;const s8=[];function d3(){s8.push(K2),K2=!1}function f3(){const e=s8.pop();K2=e===void 0?!0:e}function e6(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=T1;T1=void 0;try{t()}finally{T1=n}}}let Te=0;class jn{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class It{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!T1||!K2||T1===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==T1)n=this.activeLink=new jn(T1,this),T1.deps?(n.prevDep=T1.depsTail,T1.depsTail.nextDep=n,T1.depsTail=n):T1.deps=T1.depsTail=n,a8(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=T1.depsTail,n.nextDep=void 0,T1.depsTail.nextDep=n,T1.depsTail=n,T1.deps===n&&(T1.deps=l)}return n}trigger(t){this.version++,Te++,this.notify(t)}notify(t){wt();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xt()}}}function a8(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)a8(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Y5=new WeakMap,Y3=Symbol(""),V5=Symbol(""),He=Symbol("");function f2(e,t,n){if(K2&&T1){let l=Y5.get(e);l||Y5.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new It),o.map=l,o.key=n),o.track()}}function a3(e,t,n,l,o,r){const s=Y5.get(e);if(!s){Te++;return}const a=i=>{i&&i.trigger()};if(wt(),t==="clear")s.forEach(a);else{const i=g1(e),c=i&&kt(n);if(i&&n==="length"){const d=Number(l);s.forEach((u,A)=>{(A==="length"||A===He||!O2(A)&&A>=d)&&a(u)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(He)),t){case"add":i?c&&a(s.get("length")):(a(s.get(Y3)),E3(e)&&a(s.get(V5)));break;case"delete":i||(a(s.get(Y3)),E3(e)&&a(s.get(V5)));break;case"set":E3(e)&&a(s.get(Y3));break}}xt()}function q3(e){const t=R1(e);return t===e?t:(f2(t,"iterate",He),D2(e)?t:t.map($2))}function q4(e){return f2(e=R1(e),"iterate",He),e}function Y2(e,t){return A3(e)?ue(V3(e)?$2(t):t):$2(t)}const Xn={__proto__:null,[Symbol.iterator](){return b5(this,Symbol.iterator,e=>Y2(this,e))},concat(...e){return q3(this).concat(...e.map(t=>g1(t)?q3(t):t))},entries(){return b5(this,"entries",e=>(e[1]=Y2(this,e[1]),e))},every(e,t){return t3(this,"every",e,t,void 0,arguments)},filter(e,t){return t3(this,"filter",e,t,n=>n.map(l=>Y2(this,l)),arguments)},find(e,t){return t3(this,"find",e,t,n=>Y2(this,n),arguments)},findIndex(e,t){return t3(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return t3(this,"findLast",e,t,n=>Y2(this,n),arguments)},findLastIndex(e,t){return t3(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return t3(this,"forEach",e,t,void 0,arguments)},includes(...e){return k5(this,"includes",e)},indexOf(...e){return k5(this,"indexOf",e)},join(e){return q3(this).join(e)},lastIndexOf(...e){return k5(this,"lastIndexOf",e)},map(e,t){return t3(this,"map",e,t,void 0,arguments)},pop(){return ke(this,"pop")},push(...e){return ke(this,"push",e)},reduce(e,...t){return t6(this,"reduce",e,t)},reduceRight(e,...t){return t6(this,"reduceRight",e,t)},shift(){return ke(this,"shift")},some(e,t){return t3(this,"some",e,t,void 0,arguments)},splice(...e){return ke(this,"splice",e)},toReversed(){return q3(this).toReversed()},toSorted(e){return q3(this).toSorted(e)},toSpliced(...e){return q3(this).toSpliced(...e)},unshift(...e){return ke(this,"unshift",e)},values(){return b5(this,"values",e=>Y2(this,e))}};function b5(e,t,n){const l=q4(e),o=l[t]();return l!==e&&!D2(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const qn=Array.prototype;function t3(e,t,n,l,o,r){const s=q4(e),a=s!==e&&!D2(e),i=s[t];if(i!==qn[t]){const u=i.apply(e,r);return a?$2(u):u}let c=n;s!==e&&(a?c=function(u,A){return n.call(this,Y2(e,u),A,e)}:n.length>2&&(c=function(u,A){return n.call(this,u,A,e)}));const d=i.call(s,c,l);return a&&o?o(d):d}function t6(e,t,n,l){const o=q4(e),r=o!==e&&!D2(e);let s=n,a=!1;o!==e&&(r?(a=l.length===0,s=function(c,d,u){return a&&(a=!1,c=Y2(e,c)),n.call(this,c,Y2(e,d),u,e)}):n.length>3&&(s=function(c,d,u){return n.call(this,c,d,u,e)}));const i=o[t](s,...l);return a?Y2(e,i):i}function k5(e,t,n){const l=R1(e);f2(l,"iterate",He);const o=l[t](...n);return(o===-1||o===!1)&&Dt(n[0])?(n[0]=R1(n[0]),l[t](...n)):o}function ke(e,t,n=[]){d3(),wt();const l=R1(e)[t].apply(e,n);return xt(),f3(),l}const el=yt("__proto__,__v_isRef,__isVue"),i8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(O2));function tl(e){O2(e)||(e=String(e));const t=R1(this);return f2(t,"has",e),t.hasOwnProperty(e)}class c8{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return l===(o?r?dl:A8:r?f8:d8).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const s=g1(t);if(!o){let i;if(s&&(i=Xn[n]))return i;if(n==="hasOwnProperty")return tl}const a=Reflect.get(t,n,n2(t)?t:l);if((O2(n)?i8.has(n):el(n))||(o||f2(t,"get",n),r))return a;if(n2(a)){const i=s&&kt(n)?a:a.value;return o&&G1(i)?J5(i):i}return G1(a)?o?J5(a):e5(a):a}}class u8 extends c8{constructor(t=!1){super(!1,t)}set(t,n,l,o){let r=t[n];const s=g1(t)&&kt(n);if(!this._isShallow){const c=A3(r);if(!D2(l)&&!A3(l)&&(r=R1(r),l=R1(l)),!s&&n2(r)&&!n2(l))return c||(r.value=l),!0}const a=s?Number(n)e,p4=e=>Reflect.getPrototypeOf(e);function sl(e,t,n){return function(...l){const o=this.__v_raw,r=R1(o),s=E3(r),a=e==="entries"||e===Symbol.iterator&&s,i=e==="keys"&&s,c=o[e](...l),d=n?U5:t?ue:$2;return!t&&f2(r,"iterate",i?V5:Y3),r2(Object.create(c),{next(){const{value:u,done:A}=c.next();return A?{value:u,done:A}:{value:a?[d(u[0]),d(u[1])]:d(u),done:A}}})}}function m4(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function al(e,t){const n={get(o){const r=this.__v_raw,s=R1(r),a=R1(o);e||(U2(o,a)&&f2(s,"get",o),f2(s,"get",a));const{has:i}=p4(s),c=t?U5:e?ue:$2;if(i.call(s,o))return c(r.get(o));if(i.call(s,a))return c(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&f2(R1(o),"iterate",Y3),o.size},has(o){const r=this.__v_raw,s=R1(r),a=R1(o);return e||(U2(o,a)&&f2(s,"has",o),f2(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,i=R1(a),c=t?U5:e?ue:$2;return!e&&f2(i,"iterate",Y3),a.forEach((d,u)=>o.call(r,c(d),c(u),s))}};return r2(n,e?{add:m4("add"),set:m4("set"),delete:m4("delete"),clear:m4("clear")}:{add(o){const r=R1(this),s=p4(r),a=R1(o),i=!t&&!D2(o)&&!A3(o)?a:o;return s.has.call(r,i)||U2(o,i)&&s.has.call(r,o)||U2(a,i)&&s.has.call(r,a)||(r.add(i),a3(r,"add",i,i)),this},set(o,r){!t&&!D2(r)&&!A3(r)&&(r=R1(r));const s=R1(this),{has:a,get:i}=p4(s);let c=a.call(s,o);c||(o=R1(o),c=a.call(s,o));const d=i.call(s,o);return s.set(o,r),c?U2(r,d)&&a3(s,"set",o,r):a3(s,"add",o,r),this},delete(o){const r=R1(this),{has:s,get:a}=p4(r);let i=s.call(r,o);i||(o=R1(o),i=s.call(r,o)),a&&a.call(r,o);const c=r.delete(o);return i&&a3(r,"delete",o,void 0),c},clear(){const o=R1(this),r=o.size!==0,s=o.clear();return r&&a3(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=sl(o,e,t)}),n}function Mt(e,t){const n=al(e,t);return(l,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(N1(n,o)&&o in l?n:l,o,r)}const il={get:Mt(!1,!1)},cl={get:Mt(!1,!0)},ul={get:Mt(!0,!1)};const d8=new WeakMap,f8=new WeakMap,A8=new WeakMap,dl=new WeakMap;function fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function e5(e){return A3(e)?e:Et(e,!1,ll,il,d8)}function h8(e){return Et(e,!1,rl,cl,f8)}function J5(e){return Et(e,!0,ol,ul,A8)}function Et(e,t,n,l,o){if(!G1(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const s=fl(Kn(e));if(s===0)return e;const a=new Proxy(e,s===2?l:n);return o.set(e,a),a}function V3(e){return A3(e)?V3(e.__v_raw):!!(e&&e.__v_isReactive)}function A3(e){return!!(e&&e.__v_isReadonly)}function D2(e){return!!(e&&e.__v_isShallow)}function Dt(e){return e?!!e.__v_raw:!1}function R1(e){const t=e&&e.__v_raw;return t?R1(t):e}function Al(e){return!N1(e,"__v_skip")&&Object.isExtensible(e)&&J7(e,"__v_skip",!0),e}const $2=e=>G1(e)?e5(e):e,ue=e=>G1(e)?J5(e):e;function n2(e){return e?e.__v_isRef===!0:!1}function j(e){return p8(e,!1)}function hl(e){return p8(e,!0)}function p8(e,t){return n2(e)?e:new pl(e,t)}class pl{constructor(t,n){this.dep=new It,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:R1(t),this._value=n?t:$2(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||D2(t)||A3(t);t=l?t:R1(t),U2(t,n)&&(this._rawValue=t,this._value=l?t:$2(t),this.dep.trigger())}}function f(e){return n2(e)?e.value:e}const ml={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return n2(o)&&!n2(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function m8(e){return V3(e)?e:new Proxy(e,ml)}class gl{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new It(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Te-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&T1!==this)return n8(this,!0),!0}get value(){const t=this.dep.track();return r8(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vl(e,t,n=!1){let l,o;return I1(e)?l=e:(l=e.get,o=e.set),new gl(l,o,n)}const g4={},S4=new WeakMap;let $3;function yl(e,t=!1,n=$3){if(n){let l=S4.get(n);l||S4.set(n,l=[]),l.push(e)}}function bl(e,t,n=L1){const{immediate:l,deep:o,once:r,scheduler:s,augmentJob:a,call:i}=n,c=v=>o?v:D2(v)||o===!1||o===0?i3(v,1):i3(v);let d,u,A,p,m=!1,k=!1;if(n2(e)?(u=()=>e.value,m=D2(e)):V3(e)?(u=()=>c(e),m=!0):g1(e)?(k=!0,m=e.some(v=>V3(v)||D2(v)),u=()=>e.map(v=>{if(n2(v))return v.value;if(V3(v))return c(v);if(I1(v))return i?i(v,2):v()})):I1(e)?t?u=i?()=>i(e,2):e:u=()=>{if(A){d3();try{A()}finally{f3()}}const v=$3;$3=d;try{return i?i(e,3,[p]):e(p)}finally{$3=v}}:u=j2,t&&o){const v=u,S=o===!0?1/0:o;u=()=>i3(v(),S)}const D=Jn(),F=()=>{d.stop(),D&&D.active&&bt(D.effects,d)};if(r&&t){const v=t;t=(...S)=>{const L=v(...S);return F(),L}}let C=k?new Array(e.length).fill(g4):g4;const I=v=>{if(!(!(d.flags&1)||!d.dirty&&!v))if(t){const S=d.run();if(v||o||m||(k?S.some((L,Z)=>U2(L,C[Z])):U2(S,C))){A&&A();const L=$3;$3=d;try{const Z=[S,C===g4?void 0:k&&C[0]===g4?[]:C,p];C=S,i?i(t,3,Z):t(...Z)}finally{$3=L}}}else d.run()};return a&&a(I),d=new e8(u),d.scheduler=s?()=>s(I,!1):I,p=v=>yl(v,!1,d),A=d.onStop=()=>{const v=S4.get(d);if(v){if(i)i(v,4);else for(const S of v)S();S4.delete(d)}},t?l?I(!0):C=d.run():s?s(I.bind(null,!0),!0):d.run(),F.pause=d.pause.bind(d),F.resume=d.resume.bind(d),F.stop=F,F}function i3(e,t=1/0,n){if(t<=0||!G1(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,n2(e))i3(e.value,t,n);else if(g1(e))for(let l=0;l{i3(l,t,n)});else if(U7(e)){for(const l in e)i3(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&i3(e[l],t,n)}return e}/** * @vue/runtime-core v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function d4(e,t,n,l){try{return l?e(...l):e()}catch(o){n5(o,t,n)}}function D2(e,t,n,l){if(I1(e)){const o=d4(e,t,n,l);return o&&T7(o)&&o.catch(r=>{n5(r,t,n)}),o}if(v1(e)){const o=[];for(let r=0;r>>1,o=y2[l],r=Te(o);r=Te(n)?y2.push(e):y2.splice(bl(t),0,e),e.flags|=1,v8()}}function v8(){Q4||(Q4=m8.then(b8))}function kl(e){if(!v1(e))w3&&e.id===-1?w3.splice(te+1,0,e):e.flags&1||(oe.push(e),e.flags|=1);else for(let t=0;tTe(n)-Te(l));if(oe.length=0,w3){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function b8(e){try{for(H2=0;H2{l._d&&$4(-1);const r=N4(t),s=c3.length;let a;try{a=e(...o)}finally{for(let i=c3.length;i>s;i--)Qt();N4(r),l._d&&$4(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Ne(e,t){if(i2===null)return e;const n=i5(i2),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&I1(t)?t.call(l&&l.proxy):t}}const Cl=Symbol.for("v-scx"),wl=()=>K2(Cl);function t2(e,t,n){return C8(e,t,n)}function C8(e,t,n=W1){const{immediate:l,deep:o,flush:r,once:s}=n,a=r2({},n),i=t&&l||!t&&r!=="post";let c;if(je){if(r==="sync"){const m=wl();c=m.__watcherHandles||(m.__watcherHandles=[])}else if(!i){const m=()=>{};return m.stop=z2,m.resume=z2,m.pause=z2,m}}const d=h2;a.call=(m,p,y)=>D2(m,d,p,y);let u=!1;r==="post"?a.scheduler=m=>{m2(m,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(m,p)=>{p?m():Zt(m)}),a.augmentJob=m=>{t&&(m.flags|=4),u&&(m.flags|=2,d&&(m.id=d.uid,m.i=d))};const A=vl(e,t,a);return je&&(c?c.push(A):i&&A()),A}function xl(e,t,n){const l=this.proxy,o=T1(e)?e.includes(".")?w8(l,e):()=>l[e]:e.bind(l,l);let r;I1(t)?r=t:(r=t.handler,n=t);const s=A4(this),a=C8(o,r.bind(l),n);return s(),a}function w8(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,W3=e=>e&&(e.disabled||e.disabled===""),_l=e=>e&&(e.defer||e.defer===""),n6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,l6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,X5=(e,t)=>{const n=e&&e.to;return T1(n)?t?t(n):null:n},Il={name:"Teleport",__isTeleport:!0,process(e,t,n,l,o,r,s,a,i,c){const{mc:d,pc:u,pbc:A,o:{insert:m,querySelector:p,createText:y,createComment:k,parentNode:F}}=c,M=W3(t.props);let{dynamicChildren:E}=t;const _=(D,x,Q)=>{D.shapeFlag&16&&d(D.children,x,Q,o,r,s,a,i)},R=(D=t)=>{const x=W3(D.props),Q=D.target=X5(D.props,p),B=q5(Q,D,y,m);Q&&(s!=="svg"&&n6(Q)?s="svg":s!=="mathml"&&l6(Q)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(Q),x||(_(D,Q,B),Ze(D,!1)))},$=D=>{const x=()=>{if(C3.get(D)===x){if(C3.delete(D),W3(D.props)){const Q=F(D.el)||n;_(D,Q,D.anchor),Ze(D,!0)}R(D)}};C3.set(D,x),m2(x,r)};if(e==null){const D=t.el=y(""),x=t.anchor=y("");if(m(D,n,l),m(x,n,l),_l(t.props)||r&&r.pendingBranch){$(t);return}M&&(_(t,n,x),Ze(t,!0)),R()}else{t.el=e.el;const D=t.anchor=e.anchor,x=C3.get(e);if(x){x.flags|=8,C3.delete(e),$(t);return}t.targetStart=e.targetStart;const Q=t.target=e.target,B=t.targetAnchor=e.targetAnchor,X=W3(e.props),Y=X?n:Q,m1=X?D:B;if(s==="svg"||n6(Q)?s="svg":(s==="mathml"||l6(Q))&&(s="mathml"),E?(A(e.dynamicChildren,E,Y,o,r,s,a),Rt(e,t,!0)):i||u(e,t,Y,m1,o,r,s,a,!1),M)X?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):y4(t,n,D,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const w1=X5(t.props,p);w1&&(t.target=w1,y4(t,w1,null,c,0))}else X&&y4(t,Q,B,c,1);Ze(t,M)}},remove(e,t,n,{um:l,o:{remove:o}},r){const{shapeFlag:s,children:a,anchor:i,targetStart:c,targetAnchor:d,target:u,props:A}=e,m=W3(A),p=r||!m,y=C3.get(e);if(y&&(y.flags|=8,C3.delete(e)),u&&(o(c),o(d)),r&&o(i),!y&&(m||u)&&s&16)for(let k=0;k{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const _2=[Function,Array],_8={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_2,onEnter:_2,onAfterEnter:_2,onEnterCancelled:_2,onBeforeLeave:_2,onLeave:_2,onAfterLeave:_2,onLeaveCancelled:_2,onBeforeAppear:_2,onAppear:_2,onAfterAppear:_2,onAppearCancelled:_2},I8=e=>{const t=e.subTree;return t.component?I8(t.component):t},Zl={name:"BaseTransition",props:_8,setup(e,{slots:t}){const n=e0(),l=Dl();return()=>{const o=t.default&&D8(t.default(),!0),r=o&&o.length?M8(o):n.subTree?P():void 0;if(!r)return;const s=R1(e),{mode:a}=s;if(l.isLeaving)return x5(r);const i=K4(r);if(!i)return x5(r);let c=et(i,s,l,n,u=>c=u);i.type!==A2&&Ye(i,c);let d=n.subTree&&K4(n.subTree);if(d&&d.type!==A2&&!L3(d,i)&&I8(n).type!==A2){let u=et(d,s,l,n);if(Ye(d,u),a==="out-in"&&i.type!==A2)return l.isLeaving=!0,u.afterLeave=()=>{l.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},x5(r);a==="in-out"&&i.type!==A2?u.delayLeave=(A,m,p)=>{const y=E8(l,d);y[String(d.key)]=d,A[I2]=()=>{m(),A[I2]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function M8(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==A2){t=n;break}}return t}const Fl=Zl;function E8(e,t){const{leavingVNodes:n}=e;let l=n.get(t.type);return l||(l=Object.create(null),n.set(t.type,l)),l}function et(e,t,n,l,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:A,onLeave:m,onAfterLeave:p,onLeaveCancelled:y,onBeforeAppear:k,onAppear:F,onAfterAppear:M,onAppearCancelled:E}=t,_=String(e.key),R=E8(n,e),$=(Q,B)=>{Q&&D2(Q,l,9,B)},D=(Q,B)=>{const X=B[1];$(Q,B),v1(Q)?Q.every(Y=>Y.length<=1)&&X():Q.length<=1&&X()},x={mode:s,persisted:a,beforeEnter(Q){let B=i;if(!n.isMounted)if(r)B=k||i;else return;Q[I2]&&Q[I2](!0);const X=R[_];X&&L3(e,X)&&X.el[I2]&&X.el[I2](),$(B,[Q])},enter(Q){if(R[_]===e)return;let B=c,X=d,Y=u;if(!n.isMounted)if(r)B=F||c,X=M||d,Y=E||u;else return;let m1=!1;Q[ke]=r1=>{m1||(m1=!0,r1?$(Y,[Q]):$(X,[Q]),x.delayedLeave&&x.delayedLeave(),Q[ke]=void 0)};const w1=Q[ke].bind(null,!1);B?D(B,[Q,w1]):w1()},leave(Q,B){const X=String(e.key);if(Q[ke]&&Q[ke](!0),n.isUnmounting)return B();$(A,[Q]);let Y=!1;Q[I2]=w1=>{Y||(Y=!0,B(),w1?$(y,[Q]):$(p,[Q]),Q[I2]=void 0,R[X]===e&&delete R[X])};const m1=Q[I2].bind(null,!1);R[X]=e,m?D(m,[Q,m1]):m1()},clone(Q){const B=et(Q,t,n,l,o);return o&&o(B),B}};return x}function x5(e){if(o5(e))return e=E3(e),e.children=null,e}function K4(e){if(!o5(e))return l5(e.type)&&e.children?M8(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&I1(n.default))return n.default()}}function Ye(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Ye(l5(n.type)&&K4(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function D8(e,t=!1,n){let l=[],o=0;for(let r=0;r1)for(let r=0;rKe(y,t&&(v1(t)?t[k]:t),n,l,o));return}if(re(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Ke(e,t,n,l.component.subTree);return}const r=l.shapeFlag&4?i5(l.component):l.el,s=o?null:r,{i:a,r:i}=e,c=t&&t.r,d=a.refs===W1?a.refs={}:a.refs,u=a.setupState,A=R1(u),m=u===W1?H7:y=>o6(d,y)?!1:N1(A,y),p=(y,k)=>!(k&&o6(d,k));if(c!=null&&c!==i){if(r6(t),T1(c))d[c]=null,m(c)&&(u[c]=null);else if(n2(c)){const y=t;p(c,y.k)&&(c.value=null),y.k&&(d[y.k]=null)}}if(I1(i))d4(i,a,12,[s,d]);else{const y=T1(i),k=n2(i);if(y||k){const F=()=>{if(e.f){const M=y?m(i)?u[i]:d[i]:p()||!e.k?i.value:d[e.k];if(o)v1(M)&&bt(M,r);else if(v1(M))M.includes(r)||M.push(r);else if(y)d[i]=[r],m(i)&&(u[i]=d[i]);else{const E=[r];p(i,e.k)&&(i.value=E),e.k&&(d[e.k]=E)}}else y?(d[i]=s,m(i)&&(u[i]=s)):k&&(p(i,e.k)&&(i.value=s),e.k&&(d[e.k]=s))};if(s){const M=()=>{F(),G4.delete(e)};M.id=-1,G4.set(e,M),m2(M,n)}else r6(e),F()}}}function r6(e){const t=G4.get(e);t&&(t.flags|=8,G4.delete(e))}q4().requestIdleCallback;q4().cancelIdleCallback;const re=e=>!!e.type.__asyncLoader,o5=e=>e.type.__isKeepAlive;function Bl(e,t){F8(e,"a",t)}function Sl(e,t){F8(e,"da",t)}function F8(e,t,n=h2){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(r5(t,l,n),n){let o=n.parent;for(;o&&o.parent;)o5(o.parent.vnode)&&Rl(l,t,n,o),o=o.parent}}function Rl(e,t,n,l){const o=r5(t,e,l,!0);f4(()=>{bt(l[t],o)},n)}function r5(e,t,n=h2,l=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{u3();const a=A4(n),i=D2(t,n,e,s);return a(),d3(),i});return l?o.unshift(r):o.push(r),r}}const p3=e=>(t,n=h2)=>{(!je||e==="sp")&&r5(e,(...l)=>t(...l),n)},Ql=p3("bm"),d2=p3("m"),Nl=p3("bu"),Kl=p3("u"),Ft=p3("bum"),f4=p3("um"),Gl=p3("sp"),Ol=p3("rtg"),$l=p3("rtc");function Wl(e,t=h2){r5("ec",e,t)}const B8="components";function Ve(e,t){return R8(B8,e,!0,t)||e}const S8=Symbol.for("v-ndc");function k2(e){return T1(e)?R8(B8,e,!1)||e:e||S8}function R8(e,t,n=!0,l=!1){const o=i2||h2;if(o){const r=o.type;{const a=Io(r,!1);if(a&&(a===t||a===b2(t)||a===X4(b2(t))))return r}const s=s6(o[e]||r[e],t)||s6(o.appContext[e],t);return!s&&l?r:s}}function s6(e,t){return e&&(e[t]||e[b2(t)]||e[X4(b2(t))])}function _1(e,t,n,l){let o;const r=n,s=v1(e);if(s||T1(e)){const a=s&&V3(e);let i=!1,c=!1;a&&(i=!E2(e),c=f3(e),e=e5(e)),o=new Array(e.length);for(let d=0,u=e.length;dt(a,i,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let i=0,c=a.length;i{const r=l.fn(...o);return r&&(r.key=l.key),r}:l.fn)}return e}function K1(e,t,n,l,o,r){if(n==null&&(n={}),i2.ce||i2.parent&&re(i2.parent)&&i2.parent.ce){const c=n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),h(),G(n1,null,[I("slot",c,l&&l())],d?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const a=c3.length;h();let i;try{const c=s&&Q8(s(n)),d=n.key||r||c&&c.key;i=G(n1,{key:(d&&!G2(d)?d:`_${t}`)+(!c&&l?"_fb":"")},c||(l?l():[]),c&&e._===1?64:-2)}catch(c){for(let d=c3.length;d>a;d--)Qt();throw c}finally{s&&s._c&&(s._d=!0)}return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),i}function Q8(e){return e.some(t=>Je(t)?!(t.type===A2||t.type===n1&&!Q8(t.children)):!0)?e:null}const tt=e=>e?t0(e)?i5(e):tt(e.parent):null,Ge=r2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>tt(e.parent),$root:e=>tt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>K8(e),$forceUpdate:e=>e.f||(e.f=()=>{Zt(e.update)}),$nextTick:e=>e.n||(e.n=g8.bind(e.proxy)),$watch:e=>xl.bind(e)}),_5=(e,t)=>e!==W1&&!e.__isScriptSetup&&N1(e,t),Ll={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:r,accessCache:s,type:a,appContext:i}=e;if(t[0]!=="$"){const A=s[t];if(A!==void 0)switch(A){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(_5(l,t))return s[t]=1,l[t];if(o!==W1&&N1(o,t))return s[t]=2,o[t];if(N1(r,t))return s[t]=3,r[t];if(n!==W1&&N1(n,t))return s[t]=4,n[t];nt&&(s[t]=0)}}const c=Ge[t];let d,u;if(c)return t==="$attrs"&&f2(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==W1&&N1(n,t))return s[t]=4,n[t];if(u=i.config.globalProperties,N1(u,t))return u[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:r}=e;return _5(o,t)?(o[t]=n,!0):l!==W1&&N1(l,t)?(l[t]=n,!0):N1(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:r,type:s}},a){let i;return!!(n[a]||e!==W1&&a[0]!=="$"&&N1(e,a)||_5(t,a)||N1(r,a)||N1(l,a)||N1(Ge,a)||N1(o.config.globalProperties,a)||(i=s.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N1(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function i6(e){return v1(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let nt=!0;function Pl(e){const t=K8(e),n=e.proxy,l=e.ctx;nt=!1,t.beforeCreate&&c6(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:i,inject:c,created:d,beforeMount:u,mounted:A,beforeUpdate:m,updated:p,activated:y,deactivated:k,beforeDestroy:F,beforeUnmount:M,destroyed:E,unmounted:_,render:R,renderTracked:$,renderTriggered:D,errorCaptured:x,serverPrefetch:Q,expose:B,inheritAttrs:X,components:Y,directives:m1,filters:w1}=t;if(c&&Hl(c,l,null),s)for(const b1 in s){const y1=s[b1];I1(y1)&&(l[b1]=y1.bind(n))}if(o){const b1=o.call(n,n);G1(b1)&&(e.data=t5(b1))}if(nt=!0,r)for(const b1 in r){const y1=r[b1],k1=I1(y1)?y1.bind(n,n):I1(y1.get)?y1.get.bind(n,n):z2,c1=!I1(y1)&&I1(y1.set)?y1.set.bind(n):z2,L1=t1({get:k1,set:c1});Object.defineProperty(l,b1,{enumerable:!0,configurable:!0,get:()=>L1.value,set:S1=>L1.value=S1})}if(a)for(const b1 in a)N8(a[b1],l,n,b1);if(i){const b1=I1(i)?i.call(n):i;Reflect.ownKeys(b1).forEach(y1=>{Z4(y1,b1[y1])})}d&&c6(d,e,"c");function l1(b1,y1){v1(y1)?y1.forEach(k1=>b1(k1.bind(n))):y1&&b1(y1.bind(n))}if(l1(Ql,u),l1(d2,A),l1(Nl,m),l1(Kl,p),l1(Bl,y),l1(Sl,k),l1(Wl,x),l1($l,$),l1(Ol,D),l1(Ft,M),l1(f4,_),l1(Gl,Q),v1(B))if(B.length){const b1=e.exposed||(e.exposed={});B.forEach(y1=>{Object.defineProperty(b1,y1,{get:()=>n[y1],set:k1=>n[y1]=k1,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===z2&&(e.render=R),X!=null&&(e.inheritAttrs=X),Y&&(e.components=Y),m1&&(e.directives=m1),Q&&Z8(e)}function Hl(e,t,n=z2){v1(e)&&(e=lt(e));for(const l in e){const o=e[l];let r;G1(o)?"default"in o?r=K2(o.from||l,o.default,!0):r=K2(o.from||l):r=K2(o),n2(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[l]=r}}function c6(e,t,n){D2(v1(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function N8(e,t,n,l){let o=l.includes(".")?w8(n,l):()=>n[l];if(T1(e)){const r=t[e];I1(r)&&t2(o,r)}else if(I1(e))t2(o,e.bind(n));else if(G1(e))if(v1(e))e.forEach(r=>N8(r,t,n,l));else{const r=I1(e.handler)?e.handler.bind(n):t[e.handler];I1(r)&&t2(o,r,e)}}function K8(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let i;return a?i=a:!o.length&&!n&&!l?i=t:(i={},o.length&&o.forEach(c=>O4(i,c,s,!0)),O4(i,t,s)),G1(t)&&r.set(t,i),i}function O4(e,t,n,l=!1){const{mixins:o,extends:r}=t;r&&O4(e,r,n,!0),o&&o.forEach(s=>O4(e,s,n,!0));for(const s in t)if(!(l&&s==="expose")){const a=Tl[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Tl={data:u6,props:d6,emits:d6,methods:Fe,computed:Fe,beforeCreate:p2,created:p2,beforeMount:p2,mounted:p2,beforeUpdate:p2,updated:p2,beforeDestroy:p2,beforeUnmount:p2,destroyed:p2,unmounted:p2,activated:p2,deactivated:p2,errorCaptured:p2,serverPrefetch:p2,components:Fe,directives:Fe,watch:Vl,provide:u6,inject:Yl};function u6(e,t){return t?e?function(){return r2(I1(e)?e.call(this,this):e,I1(t)?t.call(this,this):t)}:t:e}function Yl(e,t){return Fe(lt(e),lt(t))}function lt(e){if(v1(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${b2(t)}Modifiers`]||e[`${Z3(t)}Modifiers`];function jl(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||W1;let o=n;const r=t.startsWith("update:"),s=r&&zl(l,t.slice(7));s&&(s.trim&&(o=n.map(d=>T1(d)?d.trim():d)),s.number&&(o=o.map(Ct)));let a,i=l[a=y5(t)]||l[a=y5(b2(t))];!i&&r&&(i=l[a=y5(Z3(t))]),i&&D2(i,e,6,o);const c=l[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,D2(c,e,6,o)}}const Xl=new WeakMap;function O8(e,t,n=!1){const l=n?Xl:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!I1(e)){const i=c=>{const d=O8(c,t,!0);d&&(a=!0,r2(s,d))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!r&&!a?(G1(e)&&l.set(e,null),null):(v1(r)?r.forEach(i=>s[i]=null):r2(s,r),G1(e)&&l.set(e,s),s)}function s5(e,t){return!e||!J4(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),N1(e,t[0].toLowerCase()+t.slice(1))||N1(e,Z3(t))||N1(e,t))}function f6(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:i,render:c,renderCache:d,props:u,data:A,setupState:m,ctx:p,inheritAttrs:y}=e,k=N4(e);let F,M;try{if(n.shapeFlag&4){const _=o||l,R=_;F=Y2(c.call(R,_,d,u,m,A,p)),M=a}else{const _=t;F=Y2(_.length>1?_(u,{attrs:a,slots:s,emit:i}):_(u,null)),M=t.props?a:ql(a)}}catch(_){c3.length=0,n5(_,e,1),F=I(A2)}let E=F;if(M&&y!==!1){const _=Object.keys(M),{shapeFlag:R}=E;_.length&&R&7&&(r&&_.some(z4)&&(M=eo(M,r)),E=E3(E,M,!1,!0))}if(n.dirs&&(E=E3(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition){const _=l5(E.type)&&K4(E)||E;Ye(_,n.transition)}return F=E,N4(k),F}const ql=e=>{let t;for(const n in e)(n==="class"||n==="style"||J4(n))&&((t||(t={}))[n]=e[n]);return t},eo=(e,t)=>{const n={};for(const l in e)(!z4(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function to(e,t,n){const{props:l,children:o,component:r}=e,{props:s,children:a,patchFlag:i}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return l?A6(l,s,c):!!s;if(i&8){const d=t.dynamicProps;for(let u=0;uObject.create(W8),P8=e=>Object.getPrototypeOf(e)===W8;function lo(e,t,n,l=!1){const o={},r=L8();e.propsDefaults=Object.create(null),H8(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=l?o:A8(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function oo(e,t,n,l){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=R1(o),[i]=e.propsOptions;let c=!1;if((l||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let u=0;u{i=!0;const[A,m]=T8(u,t,!0);r2(s,A),m&&a.push(...m)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!i)return G1(e)&&l.set(e,le),le;if(v1(r))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",St=e=>v1(e)?e.map(Y2):[Y2(e)],so=(e,t,n)=>{if(t._n)return t;const l=w((...o)=>St(t(...o)),n);return l._c=!1,l},Y8=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Bt(o))continue;const r=e[o];if(I1(r))t[o]=so(o,r,l);else if(r!=null){const s=St(r);t[o]=()=>s}}},V8=(e,t)=>{const n=St(t);e.slots.default=()=>n},U8=(e,t,n)=>{for(const l in t)(n||!Bt(l))&&(e[l]=t[l])},ao=(e,t,n)=>{const l=e.slots=L8();if(e.vnode.shapeFlag&32){const o=t._;o?(U8(l,t,n),n&&U7(l,"_",o,!0)):Y8(t,l)}else t&&V8(e,t)},io=(e,t,n)=>{const{vnode:l,slots:o}=e;let r=!0,s=W1;if(l.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:U8(o,t,n):(r=!t.$stable,Y8(t,o)),s=t}else t&&(V8(e,t),s={default:1});if(r)for(const a in o)!Bt(a)&&s[a]==null&&delete o[a]},m2=ho;function co(e){return uo(e)}function uo(e,t){const n=q4();n.__VUE__=!0;const{insert:l,remove:o,patchProp:r,createElement:s,createText:a,createComment:i,setText:c,setElementText:d,parentNode:u,nextSibling:A,setScopeId:m=z2,insertStaticContent:p}=e,y=(g,v,Z,L=null,T=null,W=null,a1=void 0,e1=null,j=!!v.dynamicChildren)=>{if(g===v)return;g&&!L3(g,v)&&(L=S(g),S1(g,T,W,!0),g=null),v.patchFlag===-2&&(j=!1,v.dynamicChildren=null);const{type:V,ref:g1,shapeFlag:i1}=v;switch(V){case a5:k(g,v,Z,L);break;case A2:F(g,v,Z,L);break;case F4:g==null&&M(v,Z,L,a1);break;case n1:Y(g,v,Z,L,T,W,a1,e1,j);break;default:i1&1?R(g,v,Z,L,T,W,a1,e1,j):i1&6?m1(g,v,Z,L,T,W,a1,e1,j):(i1&64||i1&128)&&V.process(g,v,Z,L,T,W,a1,e1,j,A1)}g1!=null&&T?Ke(g1,g&&g.ref,W,v||g,!v):g1==null&&g&&g.ref!=null&&Ke(g.ref,null,W,g,!0)},k=(g,v,Z,L)=>{if(g==null)l(v.el=a(v.children),Z,L);else{const T=v.el=g.el;v.children!==g.children&&c(T,v.children)}},F=(g,v,Z,L)=>{g==null?l(v.el=i(v.children||""),Z,L):v.el=g.el},M=(g,v,Z,L)=>{[g.el,g.anchor]=p(g.children,v,Z,L,g.el,g.anchor)},E=({el:g,anchor:v},Z,L)=>{let T;for(;g&&g!==v;)T=A(g),l(g,Z,L),g=T;l(v,Z,L)},_=({el:g,anchor:v})=>{let Z;for(;g&&g!==v;)Z=A(g),o(g),g=Z;o(v)},R=(g,v,Z,L,T,W,a1,e1,j)=>{if(v.type==="svg"?a1="svg":v.type==="math"&&(a1="mathml"),g==null)$(v,Z,L,T,W,a1,e1,j);else{const V=g.el&&g.el._isVueCE?g.el:null;try{V&&V._beginPatch(),Q(g,v,T,W,a1,e1,j)}finally{V&&V._endPatch()}}},$=(g,v,Z,L,T,W,a1,e1)=>{let j,V;const{props:g1,shapeFlag:i1,transition:K,dirs:O}=g;if(j=g.el=s(g.type,W,g1&&g1.is,g1),i1&8?d(j,g.children):i1&16&&x(g.children,j,null,L,T,I5(g,W),a1,e1),O&&S3(g,null,L,"created"),D(j,g,g.scopeId,a1,L),g1){for(const H in g1)H!=="value"&&!Se(H)&&r(j,H,null,g1[H],W,L);"value"in g1&&r(j,"value",null,g1.value,W),(V=g1.onVnodeBeforeMount)&&W2(V,L,g)}O&&S3(g,null,L,"beforeMount");const p1=fo(T,K);p1&&K.beforeEnter(j),l(j,v,Z),((V=g1&&g1.onVnodeMounted)||p1||O)&&m2(()=>{try{V&&W2(V,L,g),p1&&K.enter(j),O&&S3(g,null,L,"mounted")}finally{}},T)},D=(g,v,Z,L,T)=>{if(Z&&m(g,Z),L)for(let W=0;W{for(let V=j;V{const e1=v.el=g.el;let{patchFlag:j,dynamicChildren:V,dirs:g1}=v;j|=g.patchFlag&16;const i1=g.props||W1,K=v.props||W1;let O;if(Z&&R3(Z,!1),(O=K.onVnodeBeforeUpdate)&&W2(O,Z,v,g),g1&&S3(v,g,Z,"beforeUpdate"),Z&&R3(Z,!0),V&&(!g.dynamicChildren||g.dynamicChildren.length!==V.length)&&(j=0,a1=!1,V=null),(i1.innerHTML&&K.innerHTML==null||i1.textContent&&K.textContent==null)&&d(e1,""),V?B(g.dynamicChildren,V,e1,Z,L,I5(v,T),W):a1||y1(g,v,e1,null,Z,L,I5(v,T),W,!1),j>0){if(j&16)X(e1,i1,K,Z,T);else if(j&2&&i1.class!==K.class&&r(e1,"class",null,K.class,T),j&4&&r(e1,"style",i1.style,K.style,T),j&8){const p1=v.dynamicProps;for(let H=0;H{O&&W2(O,Z,v,g),g1&&S3(v,g,Z,"updated")},L)},B=(g,v,Z,L,T,W,a1)=>{for(let e1=0;e1{if(v!==Z){if(v!==W1)for(const W in v)!Se(W)&&!(W in Z)&&r(g,W,v[W],null,T,L);for(const W in Z){if(Se(W))continue;const a1=Z[W],e1=v[W];a1!==e1&&W!=="value"&&r(g,W,e1,a1,T,L)}"value"in Z&&r(g,"value",v.value,Z.value,T)}},Y=(g,v,Z,L,T,W,a1,e1,j)=>{const V=v.el=g?g.el:a(""),g1=v.anchor=g?g.anchor:a("");let{patchFlag:i1,dynamicChildren:K,slotScopeIds:O}=v;O&&(e1=e1?e1.concat(O):O),g==null?(l(V,Z,L),l(g1,Z,L),x(v.children||[],Z,g1,T,W,a1,e1,j)):i1>0&&i1&64&&K&&g.dynamicChildren&&g.dynamicChildren.length===K.length?(B(g.dynamicChildren,K,Z,T,W,a1,e1),(v.key!=null||T&&v===T.subTree)&&Rt(g,v,!0)):y1(g,v,Z,g1,T,W,a1,e1,j)},m1=(g,v,Z,L,T,W,a1,e1,j)=>{v.slotScopeIds=e1,g==null?v.shapeFlag&512?T.ctx.activate(v,Z,L,a1,j):w1(v,Z,L,T,W,a1,j):r1(g,v,j)},w1=(g,v,Z,L,T,W,a1)=>{const e1=g.component=ko(g,L,T);if(o5(g)&&(e1.ctx.renderer=A1),Co(e1,!1,a1),e1.asyncDep){if(T&&T.registerDep(e1,l1,a1),!g.el){const j=e1.subTree=I(A2);F(null,j,v,Z),g.placeholder=j.el}}else l1(e1,g,v,Z,T,W,a1)},r1=(g,v,Z)=>{const L=v.component=g.component;if(to(g,v,Z))if(L.asyncDep&&!L.asyncResolved){b1(L,v,Z);return}else L.next=v,L.update();else v.el=g.el,L.vnode=v},l1=(g,v,Z,L,T,W,a1)=>{const e1=()=>{if(g.isMounted){let{next:i1,bu:K,u:O,parent:p1,vnode:H}=g;{const w2=J8(g);if(w2){i1&&(i1.el=H.el,b1(g,i1,a1)),w2.asyncDep.then(()=>{m2(()=>{g.isUnmounted||V()},T)});return}}let D1=i1,V1;R3(g,!1),i1?(i1.el=H.el,b1(g,i1,a1)):i1=H,K&&D4(K),(V1=i1.props&&i1.props.onVnodeBeforeUpdate)&&W2(V1,p1,i1,H),R3(g,!0);const e2=f6(g),C2=g.subTree;g.subTree=e2,y(C2,e2,u(C2.el),S(C2),g,T,W),i1.el=e2.el,D1===null&&no(g,e2.el),O&&m2(O,T),(V1=i1.props&&i1.props.onVnodeUpdated)&&m2(()=>W2(V1,p1,i1,H),T)}else{let i1;const{el:K,props:O}=v,{bm:p1,m:H,parent:D1,root:V1,type:e2}=g,C2=re(v);R3(g,!1),p1&&D4(p1),!C2&&(i1=O&&O.onVnodeBeforeMount)&&W2(i1,D1,v),R3(g,!0);{V1.ce&&V1.ce._hasShadowRoot()&&V1.ce._injectChildStyle(e2,g.parent?g.parent.type:void 0);const w2=g.subTree=f6(g);y(null,w2,Z,L,g,T,W),v.el=w2.el}if(H&&m2(H,T),!C2&&(i1=O&&O.onVnodeMounted)){const w2=v;m2(()=>W2(i1,D1,w2),T)}(v.shapeFlag&256||D1&&re(D1.vnode)&&D1.vnode.shapeFlag&256)&&g.a&&m2(g.a,T),g.isMounted=!0,v=Z=L=null}};g.scope.on();const j=g.effect=new q7(e1);g.scope.off();const V=g.update=j.run.bind(j),g1=g.job=j.runIfDirty.bind(j);g1.i=g,g1.id=g.uid,j.scheduler=()=>Zt(g1),R3(g,!0),V()},b1=(g,v,Z)=>{v.component=g;const L=g.vnode.props;g.vnode=v,g.next=null,oo(g,v.props,L,Z),io(g,v.children,Z),u3(),t6(g),d3()},y1=(g,v,Z,L,T,W,a1,e1,j=!1)=>{const V=g&&g.children,g1=g?g.shapeFlag:0,i1=v.children,{patchFlag:K,shapeFlag:O}=v;if(K>0){if(K&128){c1(V,i1,Z,L,T,W,a1,e1,j);return}else if(K&256){k1(V,i1,Z,L,T,W,a1,e1,j);return}}O&8?(g1&16&&q(V,T,W),i1!==V&&d(Z,i1)):g1&16?O&16?c1(V,i1,Z,L,T,W,a1,e1,j):q(V,T,W,!0):(g1&8&&d(Z,""),O&16&&x(i1,Z,L,T,W,a1,e1,j))},k1=(g,v,Z,L,T,W,a1,e1,j)=>{g=g||le,v=v||le;const V=g.length,g1=v.length,i1=Math.min(V,g1);let K;for(K=0;Kg1?q(g,T,W,!0,!1,i1):x(v,Z,L,T,W,a1,e1,j,i1)},c1=(g,v,Z,L,T,W,a1,e1,j)=>{let V=0;const g1=v.length;let i1=g.length-1,K=g1-1;for(;V<=i1&&V<=K;){const O=g[V],p1=v[V]=j?r3(v[V]):Y2(v[V]);if(L3(O,p1))y(O,p1,Z,null,T,W,a1,e1,j);else break;V++}for(;V<=i1&&V<=K;){const O=g[i1],p1=v[K]=j?r3(v[K]):Y2(v[K]);if(L3(O,p1))y(O,p1,Z,null,T,W,a1,e1,j);else break;i1--,K--}if(V>i1){if(V<=K){const O=K+1,p1=OK)for(;V<=i1;)S1(g[V],T,W,!0),V++;else{const O=V,p1=V,H=new Map;for(V=p1;V<=K;V++){const M1=v[V]=j?r3(v[V]):Y2(v[V]);M1.key!=null&&H.set(M1.key,V)}let D1,V1=0;const e2=K-p1+1;let C2=!1,w2=0;const v3=new Array(e2);for(V=0;V=e2){S1(M1,T,W,!0);continue}let U1;if(M1.key!=null)U1=H.get(M1.key);else for(D1=p1;D1<=K;D1++)if(v3[D1-p1]===0&&L3(M1,v[D1])){U1=D1;break}U1===void 0?S1(M1,T,W,!0):(v3[U1-p1]=V+1,U1>=w2?w2=U1:C2=!0,y(M1,v[U1],Z,null,T,W,a1,e1,j),V1++)}const ye=C2?Ao(v3):le;for(D1=ye.length-1,V=e2-1;V>=0;V--){const M1=p1+V,U1=v[M1],v5=v[M1+1],Jt=M1+1{const{el:W,type:a1,transition:e1,children:j,shapeFlag:V}=g;if(V&6){L1(g.component.subTree,v,Z,L);return}if(V&128){g.suspense.move(v,Z,L);return}if(V&64){a1.move(g,v,Z,A1);return}if(a1===n1){l(W,v,Z);for(let i1=0;i1e1.enter(W),T));else{const{leave:i1,delayLeave:K,afterLeave:O}=e1,p1=()=>{g.ctx.isUnmounted?o(W):l(W,v,Z)},H=()=>{const D1=W._isLeaving||!!W[I2];W._isLeaving&&W[I2](!0),e1.persisted&&!D1?p1():i1(W,()=>{p1(),O&&O()})};K?K(W,p1,H):H()}else l(W,v,Z)},S1=(g,v,Z,L=!1,T=!1)=>{const{type:W,props:a1,ref:e1,children:j,dynamicChildren:V,shapeFlag:g1,patchFlag:i1,dirs:K,cacheIndex:O,memo:p1}=g;if(i1===-2&&(T=!1),e1!=null&&(u3(),Ke(e1,null,Z,g,!0),d3()),O!=null&&(v.renderCache[O]=void 0),g1&256){v.ctx.deactivate(g);return}const H=g1&1&&K,D1=!re(g);let V1;if(D1&&(V1=a1&&a1.onVnodeBeforeUnmount)&&W2(V1,v,g),g1&6)s1(g.component,Z,L);else{if(g1&128){g.suspense.unmount(Z,L);return}H&&S3(g,null,v,"beforeUnmount"),g1&64?g.type.remove(g,v,Z,A1,L):V&&!V.hasOnce&&(W!==n1||i1>0&&i1&64)?q(V,v,Z,!1,!0):(W===n1&&i1&384||!T&&g1&16)&&q(j,v,Z),L&&Y1(g)}const e2=p1!=null&&O==null;(D1&&(V1=a1&&a1.onVnodeUnmounted)||H||e2)&&m2(()=>{V1&&W2(V1,v,g),H&&S3(g,null,v,"unmounted"),e2&&(g.el=null)},Z)},Y1=g=>{const{type:v,el:Z,anchor:L,transition:T}=g;if(v===n1){q1(Z,L);return}if(v===F4){_(g);return}const W=()=>{o(Z),T&&!T.persisted&&T.afterLeave&&T.afterLeave()};if(g.shapeFlag&1&&T&&!T.persisted){const{leave:a1,delayLeave:e1}=T,j=()=>a1(Z,W);e1?e1(g.el,W,j):j()}else W()},q1=(g,v)=>{let Z;for(;g!==v;)Z=A(g),o(g),g=Z;o(v)},s1=(g,v,Z)=>{const{bum:L,scope:T,job:W,subTree:a1,um:e1,m:j,a:V}=g;p6(j),p6(V),L&&D4(L),T.stop(),W&&(W.flags|=8,S1(a1,g,v,Z)),e1&&m2(e1,v),m2(()=>{g.isUnmounted=!0},v)},q=(g,v,Z,L=!1,T=!1,W=0)=>{for(let a1=W;a1{if(g.shapeFlag&6)return S(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const v=A(g.anchor||g.el),Z=v&&v[x8];return Z?A(Z):v};let o1=!1;const J=(g,v,Z)=>{let L;g==null?v._vnode&&(S1(v._vnode,null,null,!0),L=v._vnode.component):y(v._vnode||null,g,v,null,null,null,Z),v._vnode=g,o1||(o1=!0,t6(L),y8(),o1=!1)},A1={p:y,um:S1,m:L1,r:Y1,mt:w1,mc:x,pc:y1,pbc:B,n:S,o:e};return{render:J,hydrate:void 0,createApp:Jl(J)}}function I5({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function R3({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function fo(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rt(e,t,n=!1){const l=e.children,o=t.children;if(v1(l)&&v1(o))for(let r=0;r>1,e[n[a]]0&&(t[l]=n[r-1]),n[r]=l)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function J8(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:J8(t)}function p6(e){if(e)for(let t=0;te.__isSuspense;function ho(e,t){t&&t.pendingBranch?v1(e)?t.effects.push(...e):t.effects.push(e):kl(e)}const n1=Symbol.for("v-fgt"),a5=Symbol.for("v-txt"),A2=Symbol.for("v-cmt"),F4=Symbol.for("v-stc"),c3=[];let x2=null;function h(e=!1){c3.push(x2=e?null:[])}function Qt(){c3.pop(),x2=c3[c3.length-1]||null}let Ue=1;function $4(e,t=!1){Ue+=e,e<0&&x2&&t&&(x2.hasOnce=!0)}function X8(e){return e.dynamicChildren=Ue>0?x2||le:null,Qt(),Ue>0&&x2&&x2.push(e),e}function C(e,t,n,l,o,r){return X8(b(e,t,n,l,o,r,!0))}function G(e,t,n,l,o){return X8(I(e,t,n,l,o,!0))}function Je(e){return e?e.__v_isVNode===!0:!1}function L3(e,t){return e.type===t.type&&e.key===t.key}const q8=({key:e})=>e??null,B4=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?T1(e)||n2(e)||I1(e)?{i:i2,r:e,k:t,f:!!n}:e:null);function b(e,t=null,n=null,l=0,o=null,r=e===n1?0:1,s=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&q8(t),ref:t&&B4(t),scopeId:k8,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:i2};return a?(W4(i,n),r&128&&e.normalize(i)):n&&(i.shapeFlag|=T1(n)?8:16),Ue>0&&!s&&x2&&(i.patchFlag>0||r&6)&&i.patchFlag!==32&&x2.push(i),i}const I=po;function po(e,t=null,n=null,l=0,o=null,r=!1){if((!e||e===S8)&&(e=A2),Je(e)){const a=E3(e,t,!0);return n&&W4(a,n),Ue>0&&!r&&x2&&(a.shapeFlag&6?x2[x2.indexOf(e)]=a:x2.push(a)),a.patchFlag=-2,a}if(Mo(e)&&(e=e.__vccOpts),t){t=mo(t);let{class:a,style:i}=t;a&&!T1(a)&&(t.class=f1(a)),G1(i)&&(Dt(i)&&!v1(i)&&(i=r2({},i)),t.style=S2(i))}const s=T1(e)?1:j8(e)?128:l5(e)?64:G1(e)?4:I1(e)?2:0;return b(e,t,n,l,o,s,r,!0)}function mo(e){return e?Dt(e)||P8(e)?r2({},e):e:null}function E3(e,t,n=!1,l=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:i}=e,c=t?vo(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&q8(c),ref:t&&t.ref?n&&r?v1(r)?r.concat(B4(t)):[r,B4(t)]:B4(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==n1?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&E3(e.ssContent),ssFallback:e.ssFallback&&E3(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&l&&Ye(d,i.clone(d)),d}function U(e=" ",t=0){return I(a5,null,e,t)}function go(e,t){const n=I(F4,null,e);return n.staticCount=t,n}function P(e="",t=!1){return t?(h(),G(A2,null,e)):I(A2,null,e)}function Y2(e){return e==null||typeof e=="boolean"?I(A2):v1(e)?I(n1,null,e.slice()):Je(e)?r3(e):I(a5,null,String(e))}function r3(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:E3(e)}function W4(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(v1(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),W4(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!P8(t)?t._ctx=i2:o===3&&i2&&(i2.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(I1(t)){if(l&65){W4(e,{default:t});return}t={default:t,_ctx:i2},n=32}else t=String(t),l&64?(n=16,t=[U(t)]):n=8;e.children=t,e.shapeFlag|=n}function vo(...e){const t={};for(let n=0;nh2||i2;let L4,ze;{const e=q4(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};L4=t("__VUE_INSTANCE_SETTERS__",n=>h2=n),ze=t("__VUE_SSR_SETTERS__",n=>je=n)}const A4=e=>{const t=h2;return L4(e),e.scope.on(),()=>{e.scope.off(),L4(t)}},m6=()=>{h2&&h2.scope.off(),L4(null)};function t0(e){return e.vnode.shapeFlag&4}let je=!1;function Co(e,t=!1,n=!1){t&&ze(t);const{props:l,children:o}=e.vnode,r=t0(e);lo(e,l,r,t),ao(e,o,n||t);const s=r?wo(e,t):void 0;return t&&ze(!1),s}function wo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ll);const{setup:l}=n;if(l){u3();const o=e.setupContext=l.length>1?_o(e):null,r=A4(e),s=d4(l,e,0,[e.props,o]),a=T7(s);if(d3(),r(),(a||e.sp)&&!re(e)&&Z8(e),a){if(s.then(m6,m6),t)return s.then(i=>{ze(!0);try{g6(e,i,t)}finally{ze(!1)}}).catch(i=>{n5(i,e,0)});e.asyncDep=s}else g6(e,s)}else n0(e)}function g6(e,t,n){I1(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G1(t)&&(e.setupState=p8(t)),n0(e)}function n0(e,t,n){const l=e.type;e.render||(e.render=l.render||z2);{const o=A4(e);u3();try{Pl(e)}finally{d3(),o()}}}const xo={get(e,t){return f2(e,"get",""),e[t]}};function _o(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,xo),slots:e.slots,emit:e.emit,expose:t}}function i5(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(p8(dl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Ge)return Ge[n](e)},has(t,n){return n in t||n in Ge}})):e.proxy}function Io(e,t=!0){return I1(e)?e.displayName||e.name:e.name||t&&e.__name}function Mo(e){return I1(e)&&"__vccOpts"in e}const t1=(e,t)=>ml(e,t,je);function A3(e,t,n){try{$4(-1);const l=arguments.length;return l===2?G1(t)&&!v1(t)?Je(t)?I(e,null,[t]):I(e,t):I(e,null,t):(l>3?n=Array.prototype.slice.call(arguments,2):l===3&&Je(n)&&(n=[n]),I(e,t,n))}finally{$4(1)}}const Eo="3.5.42";/** +**/function d4(e,t,n,l){try{return l?e(...l):e()}catch(o){t5(o,t,n)}}function Z2(e,t,n,l){if(I1(e)){const o=d4(e,t,n,l);return o&&Y7(o)&&o.catch(r=>{t5(r,t,n)}),o}if(g1(e)){const o=[];for(let r=0;r>>1,o=y2[l],r=Ye(o);r=Ye(n)?y2.push(e):y2.splice(Cl(t),0,e),e.flags|=1,y8()}}function y8(){R4||(R4=g8.then(k8))}function wl(e){if(!g1(e))x3&&e.id===-1?x3.splice(ne+1,0,e):e.flags&1||(re.push(e),e.flags|=1);else for(let t=0;tYe(n)-Ye(l));if(re.length=0,x3){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function k8(e){try{for(H2=0;H2{l._d&&O4(-1);const r=Q4(t),s=u3.length;let a;try{a=e(...o)}finally{for(let i=u3.length;i>s;i--)Qt();Q4(r),l._d&&O4(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Ke(e,t){if(i2===null)return e;const n=a5(i2),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&I1(t)?t.call(l&&l.proxy):t}}const xl=Symbol.for("v-scx"),_l=()=>G2(xl);function q1(e,t,n){return w8(e,t,n)}function w8(e,t,n=L1){const{immediate:l,deep:o,flush:r,once:s}=n,a=r2({},n),i=t&&l||!t&&r!=="post";let c;if(je){if(r==="sync"){const p=_l();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!i){const p=()=>{};return p.stop=j2,p.resume=j2,p.pause=j2,p}}const d=h2;a.call=(p,m,k)=>Z2(p,d,m,k);let u=!1;r==="post"?a.scheduler=p=>{m2(p,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(p,m)=>{m?p():Zt(p)}),a.augmentJob=p=>{t&&(p.flags|=4),u&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const A=bl(e,t,a);return je&&(c?c.push(A):i&&A()),A}function Il(e,t,n){const l=this.proxy,o=Y1(e)?e.includes(".")?x8(l,e):()=>l[e]:e.bind(l,l);let r;I1(t)?r=t:(r=t.handler,n=t);const s=f4(this),a=w8(o,r.bind(l),n);return s(),a}function x8(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,W3=e=>e&&(e.disabled||e.disabled===""),Ml=e=>e&&(e.defer||e.defer===""),l6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,o6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,z5=(e,t)=>{const n=e&&e.to;return Y1(n)?t?t(n):null:n},El={name:"Teleport",__isTeleport:!0,process(e,t,n,l,o,r,s,a,i,c){const{mc:d,pc:u,pbc:A,o:{insert:p,querySelector:m,createText:k,createComment:D,parentNode:F}}=c,C=W3(t.props);let{dynamicChildren:I}=t;const v=(Z,_,R)=>{Z.shapeFlag&16&&d(Z.children,_,R,o,r,s,a,i)},S=(Z=t)=>{const _=W3(Z.props),R=Z.target=z5(Z.props,m),B=j5(R,Z,k,p);R&&(s!=="svg"&&l6(R)?s="svg":s!=="mathml"&&o6(R)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(R),_||(v(Z,R,B),Fe(Z,!1)))},L=Z=>{const _=()=>{if(w3.get(Z)===_){if(w3.delete(Z),W3(Z.props)){const R=F(Z.el)||n;v(Z,R,Z.anchor),Fe(Z,!0)}S(Z)}};w3.set(Z,_),m2(_,r)};if(e==null){const Z=t.el=k(""),_=t.anchor=k("");if(p(Z,n,l),p(_,n,l),Ml(t.props)||r&&r.pendingBranch){L(t);return}C&&(v(t,n,_),Fe(t,!0)),S()}else{t.el=e.el;const Z=t.anchor=e.anchor,_=w3.get(e);if(_){_.flags|=8,w3.delete(e),L(t);return}t.targetStart=e.targetStart;const R=t.target=e.target,B=t.targetAnchor=e.targetAnchor,q=W3(e.props),V=q?n:R,m1=q?Z:B;if(s==="svg"||l6(R)?s="svg":(s==="mathml"||o6(R))&&(s="mathml"),I?(A(e.dynamicChildren,I,V,o,r,s,a),Rt(e,t,!0)):i||u(e,t,V,m1,o,r,s,a,!1),C)q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):v4(t,n,Z,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const y1=z5(t.props,m);y1&&(t.target=y1,v4(t,y1,null,c,0))}else q&&v4(t,R,B,c,1);Fe(t,C)}},remove(e,t,n,{um:l,o:{remove:o}},r){const{shapeFlag:s,children:a,anchor:i,targetStart:c,targetAnchor:d,target:u,props:A}=e,p=W3(A),m=r||!p,k=w3.get(e);if(k&&(k.flags|=8,w3.delete(e)),u&&(o(c),o(d)),r&&o(i),!k&&(p||u)&&s&16)for(let D=0;D{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const I2=[Function,Array],I8={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:I2,onEnter:I2,onAfterEnter:I2,onEnterCancelled:I2,onBeforeLeave:I2,onLeave:I2,onAfterLeave:I2,onLeaveCancelled:I2,onBeforeAppear:I2,onAppear:I2,onAfterAppear:I2,onAppearCancelled:I2},M8=e=>{const t=e.subTree;return t.component?M8(t.component):t},Bl={name:"BaseTransition",props:I8,setup(e,{slots:t}){const n=t0(),l=Fl();return()=>{const o=t.default&&Z8(t.default(),!0),r=o&&o.length?E8(o):n.subTree?W():void 0;if(!r)return;const s=R1(e),{mode:a}=s;if(l.isLeaving)return C5(r);const i=N4(r);if(!i)return C5(r);let c=X5(i,s,l,n,u=>c=u);i.type!==A2&&Ve(i,c);let d=n.subTree&&N4(n.subTree);if(d&&d.type!==A2&&!L3(d,i)&&M8(n).type!==A2){let u=X5(d,s,l,n);if(Ve(d,u),a==="out-in"&&i.type!==A2)return l.isLeaving=!0,u.afterLeave=()=>{l.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},C5(r);a==="in-out"&&i.type!==A2?u.delayLeave=(A,p,m)=>{const k=D8(l,d);k[String(d.key)]=d,A[E2]=()=>{p(),A[E2]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function E8(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==A2){t=n;break}}return t}const Sl=Bl;function D8(e,t){const{leavingVNodes:n}=e;let l=n.get(t.type);return l||(l=Object.create(null),n.set(t.type,l)),l}function X5(e,t,n,l,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:A,onLeave:p,onAfterLeave:m,onLeaveCancelled:k,onBeforeAppear:D,onAppear:F,onAfterAppear:C,onAppearCancelled:I}=t,v=String(e.key),S=D8(n,e),L=(R,B)=>{R&&Z2(R,l,9,B)},Z=(R,B)=>{const q=B[1];L(R,B),g1(R)?R.every(V=>V.length<=1)&&q():R.length<=1&&q()},_={mode:s,persisted:a,beforeEnter(R){let B=i;if(!n.isMounted)if(r)B=D||i;else return;R[E2]&&R[E2](!0);const q=S[v];q&&L3(e,q)&&q.el[E2]&&q.el[E2](),L(B,[R])},enter(R){if(S[v]===e)return;let B=c,q=d,V=u;if(!n.isMounted)if(r)B=F||c,q=C||d,V=I||u;else return;let m1=!1;R[Ce]=l1=>{m1||(m1=!0,l1?L(V,[R]):L(q,[R]),_.delayedLeave&&_.delayedLeave(),R[Ce]=void 0)};const y1=R[Ce].bind(null,!1);B?Z(B,[R,y1]):y1()},leave(R,B){const q=String(e.key);if(R[Ce]&&R[Ce](!0),n.isUnmounting)return B();L(A,[R]);let V=!1;R[E2]=y1=>{V||(V=!0,B(),y1?L(k,[R]):L(m,[R]),R[E2]=void 0,S[q]===e&&delete S[q])};const m1=R[E2].bind(null,!1);S[q]=e,p?Z(p,[R,m1]):m1()},clone(R){const B=X5(R,t,n,l,o);return o&&o(B),B}};return _}function C5(e){if(l5(e))return e=D3(e),e.children=null,e}function N4(e){if(!l5(e))return n5(e.type)&&e.children?E8(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&I1(n.default))return n.default()}}function Ve(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Ve(n5(n.type)&&N4(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Z8(e,t=!1,n){let l=[],o=0;for(let r=0;r1)for(let r=0;rGe(k,t&&(g1(t)?t[D]:t),n,l,o));return}if(se(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Ge(e,t,n,l.component.subTree);return}const r=l.shapeFlag&4?a5(l.component):l.el,s=o?null:r,{i:a,r:i}=e,c=t&&t.r,d=a.refs===L1?a.refs={}:a.refs,u=a.setupState,A=R1(u),p=u===L1?H7:k=>r6(d,k)?!1:N1(A,k),m=(k,D)=>!(D&&r6(d,D));if(c!=null&&c!==i){if(s6(t),Y1(c))d[c]=null,p(c)&&(u[c]=null);else if(n2(c)){const k=t;m(c,k.k)&&(c.value=null),k.k&&(d[k.k]=null)}}if(I1(i))d4(i,a,12,[s,d]);else{const k=Y1(i),D=n2(i);if(k||D){const F=()=>{if(e.f){const C=k?p(i)?u[i]:d[i]:m()||!e.k?i.value:d[e.k];if(o)g1(C)&&bt(C,r);else if(g1(C))C.includes(r)||C.push(r);else if(k)d[i]=[r],p(i)&&(u[i]=d[i]);else{const I=[r];m(i,e.k)&&(i.value=I),e.k&&(d[e.k]=I)}}else k?(d[i]=s,p(i)&&(u[i]=s)):D&&(m(i,e.k)&&(i.value=s),e.k&&(d[e.k]=s))};if(s){const C=()=>{F(),K4.delete(e)};C.id=-1,K4.set(e,C),m2(C,n)}else s6(e),F()}}}function s6(e){const t=K4.get(e);t&&(t.flags|=8,K4.delete(e))}X4().requestIdleCallback;X4().cancelIdleCallback;const se=e=>!!e.type.__asyncLoader,l5=e=>e.type.__isKeepAlive;function Rl(e,t){B8(e,"a",t)}function Ql(e,t){B8(e,"da",t)}function B8(e,t,n=h2){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(o5(t,l,n),n){let o=n.parent;for(;o&&o.parent;)l5(o.parent.vnode)&&Nl(l,t,n,o),o=o.parent}}function Nl(e,t,n,l){const o=o5(t,e,l,!0);ge(()=>{bt(l[t],o)},n)}function o5(e,t,n=h2,l=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{d3();const a=f4(n),i=Z2(t,n,e,s);return a(),f3(),i});return l?o.unshift(r):o.push(r),r}}const m3=e=>(t,n=h2)=>{(!je||e==="sp")&&o5(e,(...l)=>t(...l),n)},Kl=m3("bm"),d2=m3("m"),Gl=m3("bu"),Ol=m3("u"),Ft=m3("bum"),ge=m3("um"),$l=m3("sp"),Wl=m3("rtg"),Ll=m3("rtc");function Pl(e,t=h2){o5("ec",e,t)}const S8="components";function q5(e,t){return Q8(S8,e,!0,t)||e}const R8=Symbol.for("v-ndc");function k2(e){return Y1(e)?Q8(S8,e,!1)||e:e||R8}function Q8(e,t,n=!0,l=!1){const o=i2||h2;if(o){const r=o.type;{const a=Eo(r,!1);if(a&&(a===t||a===b2(t)||a===j4(b2(t))))return r}const s=a6(o[e]||r[e],t)||a6(o.appContext[e],t);return!s&&l?r:s}}function a6(e,t){return e&&(e[t]||e[b2(t)]||e[j4(b2(t))])}function _1(e,t,n,l){let o;const r=n,s=g1(e);if(s||Y1(e)){const a=s&&V3(e);let i=!1,c=!1;a&&(i=!D2(e),c=A3(e),e=q4(e)),o=new Array(e.length);for(let d=0,u=e.length;dt(a,i,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let i=0,c=a.length;i{const r=l.fn(...o);return r&&(r.key=l.key),r}:l.fn)}return e}function K1(e,t,n,l,o,r){if(n==null&&(n={}),i2.ce||i2.parent&&se(i2.parent)&&i2.parent.ce){const c=n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),h(),G(n1,null,[M("slot",c,l&&l())],d?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const a=u3.length;h();let i;try{const c=s&&N8(s(n)),d=n.key||r||c&&c.key;i=G(n1,{key:(d&&!O2(d)?d:`_${t}`)+(!c&&l?"_fb":"")},c||(l?l():[]),c&&e._===1?64:-2)}catch(c){for(let d=u3.length;d>a;d--)Qt();throw c}finally{s&&s._c&&(s._d=!0)}return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),i}function N8(e){return e.some(t=>Je(t)?!(t.type===A2||t.type===n1&&!N8(t.children)):!0)?e:null}const et=e=>e?n0(e)?a5(e):et(e.parent):null,Oe=r2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>et(e.parent),$root:e=>et(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>G8(e),$forceUpdate:e=>e.f||(e.f=()=>{Zt(e.update)}),$nextTick:e=>e.n||(e.n=v8.bind(e.proxy)),$watch:e=>Il.bind(e)}),w5=(e,t)=>e!==L1&&!e.__isScriptSetup&&N1(e,t),Tl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:r,accessCache:s,type:a,appContext:i}=e;if(t[0]!=="$"){const A=s[t];if(A!==void 0)switch(A){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(w5(l,t))return s[t]=1,l[t];if(o!==L1&&N1(o,t))return s[t]=2,o[t];if(N1(r,t))return s[t]=3,r[t];if(n!==L1&&N1(n,t))return s[t]=4,n[t];tt&&(s[t]=0)}}const c=Oe[t];let d,u;if(c)return t==="$attrs"&&f2(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==L1&&N1(n,t))return s[t]=4,n[t];if(u=i.config.globalProperties,N1(u,t))return u[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:r}=e;return w5(o,t)?(o[t]=n,!0):l!==L1&&N1(l,t)?(l[t]=n,!0):N1(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:r,type:s}},a){let i;return!!(n[a]||e!==L1&&a[0]!=="$"&&N1(e,a)||w5(t,a)||N1(r,a)||N1(l,a)||N1(Oe,a)||N1(o.config.globalProperties,a)||(i=s.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N1(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function c6(e){return g1(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let tt=!0;function Hl(e){const t=G8(e),n=e.proxy,l=e.ctx;tt=!1,t.beforeCreate&&u6(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:i,inject:c,created:d,beforeMount:u,mounted:A,beforeUpdate:p,updated:m,activated:k,deactivated:D,beforeDestroy:F,beforeUnmount:C,destroyed:I,unmounted:v,render:S,renderTracked:L,renderTriggered:Z,errorCaptured:_,serverPrefetch:R,expose:B,inheritAttrs:q,components:V,directives:m1,filters:y1}=t;if(c&&Yl(c,l,null),s)for(const v1 in s){const C1=s[v1];I1(C1)&&(l[v1]=C1.bind(n))}if(o){const v1=o.call(n,n);G1(v1)&&(e.data=e5(v1))}if(tt=!0,r)for(const v1 in r){const C1=r[v1],k1=I1(C1)?C1.bind(n,n):I1(C1.get)?C1.get.bind(n,n):j2,s1=!I1(C1)&&I1(C1.set)?C1.set.bind(n):j2,O1=t1({get:k1,set:s1});Object.defineProperty(l,v1,{enumerable:!0,configurable:!0,get:()=>O1.value,set:F1=>O1.value=F1})}if(a)for(const v1 in a)K8(a[v1],l,n,v1);if(i){const v1=I1(i)?i.call(n):i;Reflect.ownKeys(v1).forEach(C1=>{D4(C1,v1[C1])})}d&&u6(d,e,"c");function o1(v1,C1){g1(C1)?C1.forEach(k1=>v1(k1.bind(n))):C1&&v1(C1.bind(n))}if(o1(Kl,u),o1(d2,A),o1(Gl,p),o1(Ol,m),o1(Rl,k),o1(Ql,D),o1(Pl,_),o1(Ll,L),o1(Wl,Z),o1(Ft,C),o1(ge,v),o1($l,R),g1(B))if(B.length){const v1=e.exposed||(e.exposed={});B.forEach(C1=>{Object.defineProperty(v1,C1,{get:()=>n[C1],set:k1=>n[C1]=k1,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===j2&&(e.render=S),q!=null&&(e.inheritAttrs=q),V&&(e.components=V),m1&&(e.directives=m1),R&&F8(e)}function Yl(e,t,n=j2){g1(e)&&(e=nt(e));for(const l in e){const o=e[l];let r;G1(o)?"default"in o?r=G2(o.from||l,o.default,!0):r=G2(o.from||l):r=G2(o),n2(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[l]=r}}function u6(e,t,n){Z2(g1(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function K8(e,t,n,l){let o=l.includes(".")?x8(n,l):()=>n[l];if(Y1(e)){const r=t[e];I1(r)&&q1(o,r)}else if(I1(e))q1(o,e.bind(n));else if(G1(e))if(g1(e))e.forEach(r=>K8(r,t,n,l));else{const r=I1(e.handler)?e.handler.bind(n):t[e.handler];I1(r)&&q1(o,r,e)}}function G8(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let i;return a?i=a:!o.length&&!n&&!l?i=t:(i={},o.length&&o.forEach(c=>G4(i,c,s,!0)),G4(i,t,s)),G1(t)&&r.set(t,i),i}function G4(e,t,n,l=!1){const{mixins:o,extends:r}=t;r&&G4(e,r,n,!0),o&&o.forEach(s=>G4(e,s,n,!0));for(const s in t)if(!(l&&s==="expose")){const a=Vl[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Vl={data:d6,props:f6,emits:f6,methods:Be,computed:Be,beforeCreate:p2,created:p2,beforeMount:p2,mounted:p2,beforeUpdate:p2,updated:p2,beforeDestroy:p2,beforeUnmount:p2,destroyed:p2,unmounted:p2,activated:p2,deactivated:p2,errorCaptured:p2,serverPrefetch:p2,components:Be,directives:Be,watch:Jl,provide:d6,inject:Ul};function d6(e,t){return t?e?function(){return r2(I1(e)?e.call(this,this):e,I1(t)?t.call(this,this):t)}:t:e}function Ul(e,t){return Be(nt(e),nt(t))}function nt(e){if(g1(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${b2(t)}Modifiers`]||e[`${F3(t)}Modifiers`];function ql(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||L1;let o=n;const r=t.startsWith("update:"),s=r&&Xl(l,t.slice(7));s&&(s.trim&&(o=n.map(d=>Y1(d)?d.trim():d)),s.number&&(o=o.map(Ct)));let a,i=l[a=g5(t)]||l[a=g5(b2(t))];!i&&r&&(i=l[a=g5(F3(t))]),i&&Z2(i,e,6,o);const c=l[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Z2(c,e,6,o)}}const eo=new WeakMap;function $8(e,t,n=!1){const l=n?eo:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!I1(e)){const i=c=>{const d=$8(c,t,!0);d&&(a=!0,r2(s,d))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!r&&!a?(G1(e)&&l.set(e,null),null):(g1(r)?r.forEach(i=>s[i]=null):r2(s,r),G1(e)&&l.set(e,s),s)}function r5(e,t){return!e||!U4(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),N1(e,t[0].toLowerCase()+t.slice(1))||N1(e,F3(t))||N1(e,t))}function A6(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:i,render:c,renderCache:d,props:u,data:A,setupState:p,ctx:m,inheritAttrs:k}=e,D=Q4(e);let F,C;try{if(n.shapeFlag&4){const v=o||l,S=v;F=V2(c.call(S,v,d,u,p,A,m)),C=a}else{const v=t;F=V2(v.length>1?v(u,{attrs:a,slots:s,emit:i}):v(u,null)),C=t.props?a:to(a)}}catch(v){u3.length=0,t5(v,e,1),F=M(A2)}let I=F;if(C&&k!==!1){const v=Object.keys(C),{shapeFlag:S}=I;v.length&&S&7&&(r&&v.some(J4)&&(C=no(C,r)),I=D3(I,C,!1,!0))}if(n.dirs&&(I=D3(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition){const v=n5(I.type)&&N4(I)||I;Ve(v,n.transition)}return F=I,Q4(D),F}const to=e=>{let t;for(const n in e)(n==="class"||n==="style"||U4(n))&&((t||(t={}))[n]=e[n]);return t},no=(e,t)=>{const n={};for(const l in e)(!J4(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function lo(e,t,n){const{props:l,children:o,component:r}=e,{props:s,children:a,patchFlag:i}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return l?h6(l,s,c):!!s;if(i&8){const d=t.dynamicProps;for(let u=0;uObject.create(L8),T8=e=>Object.getPrototypeOf(e)===L8;function ro(e,t,n,l=!1){const o={},r=P8();e.propsDefaults=Object.create(null),H8(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=l?o:h8(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function so(e,t,n,l){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=R1(o),[i]=e.propsOptions;let c=!1;if((l||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let u=0;u{i=!0;const[A,p]=Y8(u,t,!0);r2(s,A),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!i)return G1(e)&&l.set(e,oe),oe;if(g1(r))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",St=e=>g1(e)?e.map(V2):[V2(e)],io=(e,t,n)=>{if(t._n)return t;const l=x((...o)=>St(t(...o)),n);return l._c=!1,l},V8=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Bt(o))continue;const r=e[o];if(I1(r))t[o]=io(o,r,l);else if(r!=null){const s=St(r);t[o]=()=>s}}},U8=(e,t)=>{const n=St(t);e.slots.default=()=>n},J8=(e,t,n)=>{for(const l in t)(n||!Bt(l))&&(e[l]=t[l])},co=(e,t,n)=>{const l=e.slots=P8();if(e.vnode.shapeFlag&32){const o=t._;o?(J8(l,t,n),n&&J7(l,"_",o,!0)):V8(t,l)}else t&&U8(e,t)},uo=(e,t,n)=>{const{vnode:l,slots:o}=e;let r=!0,s=L1;if(l.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:J8(o,t,n):(r=!t.$stable,V8(t,o)),s=t}else t&&(U8(e,t),s={default:1});if(r)for(const a in o)!Bt(a)&&s[a]==null&&delete o[a]},m2=mo;function fo(e){return Ao(e)}function Ao(e,t){const n=X4();n.__VUE__=!0;const{insert:l,remove:o,patchProp:r,createElement:s,createText:a,createComment:i,setText:c,setElementText:d,parentNode:u,nextSibling:A,setScopeId:p=j2,insertStaticContent:m}=e,k=(g,b,E,P=null,Y=null,T=null,r1=void 0,e1=null,X=!!b.dynamicChildren)=>{if(g===b)return;g&&!L3(g,b)&&(P=$(g),F1(g,Y,T,!0),g=null),b.patchFlag===-2&&(X=!1,b.dynamicChildren=null);const{type:J,ref:p1,shapeFlag:N}=b;switch(J){case s5:D(g,b,E,P);break;case A2:F(g,b,E,P);break;case Z4:g==null&&C(b,E,P,r1);break;case n1:V(g,b,E,P,Y,T,r1,e1,X);break;default:N&1?S(g,b,E,P,Y,T,r1,e1,X):N&6?m1(g,b,E,P,Y,T,r1,e1,X):(N&64||N&128)&&J.process(g,b,E,P,Y,T,r1,e1,X,f1)}p1!=null&&Y?Ge(p1,g&&g.ref,T,b||g,!b):p1==null&&g&&g.ref!=null&&Ge(g.ref,null,T,g,!0)},D=(g,b,E,P)=>{if(g==null)l(b.el=a(b.children),E,P);else{const Y=b.el=g.el;b.children!==g.children&&c(Y,b.children)}},F=(g,b,E,P)=>{g==null?l(b.el=i(b.children||""),E,P):b.el=g.el},C=(g,b,E,P)=>{[g.el,g.anchor]=m(g.children,b,E,P,g.el,g.anchor)},I=({el:g,anchor:b},E,P)=>{let Y;for(;g&&g!==b;)Y=A(g),l(g,E,P),g=Y;l(b,E,P)},v=({el:g,anchor:b})=>{let E;for(;g&&g!==b;)E=A(g),o(g),g=E;o(b)},S=(g,b,E,P,Y,T,r1,e1,X)=>{if(b.type==="svg"?r1="svg":b.type==="math"&&(r1="mathml"),g==null)L(b,E,P,Y,T,r1,e1,X);else{const J=g.el&&g.el._isVueCE?g.el:null;try{J&&J._beginPatch(),R(g,b,Y,T,r1,e1,X)}finally{J&&J._endPatch()}}},L=(g,b,E,P,Y,T,r1,e1)=>{let X,J;const{props:p1,shapeFlag:N,transition:O,dirs:d1}=g;if(X=g.el=s(g.type,T,p1&&p1.is,p1),N&8?d(X,g.children):N&16&&_(g.children,X,null,P,Y,x5(g,T),r1,e1),d1&&S3(g,null,P,"created"),Z(X,g,g.scopeId,r1,P),p1){for(const M1 in p1)M1!=="value"&&!Re(M1)&&r(X,M1,null,p1[M1],T,P);"value"in p1&&r(X,"value",null,p1.value,T),(J=p1.onVnodeBeforeMount)&&L2(J,P,g)}d1&&S3(g,null,P,"beforeMount");const H=ho(Y,O);H&&O.beforeEnter(X),l(X,b,E),((J=p1&&p1.onVnodeMounted)||H||d1)&&m2(()=>{try{J&&L2(J,P,g),H&&O.enter(X),d1&&S3(g,null,P,"mounted")}finally{}},Y)},Z=(g,b,E,P,Y)=>{if(E&&p(g,E),P)for(let T=0;T{for(let J=X;J{const e1=b.el=g.el;let{patchFlag:X,dynamicChildren:J,dirs:p1}=b;X|=g.patchFlag&16;const N=g.props||L1,O=b.props||L1;let d1;if(E&&R3(E,!1),(d1=O.onVnodeBeforeUpdate)&&L2(d1,E,b,g),p1&&S3(b,g,E,"beforeUpdate"),E&&R3(E,!0),J&&(!g.dynamicChildren||g.dynamicChildren.length!==J.length)&&(X=0,r1=!1,J=null),(N.innerHTML&&O.innerHTML==null||N.textContent&&O.textContent==null)&&d(e1,""),J?B(g.dynamicChildren,J,e1,E,P,x5(b,Y),T):r1||C1(g,b,e1,null,E,P,x5(b,Y),T,!1),X>0){if(X&16)q(e1,N,O,E,Y);else if(X&2&&N.class!==O.class&&r(e1,"class",null,O.class,Y),X&4&&r(e1,"style",N.style,O.style,Y),X&8){const H=b.dynamicProps;for(let M1=0;M1{d1&&L2(d1,E,b,g),p1&&S3(b,g,E,"updated")},P)},B=(g,b,E,P,Y,T,r1)=>{for(let e1=0;e1{if(b!==E){if(b!==L1)for(const T in b)!Re(T)&&!(T in E)&&r(g,T,b[T],null,Y,P);for(const T in E){if(Re(T))continue;const r1=E[T],e1=b[T];r1!==e1&&T!=="value"&&r(g,T,e1,r1,Y,P)}"value"in E&&r(g,"value",b.value,E.value,Y)}},V=(g,b,E,P,Y,T,r1,e1,X)=>{const J=b.el=g?g.el:a(""),p1=b.anchor=g?g.anchor:a("");let{patchFlag:N,dynamicChildren:O,slotScopeIds:d1}=b;d1&&(e1=e1?e1.concat(d1):d1),g==null?(l(J,E,P),l(p1,E,P),_(b.children||[],E,p1,Y,T,r1,e1,X)):N>0&&N&64&&O&&g.dynamicChildren&&g.dynamicChildren.length===O.length?(B(g.dynamicChildren,O,E,Y,T,r1,e1),(b.key!=null||Y&&b===Y.subTree)&&Rt(g,b,!0)):C1(g,b,E,p1,Y,T,r1,e1,X)},m1=(g,b,E,P,Y,T,r1,e1,X)=>{b.slotScopeIds=e1,g==null?b.shapeFlag&512?Y.ctx.activate(b,E,P,r1,X):y1(b,E,P,Y,T,r1,X):l1(g,b,X)},y1=(g,b,E,P,Y,T,r1)=>{const e1=g.component=wo(g,P,Y);if(l5(g)&&(e1.ctx.renderer=f1),xo(e1,!1,r1),e1.asyncDep){if(Y&&Y.registerDep(e1,o1,r1),!g.el){const X=e1.subTree=M(A2);F(null,X,b,E),g.placeholder=X.el}}else o1(e1,g,b,E,Y,T,r1)},l1=(g,b,E)=>{const P=b.component=g.component;if(lo(g,b,E))if(P.asyncDep&&!P.asyncResolved){v1(P,b,E);return}else P.next=b,P.update();else b.el=g.el,P.vnode=b},o1=(g,b,E,P,Y,T,r1)=>{const e1=()=>{if(g.isMounted){let{next:N,bu:O,u:d1,parent:H,vnode:M1}=g;{const w2=z8(g);if(w2){N&&(N.el=M1.el,v1(g,N,r1)),w2.asyncDep.then(()=>{m2(()=>{g.isUnmounted||J()},Y)});return}}let B1=N,U1;R3(g,!1),N?(N.el=M1.el,v1(g,N,r1)):N=M1,O&&E4(O),(U1=N.props&&N.props.onVnodeBeforeUpdate)&&L2(U1,H,N,M1),R3(g,!0);const t2=A6(g),C2=g.subTree;g.subTree=t2,k(C2,t2,u(C2.el),$(C2),g,Y,T),N.el=t2.el,B1===null&&oo(g,t2.el),d1&&m2(d1,Y),(U1=N.props&&N.props.onVnodeUpdated)&&m2(()=>L2(U1,H,N,M1),Y)}else{let N;const{el:O,props:d1}=b,{bm:H,m:M1,parent:B1,root:U1,type:t2}=g,C2=se(b);R3(g,!1),H&&E4(H),!C2&&(N=d1&&d1.onVnodeBeforeMount)&&L2(N,B1,b),R3(g,!0);{U1.ce&&U1.ce._hasShadowRoot()&&U1.ce._injectChildStyle(t2,g.parent?g.parent.type:void 0);const w2=g.subTree=A6(g);k(null,w2,E,P,g,Y,T),b.el=w2.el}if(M1&&m2(M1,Y),!C2&&(N=d1&&d1.onVnodeMounted)){const w2=b;m2(()=>L2(N,B1,w2),Y)}(b.shapeFlag&256||B1&&se(B1.vnode)&&B1.vnode.shapeFlag&256)&&g.a&&m2(g.a,Y),g.isMounted=!0,b=E=P=null}};g.scope.on();const X=g.effect=new e8(e1);g.scope.off();const J=g.update=X.run.bind(X),p1=g.job=X.runIfDirty.bind(X);p1.i=g,p1.id=g.uid,X.scheduler=()=>Zt(p1),R3(g,!0),J()},v1=(g,b,E)=>{b.component=g;const P=g.vnode.props;g.vnode=b,g.next=null,so(g,b.props,P,E),uo(g,b.children,E),d3(),n6(g),f3()},C1=(g,b,E,P,Y,T,r1,e1,X=!1)=>{const J=g&&g.children,p1=g?g.shapeFlag:0,N=b.children,{patchFlag:O,shapeFlag:d1}=b;if(O>0){if(O&128){s1(J,N,E,P,Y,T,r1,e1,X);return}else if(O&256){k1(J,N,E,P,Y,T,r1,e1,X);return}}d1&8?(p1&16&&h1(J,Y,T),N!==J&&d(E,N)):p1&16?d1&16?s1(J,N,E,P,Y,T,r1,e1,X):h1(J,Y,T,!0):(p1&8&&d(E,""),d1&16&&_(N,E,P,Y,T,r1,e1,X))},k1=(g,b,E,P,Y,T,r1,e1,X)=>{g=g||oe,b=b||oe;const J=g.length,p1=b.length,N=Math.min(J,p1);let O;for(O=0;Op1?h1(g,Y,T,!0,!1,N):_(b,E,P,Y,T,r1,e1,X,N)},s1=(g,b,E,P,Y,T,r1,e1,X)=>{let J=0;const p1=b.length;let N=g.length-1,O=p1-1;for(;J<=N&&J<=O;){const d1=g[J],H=b[J]=X?s3(b[J]):V2(b[J]);if(L3(d1,H))k(d1,H,E,null,Y,T,r1,e1,X);else break;J++}for(;J<=N&&J<=O;){const d1=g[N],H=b[O]=X?s3(b[O]):V2(b[O]);if(L3(d1,H))k(d1,H,E,null,Y,T,r1,e1,X);else break;N--,O--}if(J>N){if(J<=O){const d1=O+1,H=d1O)for(;J<=N;)F1(g[J],Y,T,!0),J++;else{const d1=J,H=J,M1=new Map;for(J=H;J<=O;J++){const P1=b[J]=X?s3(b[J]):V2(b[J]);P1.key!=null&&M1.set(P1.key,J)}let B1,U1=0;const t2=O-H+1;let C2=!1,w2=0;const y3=new Array(t2);for(J=0;J=t2){F1(P1,Y,T,!0);continue}let F2;if(P1.key!=null)F2=M1.get(P1.key);else for(B1=H;B1<=O;B1++)if(y3[B1-H]===0&&L3(P1,b[B1])){F2=B1;break}F2===void 0?F1(P1,Y,T,!0):(y3[F2-H]=J+1,F2>=w2?w2=F2:C2=!0,k(P1,b[F2],E,null,Y,T,r1,e1,X),U1++)}const S1=C2?po(y3):oe;for(B1=S1.length-1,J=t2-1;J>=0;J--){const P1=H+J,F2=b[P1],Jt=b[P1+1],zt=P1+1{const{el:T,type:r1,transition:e1,children:X,shapeFlag:J}=g;if(J&6){O1(g.component.subTree,b,E,P);return}if(J&128){g.suspense.move(b,E,P);return}if(J&64){r1.move(g,b,E,f1);return}if(r1===n1){l(T,b,E);for(let N=0;Ne1.enter(T),Y));else{const{leave:N,delayLeave:O,afterLeave:d1}=e1,H=()=>{g.ctx.isUnmounted?o(T):l(T,b,E)},M1=()=>{const B1=T._isLeaving||!!T[E2];T._isLeaving&&T[E2](!0),e1.persisted&&!B1?H():N(T,()=>{H(),d1&&d1()})};O?O(T,H,M1):M1()}else l(T,b,E)},F1=(g,b,E,P=!1,Y=!1)=>{const{type:T,props:r1,ref:e1,children:X,dynamicChildren:J,shapeFlag:p1,patchFlag:N,dirs:O,cacheIndex:d1,memo:H}=g;if(N===-2&&(Y=!1),e1!=null&&(d3(),Ge(e1,null,E,g,!0),f3()),d1!=null&&(b.renderCache[d1]=void 0),p1&256){b.ctx.deactivate(g);return}const M1=p1&1&&O,B1=!se(g);let U1;if(B1&&(U1=r1&&r1.onVnodeBeforeUnmount)&&L2(U1,b,g),p1&6)a1(g.component,E,P);else{if(p1&128){g.suspense.unmount(E,P);return}M1&&S3(g,null,b,"beforeUnmount"),p1&64?g.type.remove(g,b,E,f1,P):J&&!J.hasOnce&&(T!==n1||N>0&&N&64)?h1(J,b,E,!1,!0):(T===n1&&N&384||!Y&&p1&16)&&h1(X,b,E),P&&V1(g)}const t2=H!=null&&d1==null;(B1&&(U1=r1&&r1.onVnodeUnmounted)||M1||t2)&&m2(()=>{U1&&L2(U1,b,g),M1&&S3(g,null,b,"unmounted"),t2&&(g.el=null)},E)},V1=g=>{const{type:b,el:E,anchor:P,transition:Y}=g;if(b===n1){e2(E,P);return}if(b===Z4){v(g);return}const T=()=>{o(E),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(g.shapeFlag&1&&Y&&!Y.persisted){const{leave:r1,delayLeave:e1}=Y,X=()=>r1(E,T);e1?e1(g.el,T,X):X()}else T()},e2=(g,b)=>{let E;for(;g!==b;)E=A(g),o(g),g=E;o(b)},a1=(g,b,E)=>{const{bum:P,scope:Y,job:T,subTree:r1,um:e1,m:X,a:J}=g;m6(X),m6(J),P&&E4(P),Y.stop(),T&&(T.flags|=8,F1(r1,g,b,E)),e1&&m2(e1,b),m2(()=>{g.isUnmounted=!0},b)},h1=(g,b,E,P=!1,Y=!1,T=0)=>{for(let r1=T;r1{if(g.shapeFlag&6)return $(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const b=A(g.anchor||g.el),E=b&&b[_8];return E?A(E):b};let z=!1;const K=(g,b,E)=>{let P;g==null?b._vnode&&(F1(b._vnode,null,null,!0),P=b._vnode.component):k(b._vnode||null,g,b,null,null,null,E),b._vnode=g,z||(z=!0,n6(P),b8(),z=!1)},f1={p:k,um:F1,m:O1,r:V1,mt:y1,mc:_,pc:C1,pbc:B,n:$,o:e};return{render:K,hydrate:void 0,createApp:jl(K)}}function x5({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function R3({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ho(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rt(e,t,n=!1){const l=e.children,o=t.children;if(g1(l)&&g1(o))for(let r=0;r>1,e[n[a]]0&&(t[l]=n[r-1]),n[r]=l)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function z8(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:z8(t)}function m6(e){if(e)for(let t=0;te.__isSuspense;function mo(e,t){t&&t.pendingBranch?g1(e)?t.effects.push(...e):t.effects.push(e):wl(e)}const n1=Symbol.for("v-fgt"),s5=Symbol.for("v-txt"),A2=Symbol.for("v-cmt"),Z4=Symbol.for("v-stc"),u3=[];let x2=null;function h(e=!1){u3.push(x2=e?null:[])}function Qt(){u3.pop(),x2=u3[u3.length-1]||null}let Ue=1;function O4(e,t=!1){Ue+=e,e<0&&x2&&t&&(x2.hasOnce=!0)}function q8(e){return e.dynamicChildren=Ue>0?x2||oe:null,Qt(),Ue>0&&x2&&x2.push(e),e}function w(e,t,n,l,o,r){return q8(y(e,t,n,l,o,r,!0))}function G(e,t,n,l,o){return q8(M(e,t,n,l,o,!0))}function Je(e){return e?e.__v_isVNode===!0:!1}function L3(e,t){return e.type===t.type&&e.key===t.key}const e0=({key:e})=>e??null,F4=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Y1(e)||n2(e)||I1(e)?{i:i2,r:e,k:t,f:!!n}:e:null);function y(e,t=null,n=null,l=0,o=null,r=e===n1?0:1,s=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&e0(t),ref:t&&F4(t),scopeId:C8,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:i2};return a?($4(i,n),r&128&&e.normalize(i)):n&&(i.shapeFlag|=Y1(n)?8:16),Ue>0&&!s&&x2&&(i.patchFlag>0||r&6)&&i.patchFlag!==32&&x2.push(i),i}const M=go;function go(e,t=null,n=null,l=0,o=null,r=!1){if((!e||e===R8)&&(e=A2),Je(e)){const a=D3(e,t,!0);return n&&$4(a,n),Ue>0&&!r&&x2&&(a.shapeFlag&6?x2[x2.indexOf(e)]=a:x2.push(a)),a.patchFlag=-2,a}if(Do(e)&&(e=e.__vccOpts),t){t=vo(t);let{class:a,style:i}=t;a&&!Y1(a)&&(t.class=i1(a)),G1(i)&&(Dt(i)&&!g1(i)&&(i=r2({},i)),t.style=M2(i))}const s=Y1(e)?1:X8(e)?128:n5(e)?64:G1(e)?4:I1(e)?2:0;return y(e,t,n,l,o,s,r,!0)}function vo(e){return e?Dt(e)||T8(e)?r2({},e):e:null}function D3(e,t,n=!1,l=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:i}=e,c=t?bo(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&e0(c),ref:t&&t.ref?n&&r?g1(r)?r.concat(F4(t)):[r,F4(t)]:F4(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==n1?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&D3(e.ssContent),ssFallback:e.ssFallback&&D3(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&l&&Ve(d,i.clone(d)),d}function U(e=" ",t=0){return M(s5,null,e,t)}function yo(e,t){const n=M(Z4,null,e);return n.staticCount=t,n}function W(e="",t=!1){return t?(h(),G(A2,null,e)):M(A2,null,e)}function V2(e){return e==null||typeof e=="boolean"?M(A2):g1(e)?M(n1,null,e.slice()):Je(e)?s3(e):M(s5,null,String(e))}function s3(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:D3(e)}function $4(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(g1(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),$4(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!T8(t)?t._ctx=i2:o===3&&i2&&(i2.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(I1(t)){if(l&65){$4(e,{default:t});return}t={default:t,_ctx:i2},n=32}else t=String(t),l&64?(n=16,t=[U(t)]):n=8;e.children=t,e.shapeFlag|=n}function bo(...e){const t={};for(let n=0;nh2||i2;let W4,ze;{const e=X4(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};W4=t("__VUE_INSTANCE_SETTERS__",n=>h2=n),ze=t("__VUE_SSR_SETTERS__",n=>je=n)}const f4=e=>{const t=h2;return W4(e),e.scope.on(),()=>{e.scope.off(),W4(t)}},g6=()=>{h2&&h2.scope.off(),W4(null)};function n0(e){return e.vnode.shapeFlag&4}let je=!1;function xo(e,t=!1,n=!1){t&&ze(t);const{props:l,children:o}=e.vnode,r=n0(e);ro(e,l,r,t),co(e,o,n||t);const s=r?_o(e,t):void 0;return t&&ze(!1),s}function _o(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tl);const{setup:l}=n;if(l){d3();const o=e.setupContext=l.length>1?Mo(e):null,r=f4(e),s=d4(l,e,0,[e.props,o]),a=Y7(s);if(f3(),r(),(a||e.sp)&&!se(e)&&F8(e),a){if(s.then(g6,g6),t)return s.then(i=>{ze(!0);try{v6(e,i,t)}finally{ze(!1)}}).catch(i=>{t5(i,e,0)});e.asyncDep=s}else v6(e,s)}else l0(e)}function v6(e,t,n){I1(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G1(t)&&(e.setupState=m8(t)),l0(e)}function l0(e,t,n){const l=e.type;e.render||(e.render=l.render||j2);{const o=f4(e);d3();try{Hl(e)}finally{f3(),o()}}}const Io={get(e,t){return f2(e,"get",""),e[t]}};function Mo(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Io),slots:e.slots,emit:e.emit,expose:t}}function a5(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(m8(Al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Oe)return Oe[n](e)},has(t,n){return n in t||n in Oe}})):e.proxy}function Eo(e,t=!0){return I1(e)?e.displayName||e.name:e.name||t&&e.__name}function Do(e){return I1(e)&&"__vccOpts"in e}const t1=(e,t)=>vl(e,t,je);function h3(e,t,n){try{O4(-1);const l=arguments.length;return l===2?G1(t)&&!g1(t)?Je(t)?M(e,null,[t]):M(e,t):M(e,null,t):(l>3?n=Array.prototype.slice.call(arguments,2):l===3&&Je(n)&&(n=[n]),M(e,t,n))}finally{O4(1)}}const Zo="3.5.42";/** * @vue/runtime-dom v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let rt;const v6=typeof window<"u"&&window.trustedTypes;if(v6)try{rt=v6.createPolicy("vue",{createHTML:e=>e})}catch{}const l0=rt?e=>rt.createHTML(e):e=>e,Do="http://www.w3.org/2000/svg",Zo="http://www.w3.org/1998/Math/MathML",o3=typeof document<"u"?document:null,y6=o3&&o3.createElement("template"),Fo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const o=t==="svg"?o3.createElementNS(Do,e):t==="mathml"?o3.createElementNS(Zo,e):n?o3.createElement(e,{is:n}):o3.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>o3.createTextNode(e),createComment:e=>o3.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>o3.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{y6.innerHTML=l0(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=y6.content;if(l==="svg"||l==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},y3="transition",Ce="animation",Xe=Symbol("_vtc"),o0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Bo=r2({},_8,o0),So=e=>(e.displayName="Transition",e.props=Bo,e),r0=So((e,{slots:t})=>A3(Fl,Ro(e),t)),Q3=(e,t=[])=>{v1(e)?e.forEach(n=>n(...t)):e&&e(...t)},b6=e=>e?v1(e)?e.some(t=>t.length>1):e.length>1:!1;function Ro(e){const t={};for(const Y in e)Y in o0||(t[Y]=e[Y]);if(e.css===!1)return t;const{name:n="v",type:l,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=r,appearActiveClass:c=s,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:A=`${n}-leave-active`,leaveToClass:m=`${n}-leave-to`}=e,p=Qo(o),y=p&&p[0],k=p&&p[1],{onBeforeEnter:F,onEnter:M,onEnterCancelled:E,onLeave:_,onLeaveCancelled:R,onBeforeAppear:$=F,onAppear:D=M,onAppearCancelled:x=E}=t,Q=(Y,m1,w1,r1)=>{Y._enterCancelled=r1,N3(Y,m1?d:a),N3(Y,m1?c:s),w1&&w1()},B=(Y,m1)=>{Y._isLeaving=!1,N3(Y,u),N3(Y,m),N3(Y,A),m1&&m1()},X=Y=>(m1,w1)=>{const r1=Y?D:M,l1=()=>Q(m1,Y,w1);Q3(r1,[m1,l1]),k6(()=>{N3(m1,Y?i:r),t3(m1,Y?d:a),b6(r1)||C6(m1,l,y,l1)})};return r2(t,{onBeforeEnter(Y){Q3(F,[Y]),t3(Y,r),t3(Y,s)},onBeforeAppear(Y){Q3($,[Y]),t3(Y,i),t3(Y,c)},onEnter:X(!1),onAppear:X(!0),onLeave(Y,m1){Y._isLeaving=!0;const w1=()=>B(Y,m1);t3(Y,u),Y._enterCancelled?(t3(Y,A),_6(Y)):(_6(Y),t3(Y,A)),k6(()=>{Y._isLeaving&&(N3(Y,u),t3(Y,m),b6(_)||C6(Y,l,k,w1))}),Q3(_,[Y,w1])},onEnterCancelled(Y){Q(Y,!1,void 0,!0),Q3(E,[Y])},onAppearCancelled(Y){Q(Y,!0,void 0,!0),Q3(x,[Y])},onLeaveCancelled(Y){B(Y),Q3(R,[Y])}})}function Qo(e){if(e==null)return null;if(G1(e))return[M5(e.enter),M5(e.leave)];{const t=M5(e);return[t,t]}}function M5(e){return Gn(e)}function t3(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xe]||(e[Xe]=new Set)).add(t)}function N3(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const n=e[Xe];n&&(n.delete(t),n.size||(e[Xe]=void 0))}function k6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let No=0;function C6(e,t,n,l){const o=e._endId=++No,r=()=>{o===e._endId&&l()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:i}=Ko(e,t);if(!s)return l();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,A),r()},A=m=>{m.target===e&&++d>=i&&u()};setTimeout(()=>{d(n[p]||"").split(", "),o=l(`${y3}Delay`),r=l(`${y3}Duration`),s=w6(o,r),a=l(`${Ce}Delay`),i=l(`${Ce}Duration`),c=w6(a,i);let d=null,u=0,A=0;t===y3?s>0&&(d=y3,u=s,A=r.length):t===Ce?c>0&&(d=Ce,u=c,A=i.length):(u=Math.max(s,c),d=u>0?s>c?y3:Ce:null,A=d?d===y3?r.length:i.length:0);const m=d===y3&&/\b(?:transform|all)(?:,|$)/.test(l(`${y3}Property`).toString());return{type:d,timeout:u,propCount:A,hasTransform:m}}function w6(e,t){for(;e.lengthx6(n)+x6(e[l])))}function x6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function _6(e){return(e?e.ownerDocument:document).body.offsetHeight}function Go(e,t,n){const l=e[Xe];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const P4=Symbol("_vod"),s0=Symbol("_vsh"),Oo={name:"show",beforeMount(e,{value:t},{transition:n}){e[P4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):we(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:l}){!t!=!n&&(l?t?(l.beforeEnter(e),we(e,!0),l.enter(e)):l.leave(e,()=>{we(e,!1)}):we(e,t))},beforeUnmount(e,{value:t}){we(e,t)}};function we(e,t){e.style.display=t?e[P4]:"none",e[s0]=!t}const $o=Symbol(""),Wo=/(?:^|;)\s*display\s*:/;function Lo(e,t,n){const l=e.style,o=T1(n);let r=!1;if(n&&!o){if(t)if(T1(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Be(l,a,"")}else for(const s in t)n[s]==null&&Be(l,s,"");for(const s in n){s==="display"&&(r=!0);const a=n[s];a!=null?Ho(e,s,!T1(t)&&t?t[s]:void 0,a)||Be(l,s,a):Be(l,s,"")}}else if(o){if(t!==n){const s=l[$o];s&&(n+=";"+s),l.cssText=n,r=Wo.test(n)}}else t&&e.removeAttribute("style");P4 in e&&(e[P4]=r?l.display:"",e[s0]&&(l.display="none"))}const b4=/\s*!important$/;function Be(e,t,n){if(v1(n))n.forEach(l=>Be(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))b4.test(n)?e.setProperty(t,n.replace(b4,""),"important"):e.setProperty(t,n);else{const l=Po(e,t);b4.test(n)?e.setProperty(Z3(l),n.replace(b4,""),"important"):e[l]=n}}const I6=["Webkit","Moz","ms"],E5={};function Po(e,t){const n=E5[t];if(n)return n;let l=b2(t);if(l!=="filter"&&l in e)return E5[t]=l;l=X4(l);for(let o=0;oD5||(zo.then(()=>D5=0),D5=Date.now());function Xo(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(v1(o)){const r=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{r.call(l),l._stopped=!0};const s=o.slice(),a=[l];for(let i=0;ie.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,qo=(e,t,n,l,o,r)=>{const s=o==="svg";t==="class"?Go(e,l,s):t==="style"?Lo(e,n,l):J4(t)?z4(t)||Yo(e,t,n,l,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):er(e,t,l,s))?(D6(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&E6(e,t,l,s,r,t!=="value")):e._isVueCE&&(tr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!T1(l)))?D6(e,b2(t),l,r,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),E6(e,t,l,s))};function er(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&F6(t)&&I1(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return F6(t)&&T1(n)?!1:t in e}function tr(e,t){const n=e._def.props;if(!n)return!1;const l=b2(t);return Array.isArray(n)?n.some(o=>b2(o)===l):Object.keys(n).some(o=>b2(o)===l)}const H4=e=>{const t=e.props["onUpdate:modelValue"]||!1;return v1(t)?n=>D4(t,n):t};function nr(e){e.target.composing=!0}function B6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const H3=Symbol("_assign"),k4=Symbol("_initialValue");function Z5(e,t,n){return t&&(e=e.trim()),n&&(e=Ct(e)),e}const S6={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e.parentNode&&(e.type==="text"?e[k4]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[k4]=e.defaultValue.replace(/\r\n?/g,` -`))),e[H3]=H4(o);const r=l||o.props&&o.props.type==="number";P3(e,t?"change":"input",s=>{s.target.composing||e[H3](Z5(e.value,n,r))}),(n||r)&&P3(e,"change",()=>{e.value=Z5(e.value,n,r)}),t||(P3(e,"compositionstart",nr),P3(e,"compositionend",B6),P3(e,"change",B6))},mounted(e,{value:t,modifiers:{trim:n,number:l}}){const o=t??"",r=e[k4];delete e[k4],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[H3](Z5(e.value,n,l)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:r}},s){if(e[H3]=H4(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ct(e.value):e.value,i=t??"";if(a===i)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===i)||(e.value=i)}},a0={deep:!0,created(e,t,n){e[H3]=H4(n),P3(e,"change",()=>{const l=e._modelValue,o=lr(e),r=e.checked,s=e[H3];if(v1(l)){const a=z7(l,o),i=a!==-1;if(r&&!i)s(l.concat(o));else if(!r&&i){const c=[...l];c.splice(a,1),s(c)}}else if(ie(l)){const a=new Set(l);r?a.add(o):a.delete(o),s(a)}else s(i0(e,r))})},mounted:R6,beforeUpdate(e,t,n){e[H3]=H4(n),R6(e,t,n)}};function R6(e,{value:t,oldValue:n},l){e._modelValue=t;let o;if(v1(t))o=z7(t,l.props.value)>-1;else if(ie(t))o=t.has(l.props.value);else{if(t===n)return;o=pe(t,i0(e,!0))}e.checked!==o&&(e.checked=o)}function lr(e){return"_value"in e?e._value:e.value}function i0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const or=["ctrl","shift","alt","meta"],rr={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>or.some(n=>e[`${n}Key`]&&!t.includes(n))},qe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((o,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(o=>{if(!("key"in o))return;const r=Z3(o.key);if(t.some(s=>s===r||sr[s]===r))return e(o)}))},ir=r2({patchProp:qo},Fo);let Q6;function cr(){return Q6||(Q6=co(ir))}const ur=((...e)=>{const t=cr().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=fr(l);if(!o)return;const r=t._component;!I1(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,dr(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t});function dr(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function fr(e){return T1(e)?document.querySelector(e):e}/*! +**/let ot;const y6=typeof window<"u"&&window.trustedTypes;if(y6)try{ot=y6.createPolicy("vue",{createHTML:e=>e})}catch{}const o0=ot?e=>ot.createHTML(e):e=>e,Fo="http://www.w3.org/2000/svg",Bo="http://www.w3.org/1998/Math/MathML",r3=typeof document<"u"?document:null,b6=r3&&r3.createElement("template"),So={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const o=t==="svg"?r3.createElementNS(Fo,e):t==="mathml"?r3.createElementNS(Bo,e):n?r3.createElement(e,{is:n}):r3.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>r3.createTextNode(e),createComment:e=>r3.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>r3.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{b6.innerHTML=o0(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=b6.content;if(l==="svg"||l==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},b3="transition",we="animation",Xe=Symbol("_vtc"),r0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ro=r2({},I8,r0),Qo=e=>(e.displayName="Transition",e.props=Ro,e),s0=Qo((e,{slots:t})=>h3(Sl,No(e),t)),Q3=(e,t=[])=>{g1(e)?e.forEach(n=>n(...t)):e&&e(...t)},k6=e=>e?g1(e)?e.some(t=>t.length>1):e.length>1:!1;function No(e){const t={};for(const V in e)V in r0||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:l,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=r,appearActiveClass:c=s,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:A=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ko(o),k=m&&m[0],D=m&&m[1],{onBeforeEnter:F,onEnter:C,onEnterCancelled:I,onLeave:v,onLeaveCancelled:S,onBeforeAppear:L=F,onAppear:Z=C,onAppearCancelled:_=I}=t,R=(V,m1,y1,l1)=>{V._enterCancelled=l1,N3(V,m1?d:a),N3(V,m1?c:s),y1&&y1()},B=(V,m1)=>{V._isLeaving=!1,N3(V,u),N3(V,p),N3(V,A),m1&&m1()},q=V=>(m1,y1)=>{const l1=V?Z:C,o1=()=>R(m1,V,y1);Q3(l1,[m1,o1]),C6(()=>{N3(m1,V?i:r),n3(m1,V?d:a),k6(l1)||w6(m1,l,k,o1)})};return r2(t,{onBeforeEnter(V){Q3(F,[V]),n3(V,r),n3(V,s)},onBeforeAppear(V){Q3(L,[V]),n3(V,i),n3(V,c)},onEnter:q(!1),onAppear:q(!0),onLeave(V,m1){V._isLeaving=!0;const y1=()=>B(V,m1);n3(V,u),V._enterCancelled?(n3(V,A),I6(V)):(I6(V),n3(V,A)),C6(()=>{V._isLeaving&&(N3(V,u),n3(V,p),k6(v)||w6(V,l,D,y1))}),Q3(v,[V,y1])},onEnterCancelled(V){R(V,!1,void 0,!0),Q3(I,[V])},onAppearCancelled(V){R(V,!0,void 0,!0),Q3(_,[V])},onLeaveCancelled(V){B(V),Q3(S,[V])}})}function Ko(e){if(e==null)return null;if(G1(e))return[_5(e.enter),_5(e.leave)];{const t=_5(e);return[t,t]}}function _5(e){return $n(e)}function n3(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xe]||(e[Xe]=new Set)).add(t)}function N3(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const n=e[Xe];n&&(n.delete(t),n.size||(e[Xe]=void 0))}function C6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Go=0;function w6(e,t,n,l){const o=e._endId=++Go,r=()=>{o===e._endId&&l()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:i}=Oo(e,t);if(!s)return l();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,A),r()},A=p=>{p.target===e&&++d>=i&&u()};setTimeout(()=>{d(n[m]||"").split(", "),o=l(`${b3}Delay`),r=l(`${b3}Duration`),s=x6(o,r),a=l(`${we}Delay`),i=l(`${we}Duration`),c=x6(a,i);let d=null,u=0,A=0;t===b3?s>0&&(d=b3,u=s,A=r.length):t===we?c>0&&(d=we,u=c,A=i.length):(u=Math.max(s,c),d=u>0?s>c?b3:we:null,A=d?d===b3?r.length:i.length:0);const p=d===b3&&/\b(?:transform|all)(?:,|$)/.test(l(`${b3}Property`).toString());return{type:d,timeout:u,propCount:A,hasTransform:p}}function x6(e,t){for(;e.length_6(n)+_6(e[l])))}function _6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function I6(e){return(e?e.ownerDocument:document).body.offsetHeight}function $o(e,t,n){const l=e[Xe];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const L4=Symbol("_vod"),a0=Symbol("_vsh"),Wo={name:"show",beforeMount(e,{value:t},{transition:n}){e[L4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):xe(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:l}){!t!=!n&&(l?t?(l.beforeEnter(e),xe(e,!0),l.enter(e)):l.leave(e,()=>{xe(e,!1)}):xe(e,t))},beforeUnmount(e,{value:t}){xe(e,t)}};function xe(e,t){e.style.display=t?e[L4]:"none",e[a0]=!t}const Lo=Symbol(""),Po=/(?:^|;)\s*display\s*:/;function To(e,t,n){const l=e.style,o=Y1(n);let r=!1;if(n&&!o){if(t)if(Y1(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Se(l,a,"")}else for(const s in t)n[s]==null&&Se(l,s,"");for(const s in n){s==="display"&&(r=!0);const a=n[s];a!=null?Yo(e,s,!Y1(t)&&t?t[s]:void 0,a)||Se(l,s,a):Se(l,s,"")}}else if(o){if(t!==n){const s=l[Lo];s&&(n+=";"+s),l.cssText=n,r=Po.test(n)}}else t&&e.removeAttribute("style");L4 in e&&(e[L4]=r?l.display:"",e[a0]&&(l.display="none"))}const y4=/\s*!important$/;function Se(e,t,n){if(g1(n))n.forEach(l=>Se(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))y4.test(n)?e.setProperty(t,n.replace(y4,""),"important"):e.setProperty(t,n);else{const l=Ho(e,t);y4.test(n)?e.setProperty(F3(l),n.replace(y4,""),"important"):e[l]=n}}const M6=["Webkit","Moz","ms"],I5={};function Ho(e,t){const n=I5[t];if(n)return n;let l=b2(t);if(l!=="filter"&&l in e)return I5[t]=l;l=j4(l);for(let o=0;oM5||(Xo.then(()=>M5=0),M5=Date.now());function er(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(g1(o)){const r=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{r.call(l),l._stopped=!0};const s=o.slice(),a=[l];for(let i=0;ie.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tr=(e,t,n,l,o,r)=>{const s=o==="svg";t==="class"?$o(e,l,s):t==="style"?To(e,n,l):U4(t)?J4(t)||Uo(e,t,n,l,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nr(e,t,l,s))?(Z6(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&D6(e,t,l,s,r,t!=="value")):e._isVueCE&&(lr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Y1(l)))?Z6(e,b2(t),l,r,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),D6(e,t,l,s))};function nr(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&B6(t)&&I1(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return B6(t)&&Y1(n)?!1:t in e}function lr(e,t){const n=e._def.props;if(!n)return!1;const l=b2(t);return Array.isArray(n)?n.some(o=>b2(o)===l):Object.keys(n).some(o=>b2(o)===l)}const P4=e=>{const t=e.props["onUpdate:modelValue"]||!1;return g1(t)?n=>E4(t,n):t};function or(e){e.target.composing=!0}function S6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const T3=Symbol("_assign"),b4=Symbol("_initialValue");function E5(e,t,n){return t&&(e=e.trim()),n&&(e=Ct(e)),e}const R6={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e.parentNode&&(e.type==="text"?e[b4]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[b4]=e.defaultValue.replace(/\r\n?/g,` +`))),e[T3]=P4(o);const r=l||o.props&&o.props.type==="number";P3(e,t?"change":"input",s=>{s.target.composing||e[T3](E5(e.value,n,r))}),(n||r)&&P3(e,"change",()=>{e.value=E5(e.value,n,r)}),t||(P3(e,"compositionstart",or),P3(e,"compositionend",S6),P3(e,"change",S6))},mounted(e,{value:t,modifiers:{trim:n,number:l}}){const o=t??"",r=e[b4];delete e[b4],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[T3](E5(e.value,n,l)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:r}},s){if(e[T3]=P4(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ct(e.value):e.value,i=t??"";if(a===i)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===i)||(e.value=i)}},i0={deep:!0,created(e,t,n){e[T3]=P4(n),P3(e,"change",()=>{const l=e._modelValue,o=rr(e),r=e.checked,s=e[T3];if(g1(l)){const a=j7(l,o),i=a!==-1;if(r&&!i)s(l.concat(o));else if(!r&&i){const c=[...l];c.splice(a,1),s(c)}}else if(ce(l)){const a=new Set(l);r?a.add(o):a.delete(o),s(a)}else s(c0(e,r))})},mounted:Q6,beforeUpdate(e,t,n){e[T3]=P4(n),Q6(e,t,n)}};function Q6(e,{value:t,oldValue:n},l){e._modelValue=t;let o;if(g1(t))o=j7(t,l.props.value)>-1;else if(ce(t))o=t.has(l.props.value);else{if(t===n)return;o=me(t,c0(e,!0))}e.checked!==o&&(e.checked=o)}function rr(e){return"_value"in e?e._value:e.value}function c0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const sr=["ctrl","shift","alt","meta"],ar={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sr.some(n=>e[`${n}Key`]&&!t.includes(n))},qe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((o,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(o=>{if(!("key"in o))return;const r=F3(o.key);if(t.some(s=>s===r||ir[s]===r))return e(o)}))},ur=r2({patchProp:tr},So);let N6;function dr(){return N6||(N6=fo(ur))}const fr=((...e)=>{const t=dr().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=hr(l);if(!o)return;const r=t._component;!I1(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Ar(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t});function Ar(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function hr(e){return Y1(e)?document.querySelector(e):e}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */const ne=typeof document<"u";function c0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ar(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&c0(e.default)}const Q1=Object.assign;function F5(e,t){const n={};for(const l in t){const o=t[l];n[l]=$2(o)?o.map(e):e(o)}return n}const Oe=()=>{},$2=Array.isArray;function N6(e,t){const n={};for(const l in e)n[l]=l in t?t[l]:e[l];return n}const u0=/#/g,hr=/&/g,pr=/\//g,mr=/=/g,gr=/\?/g,d0=/\+/g,vr=/%5B/g,yr=/%5D/g,f0=/%5E/g,br=/%60/g,A0=/%7B/g,kr=/%7C/g,h0=/%7D/g,Cr=/%20/g;function Nt(e){return e==null?"":encodeURI(""+e).replace(kr,"|").replace(vr,"[").replace(yr,"]")}function wr(e){return Nt(e).replace(A0,"{").replace(h0,"}").replace(f0,"^")}function st(e){return Nt(e).replace(d0,"%2B").replace(Cr,"+").replace(u0,"%23").replace(hr,"%26").replace(br,"`").replace(A0,"{").replace(h0,"}").replace(f0,"^")}function xr(e){return st(e).replace(mr,"%3D")}function _r(e){return Nt(e).replace(u0,"%23").replace(gr,"%3F")}function Ir(e){return _r(e).replace(pr,"%2F")}function e4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Mr=/\/$/,Er=e=>e.replace(Mr,"");function B5(e,t,n="/"){let l,o={},r="",s="";const a=t.indexOf("#");let i=t.indexOf("?");return i=a>=0&&i>a?-1:i,i>=0&&(l=t.slice(0,i),r=t.slice(i,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(l=l||t.slice(0,a),s=t.slice(a,t.length)),l=Br(l??t,n),{fullPath:l+r+s,path:l,query:o,hash:e4(s)}}function Dr(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function K6(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Zr(e,t,n){const l=t.matched.length-1,o=n.matched.length-1;return l>-1&&l===o&&ue(t.matched[l],n.matched[o])&&p0(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ue(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function p0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Fr(e[n],t[n]))return!1;return!0}function Fr(e,t){return $2(e)?G6(e,t):$2(t)?G6(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function G6(e,t){return $2(t)?e.length===t.length&&e.every((n,l)=>n===t[l]):e.length===1&&e[0]===t}function Br(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),l=e.split("/"),o=l[l.length-1];(o===".."||o===".")&&l.push("");let r=n.length-1,s,a;for(s=0;s1&&r--;else break;return n.slice(0,r).join("/")+"/"+l.slice(s).join("/")}const b3={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let at=(function(e){return e.pop="pop",e.push="push",e})({}),S5=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Sr(e){if(!e)if(ne){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Er(e)}const Rr=/^[^#]+#/;function Qr(e,t){return e.replace(Rr,"#")+t}function Nr(e,t){const n=document.documentElement.getBoundingClientRect(),l=e.getBoundingClientRect();return{behavior:t.behavior,left:l.left-n.left-(t.left||0),top:l.top-n.top-(t.top||0)}}const c5=()=>({left:window.scrollX,top:window.scrollY});function Kr(e){let t;if("el"in e){const n=e.el,l=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?l?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Nr(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function O6(e,t){return(history.state?history.state.position-t:-1)+e}const it=new Map;function Gr(e,t){it.set(e,t)}function Or(e){const t=it.get(e);return it.delete(e),t}function $r(e){return typeof e=="string"||e&&typeof e=="object"}function m0(e){return typeof e=="string"||typeof e=="symbol"}let X1=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const g0=Symbol("");X1.MATCHER_NOT_FOUND+"",X1.NAVIGATION_GUARD_REDIRECT+"",X1.NAVIGATION_ABORTED+"",X1.NAVIGATION_CANCELLED+"",X1.NAVIGATION_DUPLICATED+"";function de(e,t){return Q1(new Error,{type:e,[g0]:!0},t)}function n3(e,t){return e instanceof Error&&g0 in e&&(t==null||!!(e.type&t))}const Wr=["params","query","hash"];function Lr(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Wr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Pr(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;lo&&st(o)):[l&&st(l)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Hr(e){const t={};for(const n in e){const l=e[n];l!==void 0&&(t[n]=$2(l)?l.map(o=>o==null?null:""+o):l==null?l:""+l)}return t}const Tr=Symbol(""),W6=Symbol(""),u5=Symbol(""),Kt=Symbol(""),ct=Symbol("");function xe(){let e=[];function t(l){return e.push(l),()=>{const o=e.indexOf(l);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function x3(e,t,n,l,o,r=s=>s()){const s=l&&(l.enterCallbacks[o]=l.enterCallbacks[o]||[]);return()=>new Promise((a,i)=>{const c=A=>{A===!1?i(de(X1.NAVIGATION_ABORTED,{from:n,to:t})):A instanceof Error?i(A):$r(A)?i(de(X1.NAVIGATION_GUARD_REDIRECT,{from:t,to:A})):(s&&l.enterCallbacks[o]===s&&typeof A=="function"&&s.push(A),a())},d=r(()=>e.call(l&&l.instances[o],t,n,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(A=>i(A))})}function R5(e,t,n,l,o=r=>r()){const r=[];for(const s of e)for(const a in s.components){let i=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(c0(i)){const c=(i.__vccOpts||i)[t];c&&r.push(x3(c,n,l,s,a,o))}else{let c=i();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const u=Ar(d)?d.default:d;s.mods[a]=d,s.components[a]=u;const A=(u.__vccOpts||u)[t];return A&&x3(A,n,l,s,a,o)()}))}}return r}function Yr(e,t){const n=[],l=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sue(c,a))?l.push(a):n.push(a));const i=e.matched[s];i&&(t.matched.find(c=>ue(c,i))||o.push(i))}return[n,l,o]}/*! + */const le=typeof document<"u";function u0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&u0(e.default)}const Q1=Object.assign;function D5(e,t){const n={};for(const l in t){const o=t[l];n[l]=W2(o)?o.map(e):e(o)}return n}const $e=()=>{},W2=Array.isArray;function K6(e,t){const n={};for(const l in e)n[l]=l in t?t[l]:e[l];return n}const d0=/#/g,mr=/&/g,gr=/\//g,vr=/=/g,yr=/\?/g,f0=/\+/g,br=/%5B/g,kr=/%5D/g,A0=/%5E/g,Cr=/%60/g,h0=/%7B/g,wr=/%7C/g,p0=/%7D/g,xr=/%20/g;function Nt(e){return e==null?"":encodeURI(""+e).replace(wr,"|").replace(br,"[").replace(kr,"]")}function _r(e){return Nt(e).replace(h0,"{").replace(p0,"}").replace(A0,"^")}function rt(e){return Nt(e).replace(f0,"%2B").replace(xr,"+").replace(d0,"%23").replace(mr,"%26").replace(Cr,"`").replace(h0,"{").replace(p0,"}").replace(A0,"^")}function Ir(e){return rt(e).replace(vr,"%3D")}function Mr(e){return Nt(e).replace(d0,"%23").replace(yr,"%3F")}function Er(e){return Mr(e).replace(gr,"%2F")}function e4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Dr=/\/$/,Zr=e=>e.replace(Dr,"");function Z5(e,t,n="/"){let l,o={},r="",s="";const a=t.indexOf("#");let i=t.indexOf("?");return i=a>=0&&i>a?-1:i,i>=0&&(l=t.slice(0,i),r=t.slice(i,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(l=l||t.slice(0,a),s=t.slice(a,t.length)),l=Rr(l??t,n),{fullPath:l+r+s,path:l,query:o,hash:e4(s)}}function Fr(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function G6(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Br(e,t,n){const l=t.matched.length-1,o=n.matched.length-1;return l>-1&&l===o&&de(t.matched[l],n.matched[o])&&m0(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function de(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function m0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Sr(e[n],t[n]))return!1;return!0}function Sr(e,t){return W2(e)?O6(e,t):W2(t)?O6(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function O6(e,t){return W2(t)?e.length===t.length&&e.every((n,l)=>n===t[l]):e.length===1&&e[0]===t}function Rr(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),l=e.split("/"),o=l[l.length-1];(o===".."||o===".")&&l.push("");let r=n.length-1,s,a;for(s=0;s1&&r--;else break;return n.slice(0,r).join("/")+"/"+l.slice(s).join("/")}const k3={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let st=(function(e){return e.pop="pop",e.push="push",e})({}),F5=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Qr(e){if(!e)if(le){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Zr(e)}const Nr=/^[^#]+#/;function Kr(e,t){return e.replace(Nr,"#")+t}function Gr(e,t){const n=document.documentElement.getBoundingClientRect(),l=e.getBoundingClientRect();return{behavior:t.behavior,left:l.left-n.left-(t.left||0),top:l.top-n.top-(t.top||0)}}const i5=()=>({left:window.scrollX,top:window.scrollY});function Or(e){let t;if("el"in e){const n=e.el,l=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?l?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Gr(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $6(e,t){return(history.state?history.state.position-t:-1)+e}const at=new Map;function $r(e,t){at.set(e,t)}function Wr(e){const t=at.get(e);return at.delete(e),t}function Lr(e){return typeof e=="string"||e&&typeof e=="object"}function g0(e){return typeof e=="string"||typeof e=="symbol"}let X1=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const v0=Symbol("");X1.MATCHER_NOT_FOUND+"",X1.NAVIGATION_GUARD_REDIRECT+"",X1.NAVIGATION_ABORTED+"",X1.NAVIGATION_CANCELLED+"",X1.NAVIGATION_DUPLICATED+"";function fe(e,t){return Q1(new Error,{type:e,[v0]:!0},t)}function l3(e,t){return e instanceof Error&&v0 in e&&(t==null||!!(e.type&t))}const Pr=["params","query","hash"];function Tr(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Pr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Hr(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;lo&&rt(o)):[l&&rt(l)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Yr(e){const t={};for(const n in e){const l=e[n];l!==void 0&&(t[n]=W2(l)?l.map(o=>o==null?null:""+o):l==null?l:""+l)}return t}const Vr=Symbol(""),L6=Symbol(""),c5=Symbol(""),Kt=Symbol(""),it=Symbol("");function _e(){let e=[];function t(l){return e.push(l),()=>{const o=e.indexOf(l);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function _3(e,t,n,l,o,r=s=>s()){const s=l&&(l.enterCallbacks[o]=l.enterCallbacks[o]||[]);return()=>new Promise((a,i)=>{const c=A=>{A===!1?i(fe(X1.NAVIGATION_ABORTED,{from:n,to:t})):A instanceof Error?i(A):Lr(A)?i(fe(X1.NAVIGATION_GUARD_REDIRECT,{from:t,to:A})):(s&&l.enterCallbacks[o]===s&&typeof A=="function"&&s.push(A),a())},d=r(()=>e.call(l&&l.instances[o],t,n,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(A=>i(A))})}function B5(e,t,n,l,o=r=>r()){const r=[];for(const s of e)for(const a in s.components){let i=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(u0(i)){const c=(i.__vccOpts||i)[t];c&&r.push(_3(c,n,l,s,a,o))}else{let c=i();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const u=pr(d)?d.default:d;s.mods[a]=d,s.components[a]=u;const A=(u.__vccOpts||u)[t];return A&&_3(A,n,l,s,a,o)()}))}}return r}function Ur(e,t){const n=[],l=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sde(c,a))?l.push(a):n.push(a));const i=e.matched[s];i&&(t.matched.find(c=>de(c,i))||o.push(i))}return[n,l,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let Vr=()=>location.protocol+"//"+location.host;function v0(e,t){const{pathname:n,search:l,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),K6(a,"")}return K6(n,e)+l+o}function Ur(e,t,n,l){let o=[],r=[],s=null;const a=({state:A})=>{const m=v0(e,location),p=n.value,y=t.value;let k=0;if(A){if(n.value=m,t.value=A,s&&s===p){s=null;return}k=y?A.position-y.position:0}else l(m);o.forEach(F=>{F(n.value,p,{delta:k,type:at.pop,direction:k?k>0?S5.forward:S5.back:S5.unknown})})};function i(){s=n.value}function c(A){o.push(A);const m=()=>{const p=o.indexOf(A);p>-1&&o.splice(p,1)};return r.push(m),m}function d(){if(document.visibilityState==="hidden"){const{history:A}=window;if(!A.state)return;A.replaceState(Q1({},A.state,{scroll:c5()}),"")}}function u(){for(const A of r)A();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:i,listen:c,destroy:u}}function L6(e,t,n,l=!1,o=!1){return{back:e,current:t,forward:n,replaced:l,position:window.history.length,scroll:o?c5():null}}function Jr(e){const{history:t,location:n}=window,l={value:v0(e,n)},o={value:t.state};o.value||r(l.value,{back:null,current:l.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(i,c,d){const u=e.indexOf("#"),A=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+i:Vr()+e+i;try{t[d?"replaceState":"pushState"](c,"",A),o.value=c}catch(m){console.error(m),n[d?"replace":"assign"](A)}}function s(i,c){r(i,Q1({},t.state,L6(o.value.back,i,o.value.forward,!0),c,{position:o.value.position}),!0),l.value=i}function a(i,c){const d=Q1({},o.value,t.state,{forward:i,scroll:c5()});r(d.current,d,!0),r(i,Q1({},L6(l.value,i,null),{position:d.position+1},c),!1),l.value=i}return{location:l,state:o,push:a,replace:s}}function zr(e){e=Sr(e);const t=Jr(e),n=Ur(e,t.state,t.location,t.replace);function l(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=Q1({location:"",base:e,go:l,createHref:Qr.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let T3=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var o2=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(o2||{});const jr={type:T3.Static,value:""},Xr=/[a-zA-Z0-9_]/;function qr(e){if(!e)return[[]];if(e==="/")return[[jr]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(m){throw new Error(`ERR (${n})/"${c}": ${m}`)}let n=o2.Static,l=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,i,c="",d="";function u(){c&&(n===o2.Static?r.push({type:T3.Static,value:c}):n===o2.Param||n===o2.ParamRegExp||n===o2.ParamRegExpEnd?(r.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:T3.Param,value:c,regexp:d,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function A(){c+=i}for(;at.length?t.length===1&&t[0]===v2.Static+v2.Segment?1:-1:0}function y0(e,t){let n=0;const l=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const os={strict:!1,end:!0,sensitive:!1};function rs(e,t,n){const l=ns(qr(e.path),n),o=Q1(l,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function ss(e,t){const n=[],l=new Map;t=N6(os,t);function o(u){return l.get(u)}function r(u,A,m){const p=!m,y=Y6(u);y.aliasOf=m&&m.record;const k=N6(t,u),F=[y];if("alias"in u){const _=typeof u.alias=="string"?[u.alias]:u.alias;for(const R of _)F.push(Y6(Q1({},y,{components:m?m.record.components:y.components,path:R,aliasOf:m?m.record:y})))}let M,E;for(const _ of F){const{path:R}=_;if(A&&R[0]!=="/"){const $=A.record.path,D=$[$.length-1]==="/"?"":"/";_.path=A.record.path+(R&&D+R)}if(M=rs(_,A,k),m?m.alias.push(M):(E=E||M,E!==M&&E.alias.push(M),p&&u.name&&!V6(M)&&s(u.name)),b0(M)&&i(M),y.children){const $=y.children;for(let D=0;D<$.length;D++)r($[D],M,m&&m.children[D])}m=m||M}return E?()=>{s(E)}:Oe}function s(u){if(m0(u)){const A=l.get(u);A&&(l.delete(u),n.splice(n.indexOf(A),1),A.children.forEach(s),A.alias.forEach(s))}else{const A=n.indexOf(u);A>-1&&(n.splice(A,1),u.record.name&&l.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function a(){return n}function i(u){const A=cs(u,n);n.splice(A,0,u),u.record.name&&!V6(u)&&l.set(u.record.name,u)}function c(u,A){let m,p={},y,k;if("name"in u&&u.name){if(m=l.get(u.name),!m)throw de(X1.MATCHER_NOT_FOUND,{location:u});k=m.record.name,p=Q1(T6(A.params,m.keys.filter(E=>!E.optional).concat(m.parent?m.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),u.params&&T6(u.params,m.keys.map(E=>E.name))),y=m.stringify(p)}else if(u.path!=null)y=u.path,m=n.find(E=>E.re.test(y)),m&&(p=m.parse(y),k=m.record.name);else{if(m=A.name?l.get(A.name):n.find(E=>E.re.test(A.path)),!m)throw de(X1.MATCHER_NOT_FOUND,{location:u,currentLocation:A});k=m.record.name,p=Q1({},A.params,u.params),y=m.stringify(p)}const F=[];let M=m;for(;M;)F.unshift(M.record),M=M.parent;return{name:k,path:y,params:p,matched:F,meta:is(F)}}e.forEach(u=>r(u));function d(){n.length=0,l.clear()}return{addRoute:r,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:a,getRecordMatcher:o}}function T6(e,t){const n={};for(const l of t)l in e&&(n[l]=e[l]);return n}function Y6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:as(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function as(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const l in e.components)t[l]=typeof n=="object"?n[l]:n;return t}function V6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function is(e){return e.reduce((t,n)=>Q1(t,n.meta),{})}function cs(e,t){let n=0,l=t.length;for(;n!==l;){const r=n+l>>1;y0(e,t[r])<0?l=r:n=r+1}const o=us(e);return o&&(l=t.lastIndexOf(o,l-1)),l}function us(e){let t=e;for(;t=t.parent;)if(b0(t)&&y0(e,t)===0)return t}function b0({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function U6(e){const t=K2(u5),n=K2(Kt),l=t1(()=>{const i=f(e.to);return t.resolve(i)}),o=t1(()=>{const{matched:i}=l.value,{length:c}=i,d=i[c-1],u=n.matched;if(!d||!u.length)return-1;const A=u.findIndex(ue.bind(null,d));if(A>-1)return A;const m=J6(i[c-2]);return c>1&&J6(d)===m&&u[u.length-1].path!==m?u.findIndex(ue.bind(null,i[c-2])):A}),r=t1(()=>o.value>-1&&ps(n.params,l.value.params)),s=t1(()=>o.value>-1&&o.value===n.matched.length-1&&p0(n.params,l.value.params));function a(i={}){if(hs(i)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(Oe);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:l,href:t1(()=>l.value.href),isActive:r,isExactActive:s,navigate:a}}function ds(e){return e.length===1?e[0]:e}const fs=$1({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:U6,setup(e,{slots:t}){const n=t5(U6(e)),{options:l}=K2(u5),o=t1(()=>({[z6(e.activeClass,l.linkActiveClass,"router-link-active")]:n.isActive,[z6(e.exactActiveClass,l.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&ds(t.default(n));return e.custom?r:A3("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),As=fs;function hs(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ps(e,t){for(const n in t){const l=t[n],o=e[n];if(typeof l=="string"){if(l!==o)return!1}else if(!$2(o)||o.length!==l.length||l.some((r,s)=>r.valueOf()!==o[s].valueOf()))return!1}return!0}function J6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const z6=(e,t,n)=>e??t??n,ms=$1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const l=K2(ct),o=t1(()=>e.route||l.value),r=K2(W6,0),s=t1(()=>{let c=f(r);const{matched:d}=o.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=t1(()=>o.value.matched[s.value]);Z4(W6,t1(()=>s.value+1)),Z4(Tr,a),Z4(ct,o);const i=z();return t2(()=>[i.value,a.value,e.name],([c,d,u],[A,m,p])=>{d&&(d.instances[u]=c,m&&m!==d&&c&&c===A&&(d.leaveGuards.size||(d.leaveGuards=m.leaveGuards),d.updateGuards.size||(d.updateGuards=m.updateGuards))),c&&d&&(!m||!ue(d,m)||!A)&&(d.enterCallbacks[u]||[]).forEach(y=>y(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,u=a.value,A=u&&u.components[d];if(!A)return j6(n.default,{Component:A,route:c});const m=u.props[d],p=m?m===!0?c.params:typeof m=="function"?m(c):m:null,k=A3(A,Q1({},p,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(u.instances[d]=null)},ref:i}));return j6(n.default,{Component:k,route:c})||k}}});function j6(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const gs=ms;function vs(e){const t=ss(e.routes,e),n=e.parseQuery||Pr,l=e.stringifyQuery||$6,o=e.history,r=xe(),s=xe(),a=xe(),i=fl(b3);let c=b3;ne&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=F5.bind(null,S=>""+S),u=F5.bind(null,Ir),A=F5.bind(null,e4);function m(S,o1){let J,A1;return m0(S)?(J=t.getRecordMatcher(S),A1=o1):A1=S,t.addRoute(A1,J)}function p(S){const o1=t.getRecordMatcher(S);o1&&t.removeRoute(o1)}function y(){return t.getRoutes().map(S=>S.record)}function k(S){return!!t.getRecordMatcher(S)}function F(S,o1){if(o1=Q1({},o1||i.value),typeof S=="string"){const Z=B5(n,S,o1.path),L=t.resolve({path:Z.path},o1),T=o.createHref(Z.fullPath);return Q1(Z,L,{params:A(L.params),hash:e4(Z.hash),redirectedFrom:void 0,href:T})}let J;if(S.path!=null)J=Q1({},S,{path:B5(n,S.path,o1.path).path});else{const Z=Q1({},S.params);for(const L in Z)Z[L]==null&&delete Z[L];J=Q1({},S,{params:u(Z)}),o1.params=u(o1.params)}const A1=t.resolve(J,o1),x1=S.hash||"";A1.params=d(A(A1.params));const g=Dr(l,Q1({},S,{hash:wr(x1),path:A1.path})),v=o.createHref(g);return Q1({fullPath:g,hash:x1,query:l===$6?Hr(S.query):S.query||{}},A1,{redirectedFrom:void 0,href:v})}function M(S){return typeof S=="string"?B5(n,S,i.value.path):Q1({},S)}function E(S,o1){if(c!==S)return de(X1.NAVIGATION_CANCELLED,{from:o1,to:S})}function _(S){return D(S)}function R(S){return _(Q1(M(S),{replace:!0}))}function $(S,o1){const J=S.matched[S.matched.length-1];if(J&&J.redirect){const{redirect:A1}=J;let x1=typeof A1=="function"?A1(S,o1):A1;return typeof x1=="string"&&(x1=x1.includes("?")||x1.includes("#")?x1=M(x1):{path:x1},x1.params={}),Q1({query:S.query,hash:S.hash,params:x1.path!=null?{}:S.params},x1)}}function D(S,o1){const J=c=F(S),A1=i.value,x1=S.state,g=S.force,v=S.replace===!0,Z=$(J,A1);if(Z)return D(Q1(M(Z),{state:typeof Z=="object"?Q1({},x1,Z.state):x1,force:g,replace:v}),o1||J);const L=J;L.redirectedFrom=o1;let T;return!g&&Zr(l,A1,J)&&(T=de(X1.NAVIGATION_DUPLICATED,{to:L,from:A1}),L1(A1,A1,!0,!1)),(T?Promise.resolve(T):B(L,A1)).catch(W=>n3(W)?n3(W,X1.NAVIGATION_GUARD_REDIRECT)?W:c1(W):y1(W,L,A1)).then(W=>{if(W){if(n3(W,X1.NAVIGATION_GUARD_REDIRECT))return D(Q1({replace:v},M(W.to),{state:typeof W.to=="object"?Q1({},x1,W.to.state):x1,force:g}),o1||L)}else W=Y(L,A1,!0,v,x1);return X(L,A1,W),W})}function x(S,o1){const J=E(S,o1);return J?Promise.reject(J):Promise.resolve()}function Q(S){const o1=q1.values().next().value;return o1&&typeof o1.runWithContext=="function"?o1.runWithContext(S):S()}function B(S,o1){let J;const[A1,x1,g]=Yr(S,o1);J=R5(A1.reverse(),"beforeRouteLeave",S,o1);for(const Z of A1)Z.leaveGuards.forEach(L=>{J.push(x3(L,S,o1))});const v=x.bind(null,S,o1);return J.push(v),q(J).then(()=>{J=[];for(const Z of r.list())J.push(x3(Z,S,o1));return J.push(v),q(J)}).then(()=>{J=R5(x1,"beforeRouteUpdate",S,o1);for(const Z of x1)Z.updateGuards.forEach(L=>{J.push(x3(L,S,o1))});return J.push(v),q(J)}).then(()=>{J=[];for(const Z of g)if(Z.beforeEnter)if($2(Z.beforeEnter))for(const L of Z.beforeEnter)J.push(x3(L,S,o1));else J.push(x3(Z.beforeEnter,S,o1));return J.push(v),q(J)}).then(()=>(S.matched.forEach(Z=>Z.enterCallbacks={}),J=R5(g,"beforeRouteEnter",S,o1,Q),J.push(v),q(J))).then(()=>{J=[];for(const Z of s.list())J.push(x3(Z,S,o1));return J.push(v),q(J)}).catch(Z=>n3(Z,X1.NAVIGATION_CANCELLED)?Z:Promise.reject(Z))}function X(S,o1,J){a.list().forEach(A1=>Q(()=>A1(S,o1,J)))}function Y(S,o1,J,A1,x1){const g=E(S,o1);if(g)return g;const v=o1===b3,Z=ne?history.state:{};J&&(A1||v?o.replace(S.fullPath,Q1({scroll:v&&Z&&Z.scroll},x1)):o.push(S.fullPath,x1)),i.value=S,L1(S,o1,J,v),c1()}let m1;function w1(){m1||(m1=o.listen((S,o1,J)=>{if(!s1.listening)return;const A1=F(S),x1=$(A1,s1.currentRoute.value);if(x1){D(Q1(x1,{replace:!0,force:!0}),A1).catch(Oe);return}c=A1;const g=i.value;ne&&Gr(O6(g.fullPath,J.delta),c5()),B(A1,g).catch(v=>n3(v,X1.NAVIGATION_ABORTED|X1.NAVIGATION_CANCELLED)?v:n3(v,X1.NAVIGATION_GUARD_REDIRECT)?(D(Q1(M(v.to),{force:!0}),A1).then(Z=>{n3(Z,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&!J.delta&&J.type===at.pop&&o.go(-1,!1)}).catch(Oe),Promise.reject()):(J.delta&&o.go(-J.delta,!1),y1(v,A1,g))).then(v=>{v=v||Y(A1,g,!1),v&&(J.delta&&!n3(v,X1.NAVIGATION_CANCELLED)?o.go(-J.delta,!1):J.type===at.pop&&n3(v,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),X(A1,g,v)}).catch(Oe)}))}let r1=xe(),l1=xe(),b1;function y1(S,o1,J){c1(S);const A1=l1.list();return A1.length?A1.forEach(x1=>x1(S,o1,J)):console.error(S),Promise.reject(S)}function k1(){return b1&&i.value!==b3?Promise.resolve():new Promise((S,o1)=>{r1.add([S,o1])})}function c1(S){return b1||(b1=!S,w1(),r1.list().forEach(([o1,J])=>S?J(S):o1()),r1.reset()),S}function L1(S,o1,J,A1){const{scrollBehavior:x1}=e;if(!ne||!x1)return Promise.resolve();const g=!J&&Or(O6(S.fullPath,0))||(A1||!J)&&history.state&&history.state.scroll||null;return g8().then(()=>x1(S,o1,g)).then(v=>v&&Kr(v)).catch(v=>y1(v,S,o1))}const S1=S=>o.go(S);let Y1;const q1=new Set,s1={currentRoute:i,listening:!0,addRoute:m,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:y,resolve:F,options:e,push:_,replace:R,go:S1,back:()=>S1(-1),forward:()=>S1(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:l1.add,isReady:k1,install(S){S.component("RouterLink",As),S.component("RouterView",gs),S.config.globalProperties.$router=s1,Object.defineProperty(S.config.globalProperties,"$route",{enumerable:!0,get:()=>f(i)}),ne&&!Y1&&i.value===b3&&(Y1=!0,_(o.location).catch(A1=>{}));const o1={};for(const A1 in b3)Object.defineProperty(o1,A1,{get:()=>i.value[A1],enumerable:!0});S.provide(u5,s1),S.provide(Kt,A8(o1)),S.provide(ct,i);const J=S.unmount;q1.add(S),S.unmount=function(){q1.delete(S),q1.size<1&&(c=b3,m1&&m1(),m1=null,i.value=b3,Y1=!1,b1=!1),J()}}};function q(S){return S.reduce((o1,J)=>o1.then(()=>Q(J)),Promise.resolve())}return s1}function me(){return K2(u5)}function d5(e){return K2(Kt)}function k0(e){var t,n,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const n=new Array(e.length+t.length);for(let l=0;l({classGroupId:e,validator:t}),w0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),T4="-",X6=[],ks="arbitrary..",Cs=e=>{const t=xs(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return ws(s);const a=s.split(T4),i=a[0]===""&&a.length>1?1:0;return x0(a,i,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const i=l[s],c=n[s];return i?c?ys(c,i):i:c||X6}return n[s]||X6}}},x0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=x0(e,t+1,r);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(T4):e.slice(t).join(T4),i=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),l=t.slice(0,n);return l?ks+l:void 0})(),xs=e=>{const{theme:t,classGroups:n}=e;return _s(n,t)},_s=(e,t)=>{const n=w0();for(const l in e){const o=e[l];Gt(o,n,l,t)}return n},Gt=(e,t,n,l)=>{const o=e.length;for(let r=0;r{if(typeof e=="string"){Ms(e,t,n);return}if(typeof e=="function"){Es(e,t,n,l);return}Ds(e,t,n,l)},Ms=(e,t,n)=>{const l=e===""?t:_0(t,e);l.classGroupId=n},Es=(e,t,n,l)=>{if(Zs(e)){Gt(e(l),t,n,l);return}t.validators===null&&(t.validators=[]),t.validators.push(bs(n,e))},Ds=(e,t,n,l)=>{const o=Object.entries(e),r=o.length;for(let s=0;s{let n=e;const l=t.split(T4),o=l.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,Fs=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),l=Object.create(null);const o=(r,s)=>{n[r]=s,t++,t>e&&(t=0,l=n,n=Object.create(null))};return{get(r){let s=n[r];if(s!==void 0)return s;if((s=l[r])!==void 0)return o(r,s),s},set(r,s){r in n?n[r]=s:o(r,s)}}},ut="!",q6=":",Bs=[],e7=(e,t,n,l,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:l,isExternal:o}),Ss=e=>{const{prefix:t,experimentalParseClassName:n}=e;let l=o=>{const r=[];let s=0,a=0,i=0,c;const d=o.length;for(let y=0;yi?c-i:void 0;return e7(r,m,A,p)};if(t){const o=t+q6,r=l;l=s=>s.startsWith(o)?r(s.slice(o.length)):e7(Bs,!1,s,void 0,!0)}if(n){const o=l;l=r=>n({className:r,parseClassName:o})}return l},Rs=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,l)=>{t.set(n,1e6+l)}),n=>{const l=[];let o=[];for(let r=0;r0&&(o.sort(),l.push(...o),o=[]),l.push(s)):o.push(s)}return o.length>0&&(o.sort(),l.push(...o)),l}},Qs=e=>({cache:Fs(e.cacheSize),parseClassName:Ss(e),sortModifiers:Rs(e),postfixLookupClassGroupIds:Ns(e),...Cs(e)}),Ns=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let l=0;l{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:s}=t,a=[],i=e.trim().split(Ks);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{isExternal:A,modifiers:m,hasImportantModifier:p,baseClassName:y,maybePostfixModifierPosition:k}=n(u);if(A){c=u+(c.length>0?" "+c:c);continue}let F=!!k,M;if(F){const D=y.substring(0,k);M=l(D);const x=M&&s[M]?l(y):void 0;x&&x!==M&&(M=x,F=!1)}else M=l(y);if(!M){if(!F){c=u+(c.length>0?" "+c:c);continue}if(M=l(y),!M){c=u+(c.length>0?" "+c:c);continue}F=!1}const E=m.length===0?"":m.length===1?m[0]:r(m).join(":"),_=p?E+ut:E,R=_+M;if(a.indexOf(R)>-1)continue;a.push(R);const $=o(M,F);for(let D=0;D<$.length;++D){const x=$[D];a.push(_+x)}c=u+(c.length>0?" "+c:c)}return c},Os=(...e)=>{let t=0,n,l,o="";for(;t{if(typeof e=="string")return e;let t,n="";for(let l=0;l{let n,l,o,r;const s=i=>{const c=t.reduce((d,u)=>u(d),e());return n=Qs(c),l=n.cache.get,o=n.cache.set,r=a,a(i)},a=i=>{const c=l(i);if(c)return c;const d=Gs(i,n);return o(i,d),d};return r=s,(...i)=>r(Os(...i))},Ws=[],l2=e=>{const t=n=>n[e]||Ws;return t.isThemeGetter=!0,t},M0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,E0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ls=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Ps=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Hs=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Ts=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Ys=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Vs=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,k3=e=>Ls.test(e),Z1=e=>!!e&&!Number.isNaN(Number(e)),L2=e=>!!e&&Number.isInteger(Number(e)),Q5=e=>e.endsWith("%")&&Z1(e.slice(0,-1)),l3=e=>Ps.test(e),D0=()=>!0,Us=e=>Hs.test(e)&&!Ts.test(e),Ot=()=>!1,Js=e=>Ys.test(e),zs=e=>Vs.test(e),js=e=>!u1(e)&&!d1(e),Xs=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),qs=e=>F3(e,B0,Ot),u1=e=>M0.test(e),K3=e=>F3(e,S0,Us),t7=e=>F3(e,aa,Z1),ea=e=>F3(e,Q0,D0),ta=e=>F3(e,R0,Ot),n7=e=>F3(e,Z0,Ot),na=e=>F3(e,F0,zs),C4=e=>F3(e,N0,Js),d1=e=>E0.test(e),_e=e=>j3(e,S0),la=e=>j3(e,R0),l7=e=>j3(e,Z0),oa=e=>j3(e,B0),ra=e=>j3(e,F0),w4=e=>j3(e,N0,!0),sa=e=>j3(e,Q0,!0),F3=(e,t,n)=>{const l=M0.exec(e);return l?l[1]?t(l[1]):n(l[2]):!1},j3=(e,t,n=!1)=>{const l=E0.exec(e);return l?l[1]?t(l[1]):n:!1},Z0=e=>e==="position"||e==="percentage",F0=e=>e==="image"||e==="url",B0=e=>e==="length"||e==="size"||e==="bg-size",S0=e=>e==="length",aa=e=>e==="number",R0=e=>e==="family-name",Q0=e=>e==="number"||e==="weight",N0=e=>e==="shadow",ia=()=>{const e=l2("color"),t=l2("font"),n=l2("text"),l=l2("font-weight"),o=l2("tracking"),r=l2("leading"),s=l2("breakpoint"),a=l2("container"),i=l2("spacing"),c=l2("radius"),d=l2("shadow"),u=l2("inset-shadow"),A=l2("text-shadow"),m=l2("drop-shadow"),p=l2("blur"),y=l2("perspective"),k=l2("aspect"),F=l2("ease"),M=l2("animate"),E=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],R=()=>[..._(),d1,u1],$=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],x=()=>[d1,u1,i],Q=()=>[k3,"full","auto",...x()],B=()=>[L2,"none","subgrid",d1,u1],X=()=>["auto",{span:["full",L2,d1,u1]},L2,d1,u1],Y=()=>[L2,"auto",d1,u1],m1=()=>["auto","min","max","fr",d1,u1],w1=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],r1=()=>["start","end","center","stretch","center-safe","end-safe"],l1=()=>["auto",...x()],b1=()=>[k3,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...x()],y1=()=>[k3,"screen","full","dvw","lvw","svw","min","max","fit",...x()],k1=()=>[k3,"screen","full","lh","dvh","lvh","svh","min","max","fit",...x()],c1=()=>[e,d1,u1],L1=()=>[..._(),l7,n7,{position:[d1,u1]}],S1=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y1=()=>["auto","cover","contain",oa,qs,{size:[d1,u1]}],q1=()=>[Q5,_e,K3],s1=()=>["","none","full",c,d1,u1],q=()=>["",Z1,_e,K3],S=()=>["solid","dashed","dotted","double"],o1=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],J=()=>[Z1,Q5,l7,n7],A1=()=>["","none",p,d1,u1],x1=()=>["none",Z1,d1,u1],g=()=>["none",Z1,d1,u1],v=()=>[Z1,d1,u1],Z=()=>[k3,"full",...x()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[l3],breakpoint:[l3],color:[D0],container:[l3],"drop-shadow":[l3],ease:["in","out","in-out"],font:[js],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[l3],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[l3],shadow:[l3],spacing:["px",Z1],text:[l3],"text-shadow":[l3],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",k3,u1,d1,k]}],container:["container"],"container-type":[{"@container":["","normal","size",d1,u1]}],"container-named":[Xs],columns:[{columns:[Z1,u1,d1,a]}],"break-after":[{"break-after":E()}],"break-before":[{"break-before":E()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:R()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[L2,"auto",d1,u1]}],basis:[{basis:[k3,"full","auto",a,...x()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Z1,k3,"auto","initial","none",u1]}],grow:[{grow:["",Z1,d1,u1]}],shrink:[{shrink:["",Z1,d1,u1]}],order:[{order:[L2,"first","last","none",d1,u1]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:X()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:X()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":m1()}],"auto-rows":[{"auto-rows":m1()}],gap:[{gap:x()}],"gap-x":[{"gap-x":x()}],"gap-y":[{"gap-y":x()}],"justify-content":[{justify:[...w1(),"normal"]}],"justify-items":[{"justify-items":[...r1(),"normal"]}],"justify-self":[{"justify-self":["auto",...r1()]}],"align-content":[{content:["normal",...w1()]}],"align-items":[{items:[...r1(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...r1(),{baseline:["","last"]}]}],"place-content":[{"place-content":w1()}],"place-items":[{"place-items":[...r1(),"baseline"]}],"place-self":[{"place-self":["auto",...r1()]}],p:[{p:x()}],px:[{px:x()}],py:[{py:x()}],ps:[{ps:x()}],pe:[{pe:x()}],pbs:[{pbs:x()}],pbe:[{pbe:x()}],pt:[{pt:x()}],pr:[{pr:x()}],pb:[{pb:x()}],pl:[{pl:x()}],m:[{m:l1()}],mx:[{mx:l1()}],my:[{my:l1()}],ms:[{ms:l1()}],me:[{me:l1()}],mbs:[{mbs:l1()}],mbe:[{mbe:l1()}],mt:[{mt:l1()}],mr:[{mr:l1()}],mb:[{mb:l1()}],ml:[{ml:l1()}],"space-x":[{"space-x":x()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":x()}],"space-y-reverse":["space-y-reverse"],size:[{size:b1()}],"inline-size":[{inline:["auto",...y1()]}],"min-inline-size":[{"min-inline":["auto",...y1()]}],"max-inline-size":[{"max-inline":["none",...y1()]}],"block-size":[{block:["auto",...k1()]}],"min-block-size":[{"min-block":["auto",...k1()]}],"max-block-size":[{"max-block":["none",...k1()]}],w:[{w:[a,"screen",...b1()]}],"min-w":[{"min-w":[a,"screen","none",...b1()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...b1()]}],h:[{h:["screen","lh",...b1()]}],"min-h":[{"min-h":["screen","lh","none",...b1()]}],"max-h":[{"max-h":["screen","lh",...b1()]}],"font-size":[{text:["base",n,_e,K3]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,sa,ea]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Q5,u1]}],"font-family":[{font:[la,ta,t]}],"font-features":[{"font-features":[u1]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,d1,u1]}],"line-clamp":[{"line-clamp":[Z1,"none",d1,t7]}],leading:[{leading:[r,...x()]}],"list-image":[{"list-image":["none",d1,u1]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",d1,u1]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c1()}],"text-color":[{text:c1()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...S(),"wavy"]}],"text-decoration-thickness":[{decoration:[Z1,"from-font","auto",d1,K3]}],"text-decoration-color":[{decoration:c1()}],"underline-offset":[{"underline-offset":[Z1,"auto",d1,u1]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:x()}],"tab-size":[{tab:[L2,d1,u1]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",d1,u1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",d1,u1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L1()}],"bg-repeat":[{bg:S1()}],"bg-size":[{bg:Y1()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},L2,d1,u1],radial:["",d1,u1],conic:[L2,d1,u1]},ra,na]}],"bg-color":[{bg:c1()}],"gradient-from-pos":[{from:q1()}],"gradient-via-pos":[{via:q1()}],"gradient-to-pos":[{to:q1()}],"gradient-from":[{from:c1()}],"gradient-via":[{via:c1()}],"gradient-to":[{to:c1()}],rounded:[{rounded:s1()}],"rounded-s":[{"rounded-s":s1()}],"rounded-e":[{"rounded-e":s1()}],"rounded-t":[{"rounded-t":s1()}],"rounded-r":[{"rounded-r":s1()}],"rounded-b":[{"rounded-b":s1()}],"rounded-l":[{"rounded-l":s1()}],"rounded-ss":[{"rounded-ss":s1()}],"rounded-se":[{"rounded-se":s1()}],"rounded-ee":[{"rounded-ee":s1()}],"rounded-es":[{"rounded-es":s1()}],"rounded-tl":[{"rounded-tl":s1()}],"rounded-tr":[{"rounded-tr":s1()}],"rounded-br":[{"rounded-br":s1()}],"rounded-bl":[{"rounded-bl":s1()}],"border-w":[{border:q()}],"border-w-x":[{"border-x":q()}],"border-w-y":[{"border-y":q()}],"border-w-s":[{"border-s":q()}],"border-w-e":[{"border-e":q()}],"border-w-bs":[{"border-bs":q()}],"border-w-be":[{"border-be":q()}],"border-w-t":[{"border-t":q()}],"border-w-r":[{"border-r":q()}],"border-w-b":[{"border-b":q()}],"border-w-l":[{"border-l":q()}],"divide-x":[{"divide-x":q()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":q()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...S(),"hidden","none"]}],"divide-style":[{divide:[...S(),"hidden","none"]}],"border-color":[{border:c1()}],"border-color-x":[{"border-x":c1()}],"border-color-y":[{"border-y":c1()}],"border-color-s":[{"border-s":c1()}],"border-color-e":[{"border-e":c1()}],"border-color-bs":[{"border-bs":c1()}],"border-color-be":[{"border-be":c1()}],"border-color-t":[{"border-t":c1()}],"border-color-r":[{"border-r":c1()}],"border-color-b":[{"border-b":c1()}],"border-color-l":[{"border-l":c1()}],"divide-color":[{divide:c1()}],"outline-style":[{outline:[...S(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Z1,d1,u1]}],"outline-w":[{outline:["",Z1,_e,K3]}],"outline-color":[{outline:c1()}],shadow:[{shadow:["","none",d,w4,C4]}],"shadow-color":[{shadow:c1()}],"inset-shadow":[{"inset-shadow":["none",u,w4,C4]}],"inset-shadow-color":[{"inset-shadow":c1()}],"ring-w":[{ring:q()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c1()}],"ring-offset-w":[{"ring-offset":[Z1,K3]}],"ring-offset-color":[{"ring-offset":c1()}],"inset-ring-w":[{"inset-ring":q()}],"inset-ring-color":[{"inset-ring":c1()}],"text-shadow":[{"text-shadow":["none",A,w4,C4]}],"text-shadow-color":[{"text-shadow":c1()}],opacity:[{opacity:[Z1,d1,u1]}],"mix-blend":[{"mix-blend":[...o1(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":o1()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Z1]}],"mask-image-linear-from-pos":[{"mask-linear-from":J()}],"mask-image-linear-to-pos":[{"mask-linear-to":J()}],"mask-image-linear-from-color":[{"mask-linear-from":c1()}],"mask-image-linear-to-color":[{"mask-linear-to":c1()}],"mask-image-t-from-pos":[{"mask-t-from":J()}],"mask-image-t-to-pos":[{"mask-t-to":J()}],"mask-image-t-from-color":[{"mask-t-from":c1()}],"mask-image-t-to-color":[{"mask-t-to":c1()}],"mask-image-r-from-pos":[{"mask-r-from":J()}],"mask-image-r-to-pos":[{"mask-r-to":J()}],"mask-image-r-from-color":[{"mask-r-from":c1()}],"mask-image-r-to-color":[{"mask-r-to":c1()}],"mask-image-b-from-pos":[{"mask-b-from":J()}],"mask-image-b-to-pos":[{"mask-b-to":J()}],"mask-image-b-from-color":[{"mask-b-from":c1()}],"mask-image-b-to-color":[{"mask-b-to":c1()}],"mask-image-l-from-pos":[{"mask-l-from":J()}],"mask-image-l-to-pos":[{"mask-l-to":J()}],"mask-image-l-from-color":[{"mask-l-from":c1()}],"mask-image-l-to-color":[{"mask-l-to":c1()}],"mask-image-x-from-pos":[{"mask-x-from":J()}],"mask-image-x-to-pos":[{"mask-x-to":J()}],"mask-image-x-from-color":[{"mask-x-from":c1()}],"mask-image-x-to-color":[{"mask-x-to":c1()}],"mask-image-y-from-pos":[{"mask-y-from":J()}],"mask-image-y-to-pos":[{"mask-y-to":J()}],"mask-image-y-from-color":[{"mask-y-from":c1()}],"mask-image-y-to-color":[{"mask-y-to":c1()}],"mask-image-radial":[{"mask-radial":[d1,u1]}],"mask-image-radial-from-pos":[{"mask-radial-from":J()}],"mask-image-radial-to-pos":[{"mask-radial-to":J()}],"mask-image-radial-from-color":[{"mask-radial-from":c1()}],"mask-image-radial-to-color":[{"mask-radial-to":c1()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[Z1]}],"mask-image-conic-from-pos":[{"mask-conic-from":J()}],"mask-image-conic-to-pos":[{"mask-conic-to":J()}],"mask-image-conic-from-color":[{"mask-conic-from":c1()}],"mask-image-conic-to-color":[{"mask-conic-to":c1()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L1()}],"mask-repeat":[{mask:S1()}],"mask-size":[{mask:Y1()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",d1,u1]}],filter:[{filter:["","none",d1,u1]}],blur:[{blur:A1()}],brightness:[{brightness:[Z1,d1,u1]}],contrast:[{contrast:[Z1,d1,u1]}],"drop-shadow":[{"drop-shadow":["","none",m,w4,C4]}],"drop-shadow-color":[{"drop-shadow":c1()}],grayscale:[{grayscale:["",Z1,d1,u1]}],"hue-rotate":[{"hue-rotate":[Z1,d1,u1]}],invert:[{invert:["",Z1,d1,u1]}],saturate:[{saturate:[Z1,d1,u1]}],sepia:[{sepia:["",Z1,d1,u1]}],"backdrop-filter":[{"backdrop-filter":["","none",d1,u1]}],"backdrop-blur":[{"backdrop-blur":A1()}],"backdrop-brightness":[{"backdrop-brightness":[Z1,d1,u1]}],"backdrop-contrast":[{"backdrop-contrast":[Z1,d1,u1]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Z1,d1,u1]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Z1,d1,u1]}],"backdrop-invert":[{"backdrop-invert":["",Z1,d1,u1]}],"backdrop-opacity":[{"backdrop-opacity":[Z1,d1,u1]}],"backdrop-saturate":[{"backdrop-saturate":[Z1,d1,u1]}],"backdrop-sepia":[{"backdrop-sepia":["",Z1,d1,u1]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":x()}],"border-spacing-x":[{"border-spacing-x":x()}],"border-spacing-y":[{"border-spacing-y":x()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",d1,u1]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Z1,"initial",d1,u1]}],ease:[{ease:["linear","initial",F,d1,u1]}],delay:[{delay:[Z1,d1,u1]}],animate:[{animate:["none",M,d1,u1]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[y,d1,u1]}],"perspective-origin":[{"perspective-origin":R()}],rotate:[{rotate:x1()}],"rotate-x":[{"rotate-x":x1()}],"rotate-y":[{"rotate-y":x1()}],"rotate-z":[{"rotate-z":x1()}],scale:[{scale:g()}],"scale-x":[{"scale-x":g()}],"scale-y":[{"scale-y":g()}],"scale-z":[{"scale-z":g()}],"scale-3d":["scale-3d"],skew:[{skew:v()}],"skew-x":[{"skew-x":v()}],"skew-y":[{"skew-y":v()}],transform:[{transform:[d1,u1,"","none","gpu","cpu"]}],"transform-origin":[{origin:R()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],zoom:[{zoom:[L2,d1,u1]}],accent:[{accent:c1()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c1()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",d1,u1]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":c1()}],"scrollbar-track-color":[{"scrollbar-track":c1()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":x()}],"scroll-mx":[{"scroll-mx":x()}],"scroll-my":[{"scroll-my":x()}],"scroll-ms":[{"scroll-ms":x()}],"scroll-me":[{"scroll-me":x()}],"scroll-mbs":[{"scroll-mbs":x()}],"scroll-mbe":[{"scroll-mbe":x()}],"scroll-mt":[{"scroll-mt":x()}],"scroll-mr":[{"scroll-mr":x()}],"scroll-mb":[{"scroll-mb":x()}],"scroll-ml":[{"scroll-ml":x()}],"scroll-p":[{"scroll-p":x()}],"scroll-px":[{"scroll-px":x()}],"scroll-py":[{"scroll-py":x()}],"scroll-ps":[{"scroll-ps":x()}],"scroll-pe":[{"scroll-pe":x()}],"scroll-pbs":[{"scroll-pbs":x()}],"scroll-pbe":[{"scroll-pbe":x()}],"scroll-pt":[{"scroll-pt":x()}],"scroll-pr":[{"scroll-pr":x()}],"scroll-pb":[{"scroll-pb":x()}],"scroll-pl":[{"scroll-pl":x()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",d1,u1]}],fill:[{fill:["none",...c1()]}],"stroke-w":[{stroke:[Z1,_e,K3,t7]}],stroke:[{stroke:["none",...c1()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ca=$s(ia);function E1(...e){return ca(C0(e))}const ua=["src","alt"],da={key:1,class:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground"},fa=$1({__name:"Avatar",props:{src:{},alt:{},fallback:{default:"?"},size:{default:"md"},class:{}},setup(e){const t=e,n={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},l=z(!1),o=t1(()=>!t.src||l.value);return(r,s)=>(h(),C("div",{class:f1(f(E1)("relative flex shrink-0 overflow-hidden rounded-full",n[e.size],t.class))},[o.value?(h(),C("div",da,N(e.fallback),1)):(h(),C("img",{key:0,src:e.src??void 0,alt:e.alt,class:"aspect-square h-full w-full object-cover",onError:s[0]||(s[0]=a=>l.value=!0)},null,40,ua))],2))}}),o7=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,r7=C0,f5=(e,t)=>n=>{var l;if((t==null?void 0:t.variants)==null)return r7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,s=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],u=r==null?void 0:r[c];if(d===null)return null;const A=o7(d)||o7(u);return o[c][A]}),a=n&&Object.entries(n).reduce((c,d)=>{let[u,A]=d;return A===void 0||(c[u]=A),c},{}),i=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((c,d)=>{let{class:u,className:A,...m}=d;return Object.entries(m).every(p=>{let[y,k]=p;return Array.isArray(k)?k.includes({...r,...a}[y]):{...r,...a}[y]===k})?[...c,u,A]:c},[]);return r7(e,s,i,n==null?void 0:n.class,n==null?void 0:n.className)},c2=$1({__name:"Badge",props:{variant:{default:"default"},class:{}},setup(e){const t=f5("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground",success:"border-transparent bg-success/20 text-success",warning:"border-transparent bg-warning/20 text-warning",glow:"border-primary/30 bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}}),n=e;return(l,o)=>(h(),C("div",{class:f1(f(E1)(f(t)({variant:e.variant}),n.class))},[K1(l.$slots,"default")],2))}}),C1=$1({__name:"Button",props:{variant:{default:"default"},size:{default:"default"},as:{default:"button"},class:{},disabled:{type:Boolean}},setup(e){const t=f5("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glow:"bg-primary text-primary-foreground shadow-lg hover:bg-primary/90 glow-sm hover:glow"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=e;return(l,o)=>(h(),G(k2(e.as),{class:f1(f(E1)(f(t)({variant:e.variant,size:e.size}),n.class)),disabled:e.disabled},{default:w(()=>[K1(l.$slots,"default")]),_:3},8,["class","disabled"]))}}),z1=$1({__name:"Card",props:{class:{},hover:{type:Boolean,default:!1},glow:{type:Boolean,default:!1}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:f1(f(E1)("rounded-lg border bg-card text-card-foreground shadow-sm",e.hover&&"transition-all duration-200 hover:border-primary/50 hover:-translate-y-1",e.glow&&"glow-sm",t.class))},[K1(n.$slots,"default")],2))}}),Aa="modulepreload",ha=function(e){return"/"+e},s7={},x4=function(t,n,l){let o=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=s(n.map(c=>{if(c=ha(c),c in s7)return;s7[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const A=document.createElement("link");if(A.rel=d?"stylesheet":Aa,d||(A.as="script"),A.crossOrigin="",A.href=c,i&&A.setAttribute("nonce",i),document.head.appendChild(A),d)return new Promise((m,p)=>{A.addEventListener("load",m),A.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})},a7={decision:"bg-blue-600/10 text-blue-600 border-blue-600/20",constraint:"bg-amber-600/10 text-amber-600 border-amber-600/20",workaround:"bg-red-600/10 text-red-600 border-red-600/20",convention:"bg-violet-600/10 text-violet-600 border-violet-600/20",pattern:"bg-emerald-600/10 text-emerald-600 border-emerald-600/20",discussion:"bg-cyan-600/10 text-cyan-600 border-cyan-600/20",review:"bg-pink-600/10 text-pink-600 border-pink-600/20",plan:"bg-lime-600/10 text-lime-600 border-lime-600/20"},pa={decision:"bg-blue-600",constraint:"bg-amber-600",workaround:"bg-red-600",convention:"bg-violet-600",pattern:"bg-emerald-600",discussion:"bg-cyan-600",review:"bg-pink-600",plan:"bg-lime-600"},N5={system:"#7c3aed",part:"#d97706",contract:"#0891b2",decision:"#2563eb",constraint:"#d97706",workaround:"#dc2626",convention:"#7c3aed",pattern:"#059669",discussion:"#0891b2",review:"#db2777",plan:"#65a30d"};function K0(){const e="bg-muted text-muted-foreground border-border";function t(r){return a7[(r??"").toLowerCase()]??e}function n(r){return pa[(r??"").toLowerCase()]??"bg-muted-foreground"}function l(r){return N5[(r??"").toLowerCase()]??"#a1a1aa"}const o=Object.keys(N5).map(r=>({kind:r,label:r.charAt(0).toUpperCase()+r.slice(1),color:N5[r]}));return{tone:t,fill:n,ink:l,legend:o,kinds:Object.keys(a7)}}const _4="#6b7280",ma=$1({__name:"CodeGraph",props:{height:{default:"460px"},repo:{default:""},mode:{default:"2d"},data:{default:null},hidden:{default:()=>[]}},emits:["select"],setup(e,{expose:t,emit:n}){const l=n,o=e,r=Q=>[typeof Q.source=="object"?Q.source:null,typeof Q.target=="object"?Q.target:null],s=Q=>{const[B,X]=r(Q);return B&&X&&B.community===X.community&&B.community!==null?B:null},a=z(null);let i=null,c=null,d=null;const u=new Map,{ink:A}=K0(),m=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];function p(Q){if(typeof Q.community=="number")return m[Q.community%m.length];const B=(Q.kind||"").toLowerCase();return B==="code"?"#E20C18":B==="file"||["class","function","method","module","route","variable","symbol"].includes(B)?_4:A(B)}function y(Q){return Q&&Q.length>28?`${Q.slice(0,27)}…`:Q}const k=t1(()=>!!o.data&&o.data.nodes.length>0);t({hasGraph:k});const F=t1(()=>new Set(o.hidden));function M(){const Q=o.data??{nodes:[],links:[]},B=Q.nodes.filter(r1=>typeof r1.community!="number"||!F.value.has(r1.community)),X=new Set(B.map(r1=>r1.id)),Y=Math.max(1,...B.map(r1=>r1.degree??0)),m1=B.map(r1=>{const l1=u.get(r1.id);return{...r1,...l1??{},color:p(r1),radius:Math.min(3+2.4*Math.sqrt(r1.degree??0),11),named:(r1.degree??0)>=Math.max(4,Y*.5)}}),w1=Q.links.filter(r1=>X.has(String(r1.source))&&X.has(String(r1.target))).map(r1=>({...r1}));return{nodes:m1,links:w1}}function E(Q){return Math.max(.06,Math.min(.5,Math.sqrt(400/Math.max(1,Q))))}function _(Q,B){const X=parseInt(Q.slice(1),16),Y=Math.max(0,Math.min(1,B)).toFixed(3);return`rgba(${X>>16&255}, ${X>>8&255}, ${X&255}, ${Y})`}const R=Q=>Q==="tree"?"td":Q==="radial"?"radialout":Q==="layered"?"zout":null;function $(){if(i)for(const Q of i.graphData().nodes)Number.isFinite(Q.x)&&u.set(Q.id,{x:Q.x,y:Q.y,z:Q.z??0})}function D(){var Q;$(),i&&((Q=i._destructor)==null||Q.call(i),i=null),a.value&&(a.value.innerHTML="")}async function x(Q){var w1,r1;if(!a.value)return;const B=Q==="2d"?"2d":"3d";if(i&&c===B){B==="3d"&&i.dagMode(R(Q)),$(),i.graphData(M());return}if(D(),c=B,B==="2d"){const l1=(await x4(async()=>{const{default:s1}=await import("./force-graph-HZtkkbK0.js");return{default:s1}},__vite__mapDeps([0,1,2]))).default,{forceCollide:b1,forceManyBody:y1,forceX:k1,forceY:c1}=await x4(async()=>{const{forceCollide:s1,forceManyBody:q,forceX:S,forceY:o1}=await import("./index-DHVCIEzJ.js");return{forceCollide:s1,forceManyBody:q,forceX:S,forceY:o1}},__vite__mapDeps([3,1])),L1=M(),S1=E(L1.links.length);let Y1=null;i=new l1(a.value),i.backgroundColor("rgba(0,0,0,0)").graphData(L1).nodeRelSize(4).nodeColor(s1=>s1.color).nodeLabel(s1=>s1.path?`${s1.name} — ${s1.path}`:s1.name).nodeCanvasObject((s1,q,S)=>{const o1=!Y1||Y1===s1.id;if(q.globalAlpha=o1?1:.25,q.beginPath(),q.arc(s1.x,s1.y,s1.radius,0,2*Math.PI),q.fillStyle=s1.color,q.fill(),!s1.named&&Y1!==s1.id){q.globalAlpha=1;return}const J=Math.max(11/S,1.5);q.font=`${J}px ui-sans-serif, system-ui, sans-serif`,q.fillStyle=s1.color,q.textAlign="left",q.textBaseline="middle",q.fillText(y(s1.name),s1.x+s1.radius+2/S,s1.y),q.globalAlpha=1}).nodePointerAreaPaint((s1,q,S)=>{S.fillStyle=q,S.beginPath(),S.arc(s1.x,s1.y,s1.radius+2,0,2*Math.PI),S.fill()}).linkColor(s1=>{const q=s(s1);return _(q?q.color:_4,S1*(q?1.6:1))}).linkWidth(.6).linkDirectionalArrowLength(2.5).linkDirectionalArrowRelPos(1).linkLabel(s1=>s1.type??"").onNodeHover(s1=>{var q;Y1=s1?s1.id:null,a.value&&(a.value.style.cursor=s1?"pointer":""),(q=i==null?void 0:i.refresh)==null||q.call(i)}).width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(s1=>l("select",String(s1.id))),i.d3AlphaDecay(.02).d3VelocityDecay(.35).cooldownTicks(220),i.d3Force("charge",y1().strength(-140).distanceMax(420)),i.d3Force("center",null),i.d3Force("x",k1(0).strength(.03)),i.d3Force("y",c1(0).strength(.03)),i.d3Force("collide",b1(s1=>s1.radius+2).iterations(2)),(w1=i.d3Force("link"))==null||w1.distance(s1=>s(s1)?26:70).strength(s1=>s(s1)?.7:.08);let q1=!1;i.onEngineTick(()=>{!q1&&i.d3Force("link")&&(q1=!0,setTimeout(()=>i==null?void 0:i.zoomToFit(600,60),700))}),i.onEngineStop(()=>{$(),i==null||i.zoomToFit(600,60)});return}const X=(await x4(async()=>{const{default:l1}=await import("./3d-force-graph-B8lgMx4q.js");return{default:l1}},__vite__mapDeps([4,5,2,1]))).default,Y=await x4(()=>import("./three.module-D-PgY1-x.js").then(l1=>l1.df),[]),m1=M();i=new X(a.value),i.backgroundColor("rgba(0,0,0,0)").showNavInfo(!1).onDagError(()=>{}).dagLevelDistance(46).dagMode(R(Q)).graphData(m1).nodeLabel(l1=>l1.path?`${l1.name} — ${l1.path}`:l1.name).nodeThreeObject(l1=>{const b1=new Y.SphereGeometry(l1.radius,12,10),y1=new Y.MeshLambertMaterial({color:l1.color,transparent:!0,opacity:.92});return new Y.Mesh(b1,y1)}).linkColor(()=>_4).linkOpacity(E(m1.links.length)).linkWidth(.5).linkDirectionalArrowLength(2).linkDirectionalArrowRelPos(1).linkLabel(l1=>l1.type??"").width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(l1=>l("select",String(l1.id))),(r1=i.d3Force("charge"))==null||r1.strength(-140).distanceMax(420),i.onEngineStop(()=>{$(),i==null||i.zoomToFit(600,60)})}return d2(async()=>{await x(o.mode),d=new ResizeObserver(()=>{i&&a.value&&i.width(a.value.clientWidth).height(a.value.clientHeight)}),a.value&&d.observe(a.value)}),t2(()=>o.mode,Q=>x(Q)),t2(()=>o.repo,()=>{u.clear(),x(o.mode)}),t2(()=>o.data,()=>x(o.mode)),t2(()=>o.hidden,()=>x(o.mode),{deep:!0}),Ft(()=>{d&&(d.disconnect(),d=null),D()}),(Q,B)=>(h(),C("div",{ref_key:"el",ref:a,style:S2({height:o.height}),class:"w-full"},null,4))}}),ga=["for"],va={key:1,class:"mt-1 text-xs text-destructive"},ya={key:2,class:"mt-1 text-xs text-muted-foreground"},R2=$1({__name:"Field",props:{label:{},hint:{},error:{},for:{},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:f1(f(E1)("w-full",t.class))},[e.label?(h(),C("label",{key:0,for:t.for,class:"mb-1.5 flex items-center gap-2 text-xs font-medium uppercase tracking-wider text-muted-foreground"},[U(N(e.label)+" ",1),K1(n.$slots,"label")],8,ga)):P("",!0),K1(n.$slots,"default"),e.error?(h(),C("p",va,N(e.error),1)):e.hint?(h(),C("p",ya,N(e.hint),1)):P("",!0)],2))}}),G0=f5(["w-full rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"h-8 px-3 text-xs",default:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),ba=f5(["w-full resize-y rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"px-3 py-1.5 text-xs",default:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),ka=["value"],J3=$1({__name:"Input",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("input",{value:e.modelValue,class:f1(f(E1)(f(G0)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,ka))}}),Ca={class:"flex items-start gap-4"},wa={class:"min-w-0 flex-1"},xa={class:"mb-1 flex flex-wrap items-center gap-2"},_a={class:"break-all font-semibold"},Ia={key:0,class:"break-all font-mono text-sm text-muted-foreground"},Ma={key:1,class:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"},Ea={key:1,class:"flex shrink-0 items-center gap-1"},z3=$1({__name:"ItemCard",props:{title:{},subtitle:{},pillar:{default:"graph"},hover:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"};return(l,o)=>(h(),G(z1,{hover:e.hover,class:f1(f(E1)("p-5",t.class))},{default:w(()=>[b("div",Ca,[l.$slots.icon?(h(),C("div",{key:0,class:f1(f(E1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",n[e.pillar]))},[K1(l.$slots,"icon")],2)):P("",!0),b("div",wa,[b("div",xa,[b("h3",_a,N(e.title),1),K1(l.$slots,"badges")]),e.subtitle?(h(),C("p",Ia,N(e.subtitle),1)):P("",!0),K1(l.$slots,"default"),l.$slots.meta?(h(),C("div",Ma,[K1(l.$slots,"meta")])):P("",!0)]),l.$slots.actions?(h(),C("div",Ea,[K1(l.$slots,"actions")])):P("",!0)])]),_:3},8,["hover","class"]))}}),Da={class:"flex min-w-0 items-center gap-3"},Za={class:"min-w-0"},Fa={class:"flex flex-wrap items-center gap-2"},Ba={class:"text-xl font-semibold"},Sa={key:1,class:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-sm text-muted-foreground"},Ra={key:0,class:"flex flex-wrap items-center gap-2"},m3=$1({__name:"PageHead",props:{title:{},sub:{},pillar:{default:"graph"},tone:{},mono:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"},l={neutral:"bg-muted text-muted-foreground",info:"bg-primary/15 text-primary",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-destructive/15 text-destructive"},o=t1(()=>t.tone?l[t.tone]:n[t.pillar]);return(r,s)=>(h(),C("div",{class:f1(f(E1)("mb-6 flex flex-wrap items-start justify-between gap-4",t.class))},[b("div",Da,[K1(r.$slots,"back"),r.$slots.icon?(h(),C("div",{key:0,class:f1(f(E1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",o.value))},[K1(r.$slots,"icon")],2)):P("",!0),b("div",Za,[b("div",Fa,[b("h1",Ba,N(e.title),1),K1(r.$slots,"badges")]),e.sub?(h(),C("p",{key:0,class:f1(f(E1)("text-sm text-muted-foreground",e.mono&&"break-all font-mono"))},N(e.sub),3)):P("",!0),r.$slots.meta?(h(),C("div",Sa,[K1(r.$slots,"meta")])):P("",!0)])]),r.$slots.actions?(h(),C("div",Ra,[K1(r.$slots,"actions")])):P("",!0)],2))}}),Qa=["value"],j2=$1({__name:"Select",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("select",{value:e.modelValue,class:f1(f(E1)(f(G0)({size:e.size,invalid:e.invalid}),"w-auto",t.class)),onChange:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},[K1(n.$slots,"default")],42,Qa))}}),Na=["aria-label"],Ka=["aria-pressed","onClick"],ge=$1({__name:"Tabs",props:{modelValue:{},tabs:{},label:{},class:{}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("div",{role:"group","aria-label":e.label,class:f1(f(E1)("inline-flex rounded-md border bg-card p-0.5",t.class))},[(h(!0),C(n1,null,_1(e.tabs,o=>(h(),C("button",{key:o.id,type:"button","aria-pressed":e.modelValue===o.id,class:f1(f(E1)("rounded px-3 py-1 text-xs font-medium transition-colors",e.modelValue===o.id?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground")),onClick:r=>n.$emit("update:modelValue",o.id)},N(o.label),11,Ka))),128))],10,Na))}}),Ga=["value","rows"],dt=$1({__name:"Textarea",props:{modelValue:{},rows:{default:3},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("textarea",{value:e.modelValue,rows:e.rows,class:f1(f(E1)(f(ba)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,Ga))}});/** + */let Jr=()=>location.protocol+"//"+location.host;function y0(e,t){const{pathname:n,search:l,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),G6(a,"")}return G6(n,e)+l+o}function zr(e,t,n,l){let o=[],r=[],s=null;const a=({state:A})=>{const p=y0(e,location),m=n.value,k=t.value;let D=0;if(A){if(n.value=p,t.value=A,s&&s===m){s=null;return}D=k?A.position-k.position:0}else l(p);o.forEach(F=>{F(n.value,m,{delta:D,type:st.pop,direction:D?D>0?F5.forward:F5.back:F5.unknown})})};function i(){s=n.value}function c(A){o.push(A);const p=()=>{const m=o.indexOf(A);m>-1&&o.splice(m,1)};return r.push(p),p}function d(){if(document.visibilityState==="hidden"){const{history:A}=window;if(!A.state)return;A.replaceState(Q1({},A.state,{scroll:i5()}),"")}}function u(){for(const A of r)A();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:i,listen:c,destroy:u}}function P6(e,t,n,l=!1,o=!1){return{back:e,current:t,forward:n,replaced:l,position:window.history.length,scroll:o?i5():null}}function jr(e){const{history:t,location:n}=window,l={value:y0(e,n)},o={value:t.state};o.value||r(l.value,{back:null,current:l.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(i,c,d){const u=e.indexOf("#"),A=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+i:Jr()+e+i;try{t[d?"replaceState":"pushState"](c,"",A),o.value=c}catch(p){console.error(p),n[d?"replace":"assign"](A)}}function s(i,c){r(i,Q1({},t.state,P6(o.value.back,i,o.value.forward,!0),c,{position:o.value.position}),!0),l.value=i}function a(i,c){const d=Q1({},o.value,t.state,{forward:i,scroll:i5()});r(d.current,d,!0),r(i,Q1({},P6(l.value,i,null),{position:d.position+1},c),!1),l.value=i}return{location:l,state:o,push:a,replace:s}}function Xr(e){e=Qr(e);const t=jr(e),n=zr(e,t.state,t.location,t.replace);function l(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=Q1({location:"",base:e,go:l,createHref:Kr.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let H3=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var o2=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(o2||{});const qr={type:H3.Static,value:""},es=/[a-zA-Z0-9_]/;function ts(e){if(!e)return[[]];if(e==="/")return[[qr]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=o2.Static,l=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,i,c="",d="";function u(){c&&(n===o2.Static?r.push({type:H3.Static,value:c}):n===o2.Param||n===o2.ParamRegExp||n===o2.ParamRegExpEnd?(r.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:H3.Param,value:c,regexp:d,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function A(){c+=i}for(;at.length?t.length===1&&t[0]===v2.Static+v2.Segment?1:-1:0}function b0(e,t){let n=0;const l=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ss={strict:!1,end:!0,sensitive:!1};function as(e,t,n){const l=os(ts(e.path),n),o=Q1(l,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function is(e,t){const n=[],l=new Map;t=K6(ss,t);function o(u){return l.get(u)}function r(u,A,p){const m=!p,k=V6(u);k.aliasOf=p&&p.record;const D=K6(t,u),F=[k];if("alias"in u){const v=typeof u.alias=="string"?[u.alias]:u.alias;for(const S of v)F.push(V6(Q1({},k,{components:p?p.record.components:k.components,path:S,aliasOf:p?p.record:k})))}let C,I;for(const v of F){const{path:S}=v;if(A&&S[0]!=="/"){const L=A.record.path,Z=L[L.length-1]==="/"?"":"/";v.path=A.record.path+(S&&Z+S)}if(C=as(v,A,D),p?p.alias.push(C):(I=I||C,I!==C&&I.alias.push(C),m&&u.name&&!U6(C)&&s(u.name)),k0(C)&&i(C),k.children){const L=k.children;for(let Z=0;Z{s(I)}:$e}function s(u){if(g0(u)){const A=l.get(u);A&&(l.delete(u),n.splice(n.indexOf(A),1),A.children.forEach(s),A.alias.forEach(s))}else{const A=n.indexOf(u);A>-1&&(n.splice(A,1),u.record.name&&l.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function a(){return n}function i(u){const A=ds(u,n);n.splice(A,0,u),u.record.name&&!U6(u)&&l.set(u.record.name,u)}function c(u,A){let p,m={},k,D;if("name"in u&&u.name){if(p=l.get(u.name),!p)throw fe(X1.MATCHER_NOT_FOUND,{location:u});D=p.record.name,m=Q1(Y6(A.params,p.keys.filter(I=>!I.optional).concat(p.parent?p.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),u.params&&Y6(u.params,p.keys.map(I=>I.name))),k=p.stringify(m)}else if(u.path!=null)k=u.path,p=n.find(I=>I.re.test(k)),p&&(m=p.parse(k),D=p.record.name);else{if(p=A.name?l.get(A.name):n.find(I=>I.re.test(A.path)),!p)throw fe(X1.MATCHER_NOT_FOUND,{location:u,currentLocation:A});D=p.record.name,m=Q1({},A.params,u.params),k=p.stringify(m)}const F=[];let C=p;for(;C;)F.unshift(C.record),C=C.parent;return{name:D,path:k,params:m,matched:F,meta:us(F)}}e.forEach(u=>r(u));function d(){n.length=0,l.clear()}return{addRoute:r,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:a,getRecordMatcher:o}}function Y6(e,t){const n={};for(const l of t)l in e&&(n[l]=e[l]);return n}function V6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function cs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const l in e.components)t[l]=typeof n=="object"?n[l]:n;return t}function U6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function us(e){return e.reduce((t,n)=>Q1(t,n.meta),{})}function ds(e,t){let n=0,l=t.length;for(;n!==l;){const r=n+l>>1;b0(e,t[r])<0?l=r:n=r+1}const o=fs(e);return o&&(l=t.lastIndexOf(o,l-1)),l}function fs(e){let t=e;for(;t=t.parent;)if(k0(t)&&b0(e,t)===0)return t}function k0({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function J6(e){const t=G2(c5),n=G2(Kt),l=t1(()=>{const i=f(e.to);return t.resolve(i)}),o=t1(()=>{const{matched:i}=l.value,{length:c}=i,d=i[c-1],u=n.matched;if(!d||!u.length)return-1;const A=u.findIndex(de.bind(null,d));if(A>-1)return A;const p=z6(i[c-2]);return c>1&&z6(d)===p&&u[u.length-1].path!==p?u.findIndex(de.bind(null,i[c-2])):A}),r=t1(()=>o.value>-1&&gs(n.params,l.value.params)),s=t1(()=>o.value>-1&&o.value===n.matched.length-1&&m0(n.params,l.value.params));function a(i={}){if(ms(i)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch($e);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:l,href:t1(()=>l.value.href),isActive:r,isExactActive:s,navigate:a}}function As(e){return e.length===1?e[0]:e}const hs=W1({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:J6,setup(e,{slots:t}){const n=e5(J6(e)),{options:l}=G2(c5),o=t1(()=>({[j6(e.activeClass,l.linkActiveClass,"router-link-active")]:n.isActive,[j6(e.exactActiveClass,l.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&As(t.default(n));return e.custom?r:h3("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),ps=hs;function ms(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function gs(e,t){for(const n in t){const l=t[n],o=e[n];if(typeof l=="string"){if(l!==o)return!1}else if(!W2(o)||o.length!==l.length||l.some((r,s)=>r.valueOf()!==o[s].valueOf()))return!1}return!0}function z6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const j6=(e,t,n)=>e??t??n,vs=W1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const l=G2(it),o=t1(()=>e.route||l.value),r=G2(L6,0),s=t1(()=>{let c=f(r);const{matched:d}=o.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=t1(()=>o.value.matched[s.value]);D4(L6,t1(()=>s.value+1)),D4(Vr,a),D4(it,o);const i=j();return q1(()=>[i.value,a.value,e.name],([c,d,u],[A,p,m])=>{d&&(d.instances[u]=c,p&&p!==d&&c&&c===A&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!de(d,p)||!A)&&(d.enterCallbacks[u]||[]).forEach(k=>k(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,u=a.value,A=u&&u.components[d];if(!A)return X6(n.default,{Component:A,route:c});const p=u.props[d],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,D=h3(A,Q1({},m,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(u.instances[d]=null)},ref:i}));return X6(n.default,{Component:D,route:c})||D}}});function X6(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ys=vs;function bs(e){const t=is(e.routes,e),n=e.parseQuery||Hr,l=e.stringifyQuery||W6,o=e.history,r=_e(),s=_e(),a=_e(),i=hl(k3);let c=k3;le&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=D5.bind(null,$=>""+$),u=D5.bind(null,Er),A=D5.bind(null,e4);function p($,z){let K,f1;return g0($)?(K=t.getRecordMatcher($),f1=z):f1=$,t.addRoute(f1,K)}function m($){const z=t.getRecordMatcher($);z&&t.removeRoute(z)}function k(){return t.getRoutes().map($=>$.record)}function D($){return!!t.getRecordMatcher($)}function F($,z){if(z=Q1({},z||i.value),typeof $=="string"){const E=Z5(n,$,z.path),P=t.resolve({path:E.path},z),Y=o.createHref(E.fullPath);return Q1(E,P,{params:A(P.params),hash:e4(E.hash),redirectedFrom:void 0,href:Y})}let K;if($.path!=null)K=Q1({},$,{path:Z5(n,$.path,z.path).path});else{const E=Q1({},$.params);for(const P in E)E[P]==null&&delete E[P];K=Q1({},$,{params:u(E)}),z.params=u(z.params)}const f1=t.resolve(K,z),x1=$.hash||"";f1.params=d(A(f1.params));const g=Fr(l,Q1({},$,{hash:_r(x1),path:f1.path})),b=o.createHref(g);return Q1({fullPath:g,hash:x1,query:l===W6?Yr($.query):$.query||{}},f1,{redirectedFrom:void 0,href:b})}function C($){return typeof $=="string"?Z5(n,$,i.value.path):Q1({},$)}function I($,z){if(c!==$)return fe(X1.NAVIGATION_CANCELLED,{from:z,to:$})}function v($){return Z($)}function S($){return v(Q1(C($),{replace:!0}))}function L($,z){const K=$.matched[$.matched.length-1];if(K&&K.redirect){const{redirect:f1}=K;let x1=typeof f1=="function"?f1($,z):f1;return typeof x1=="string"&&(x1=x1.includes("?")||x1.includes("#")?x1=C(x1):{path:x1},x1.params={}),Q1({query:$.query,hash:$.hash,params:x1.path!=null?{}:$.params},x1)}}function Z($,z){const K=c=F($),f1=i.value,x1=$.state,g=$.force,b=$.replace===!0,E=L(K,f1);if(E)return Z(Q1(C(E),{state:typeof E=="object"?Q1({},x1,E.state):x1,force:g,replace:b}),z||K);const P=K;P.redirectedFrom=z;let Y;return!g&&Br(l,f1,K)&&(Y=fe(X1.NAVIGATION_DUPLICATED,{to:P,from:f1}),O1(f1,f1,!0,!1)),(Y?Promise.resolve(Y):B(P,f1)).catch(T=>l3(T)?l3(T,X1.NAVIGATION_GUARD_REDIRECT)?T:s1(T):C1(T,P,f1)).then(T=>{if(T){if(l3(T,X1.NAVIGATION_GUARD_REDIRECT))return Z(Q1({replace:b},C(T.to),{state:typeof T.to=="object"?Q1({},x1,T.to.state):x1,force:g}),z||P)}else T=V(P,f1,!0,b,x1);return q(P,f1,T),T})}function _($,z){const K=I($,z);return K?Promise.reject(K):Promise.resolve()}function R($){const z=e2.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext($):$()}function B($,z){let K;const[f1,x1,g]=Ur($,z);K=B5(f1.reverse(),"beforeRouteLeave",$,z);for(const E of f1)E.leaveGuards.forEach(P=>{K.push(_3(P,$,z))});const b=_.bind(null,$,z);return K.push(b),h1(K).then(()=>{K=[];for(const E of r.list())K.push(_3(E,$,z));return K.push(b),h1(K)}).then(()=>{K=B5(x1,"beforeRouteUpdate",$,z);for(const E of x1)E.updateGuards.forEach(P=>{K.push(_3(P,$,z))});return K.push(b),h1(K)}).then(()=>{K=[];for(const E of g)if(E.beforeEnter)if(W2(E.beforeEnter))for(const P of E.beforeEnter)K.push(_3(P,$,z));else K.push(_3(E.beforeEnter,$,z));return K.push(b),h1(K)}).then(()=>($.matched.forEach(E=>E.enterCallbacks={}),K=B5(g,"beforeRouteEnter",$,z,R),K.push(b),h1(K))).then(()=>{K=[];for(const E of s.list())K.push(_3(E,$,z));return K.push(b),h1(K)}).catch(E=>l3(E,X1.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function q($,z,K){a.list().forEach(f1=>R(()=>f1($,z,K)))}function V($,z,K,f1,x1){const g=I($,z);if(g)return g;const b=z===k3,E=le?history.state:{};K&&(f1||b?o.replace($.fullPath,Q1({scroll:b&&E&&E.scroll},x1)):o.push($.fullPath,x1)),i.value=$,O1($,z,K,b),s1()}let m1;function y1(){m1||(m1=o.listen(($,z,K)=>{if(!a1.listening)return;const f1=F($),x1=L(f1,a1.currentRoute.value);if(x1){Z(Q1(x1,{replace:!0,force:!0}),f1).catch($e);return}c=f1;const g=i.value;le&&$r($6(g.fullPath,K.delta),i5()),B(f1,g).catch(b=>l3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_CANCELLED)?b:l3(b,X1.NAVIGATION_GUARD_REDIRECT)?(Z(Q1(C(b.to),{force:!0}),f1).then(E=>{l3(E,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===st.pop&&o.go(-1,!1)}).catch($e),Promise.reject()):(K.delta&&o.go(-K.delta,!1),C1(b,f1,g))).then(b=>{b=b||V(f1,g,!1),b&&(K.delta&&!l3(b,X1.NAVIGATION_CANCELLED)?o.go(-K.delta,!1):K.type===st.pop&&l3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),q(f1,g,b)}).catch($e)}))}let l1=_e(),o1=_e(),v1;function C1($,z,K){s1($);const f1=o1.list();return f1.length?f1.forEach(x1=>x1($,z,K)):console.error($),Promise.reject($)}function k1(){return v1&&i.value!==k3?Promise.resolve():new Promise(($,z)=>{l1.add([$,z])})}function s1($){return v1||(v1=!$,y1(),l1.list().forEach(([z,K])=>$?K($):z()),l1.reset()),$}function O1($,z,K,f1){const{scrollBehavior:x1}=e;if(!le||!x1)return Promise.resolve();const g=!K&&Wr($6($.fullPath,0))||(f1||!K)&&history.state&&history.state.scroll||null;return v8().then(()=>x1($,z,g)).then(b=>b&&Or(b)).catch(b=>C1(b,$,z))}const F1=$=>o.go($);let V1;const e2=new Set,a1={currentRoute:i,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:k,resolve:F,options:e,push:v,replace:S,go:F1,back:()=>F1(-1),forward:()=>F1(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:o1.add,isReady:k1,install($){$.component("RouterLink",ps),$.component("RouterView",ys),$.config.globalProperties.$router=a1,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>f(i)}),le&&!V1&&i.value===k3&&(V1=!0,v(o.location).catch(f1=>{}));const z={};for(const f1 in k3)Object.defineProperty(z,f1,{get:()=>i.value[f1],enumerable:!0});$.provide(c5,a1),$.provide(Kt,h8(z)),$.provide(it,i);const K=$.unmount;e2.add($),$.unmount=function(){e2.delete($),e2.size<1&&(c=k3,m1&&m1(),m1=null,i.value=k3,V1=!1,v1=!1),K()}}};function h1($){return $.reduce((z,K)=>z.then(()=>R(K)),Promise.resolve())}return a1}function ve(){return G2(c5)}function u5(e){return G2(Kt)}function C0(e){var t,n,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const n=new Array(e.length+t.length);for(let l=0;l({classGroupId:e,validator:t}),x0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),T4="-",q6=[],ws="arbitrary..",xs=e=>{const t=Is(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return _s(s);const a=s.split(T4),i=a[0]===""&&a.length>1?1:0;return _0(a,i,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const i=l[s],c=n[s];return i?c?ks(c,i):i:c||q6}return n[s]||q6}}},_0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=_0(e,t+1,r);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(T4):e.slice(t).join(T4),i=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),l=t.slice(0,n);return l?ws+l:void 0})(),Is=e=>{const{theme:t,classGroups:n}=e;return Ms(n,t)},Ms=(e,t)=>{const n=x0();for(const l in e){const o=e[l];Gt(o,n,l,t)}return n},Gt=(e,t,n,l)=>{const o=e.length;for(let r=0;r{if(typeof e=="string"){Ds(e,t,n);return}if(typeof e=="function"){Zs(e,t,n,l);return}Fs(e,t,n,l)},Ds=(e,t,n)=>{const l=e===""?t:I0(t,e);l.classGroupId=n},Zs=(e,t,n,l)=>{if(Bs(e)){Gt(e(l),t,n,l);return}t.validators===null&&(t.validators=[]),t.validators.push(Cs(n,e))},Fs=(e,t,n,l)=>{const o=Object.entries(e),r=o.length;for(let s=0;s{let n=e;const l=t.split(T4),o=l.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,Ss=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),l=Object.create(null);const o=(r,s)=>{n[r]=s,t++,t>e&&(t=0,l=n,n=Object.create(null))};return{get(r){let s=n[r];if(s!==void 0)return s;if((s=l[r])!==void 0)return o(r,s),s},set(r,s){r in n?n[r]=s:o(r,s)}}},ct="!",e7=":",Rs=[],t7=(e,t,n,l,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:l,isExternal:o}),Qs=e=>{const{prefix:t,experimentalParseClassName:n}=e;let l=o=>{const r=[];let s=0,a=0,i=0,c;const d=o.length;for(let k=0;ki?c-i:void 0;return t7(r,p,A,m)};if(t){const o=t+e7,r=l;l=s=>s.startsWith(o)?r(s.slice(o.length)):t7(Rs,!1,s,void 0,!0)}if(n){const o=l;l=r=>n({className:r,parseClassName:o})}return l},Ns=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,l)=>{t.set(n,1e6+l)}),n=>{const l=[];let o=[];for(let r=0;r0&&(o.sort(),l.push(...o),o=[]),l.push(s)):o.push(s)}return o.length>0&&(o.sort(),l.push(...o)),l}},Ks=e=>({cache:Ss(e.cacheSize),parseClassName:Qs(e),sortModifiers:Ns(e),postfixLookupClassGroupIds:Gs(e),...xs(e)}),Gs=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let l=0;l{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:s}=t,a=[],i=e.trim().split(Os);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{isExternal:A,modifiers:p,hasImportantModifier:m,baseClassName:k,maybePostfixModifierPosition:D}=n(u);if(A){c=u+(c.length>0?" "+c:c);continue}let F=!!D,C;if(F){const Z=k.substring(0,D);C=l(Z);const _=C&&s[C]?l(k):void 0;_&&_!==C&&(C=_,F=!1)}else C=l(k);if(!C){if(!F){c=u+(c.length>0?" "+c:c);continue}if(C=l(k),!C){c=u+(c.length>0?" "+c:c);continue}F=!1}const I=p.length===0?"":p.length===1?p[0]:r(p).join(":"),v=m?I+ct:I,S=v+C;if(a.indexOf(S)>-1)continue;a.push(S);const L=o(C,F);for(let Z=0;Z0?" "+c:c)}return c},Ws=(...e)=>{let t=0,n,l,o="";for(;t{if(typeof e=="string")return e;let t,n="";for(let l=0;l{let n,l,o,r;const s=i=>{const c=t.reduce((d,u)=>u(d),e());return n=Ks(c),l=n.cache.get,o=n.cache.set,r=a,a(i)},a=i=>{const c=l(i);if(c)return c;const d=$s(i,n);return o(i,d),d};return r=s,(...i)=>r(Ws(...i))},Ps=[],l2=e=>{const t=n=>n[e]||Ps;return t.isThemeGetter=!0,t},E0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,D0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ts=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Hs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ys=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Us=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Js=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C3=e=>Ts.test(e),E1=e=>!!e&&!Number.isNaN(Number(e)),P2=e=>!!e&&Number.isInteger(Number(e)),S5=e=>e.endsWith("%")&&E1(e.slice(0,-1)),o3=e=>Hs.test(e),Z0=()=>!0,zs=e=>Ys.test(e)&&!Vs.test(e),Ot=()=>!1,js=e=>Us.test(e),Xs=e=>Js.test(e),qs=e=>!c1(e)&&!u1(e),ea=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ta=e=>B3(e,S0,Ot),c1=e=>E0.test(e),K3=e=>B3(e,R0,zs),n7=e=>B3(e,ca,E1),na=e=>B3(e,N0,Z0),la=e=>B3(e,Q0,Ot),l7=e=>B3(e,F0,Ot),oa=e=>B3(e,B0,Xs),k4=e=>B3(e,K0,js),u1=e=>D0.test(e),Ie=e=>j3(e,R0),ra=e=>j3(e,Q0),o7=e=>j3(e,F0),sa=e=>j3(e,S0),aa=e=>j3(e,B0),C4=e=>j3(e,K0,!0),ia=e=>j3(e,N0,!0),B3=(e,t,n)=>{const l=E0.exec(e);return l?l[1]?t(l[1]):n(l[2]):!1},j3=(e,t,n=!1)=>{const l=D0.exec(e);return l?l[1]?t(l[1]):n:!1},F0=e=>e==="position"||e==="percentage",B0=e=>e==="image"||e==="url",S0=e=>e==="length"||e==="size"||e==="bg-size",R0=e=>e==="length",ca=e=>e==="number",Q0=e=>e==="family-name",N0=e=>e==="number"||e==="weight",K0=e=>e==="shadow",ua=()=>{const e=l2("color"),t=l2("font"),n=l2("text"),l=l2("font-weight"),o=l2("tracking"),r=l2("leading"),s=l2("breakpoint"),a=l2("container"),i=l2("spacing"),c=l2("radius"),d=l2("shadow"),u=l2("inset-shadow"),A=l2("text-shadow"),p=l2("drop-shadow"),m=l2("blur"),k=l2("perspective"),D=l2("aspect"),F=l2("ease"),C=l2("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...v(),u1,c1],L=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],_=()=>[u1,c1,i],R=()=>[C3,"full","auto",..._()],B=()=>[P2,"none","subgrid",u1,c1],q=()=>["auto",{span:["full",P2,u1,c1]},P2,u1,c1],V=()=>[P2,"auto",u1,c1],m1=()=>["auto","min","max","fr",u1,c1],y1=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],l1=()=>["start","end","center","stretch","center-safe","end-safe"],o1=()=>["auto",..._()],v1=()=>[C3,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C1=()=>[C3,"screen","full","dvw","lvw","svw","min","max","fit",..._()],k1=()=>[C3,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],s1=()=>[e,u1,c1],O1=()=>[...v(),o7,l7,{position:[u1,c1]}],F1=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V1=()=>["auto","cover","contain",sa,ta,{size:[u1,c1]}],e2=()=>[S5,Ie,K3],a1=()=>["","none","full",c,u1,c1],h1=()=>["",E1,Ie,K3],$=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[E1,S5,o7,l7],f1=()=>["","none",m,u1,c1],x1=()=>["none",E1,u1,c1],g=()=>["none",E1,u1,c1],b=()=>[E1,u1,c1],E=()=>[C3,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[o3],breakpoint:[o3],color:[Z0],container:[o3],"drop-shadow":[o3],ease:["in","out","in-out"],font:[qs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[o3],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[o3],shadow:[o3],spacing:["px",E1],text:[o3],"text-shadow":[o3],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C3,c1,u1,D]}],container:["container"],"container-type":[{"@container":["","normal","size",u1,c1]}],"container-named":[ea],columns:[{columns:[E1,c1,u1,a]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[P2,"auto",u1,c1]}],basis:[{basis:[C3,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E1,C3,"auto","initial","none",c1]}],grow:[{grow:["",E1,u1,c1]}],shrink:[{shrink:["",E1,u1,c1]}],order:[{order:[P2,"first","last","none",u1,c1]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":m1()}],"auto-rows":[{"auto-rows":m1()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...y1(),"normal"]}],"justify-items":[{"justify-items":[...l1(),"normal"]}],"justify-self":[{"justify-self":["auto",...l1()]}],"align-content":[{content:["normal",...y1()]}],"align-items":[{items:[...l1(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...l1(),{baseline:["","last"]}]}],"place-content":[{"place-content":y1()}],"place-items":[{"place-items":[...l1(),"baseline"]}],"place-self":[{"place-self":["auto",...l1()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:o1()}],mx:[{mx:o1()}],my:[{my:o1()}],ms:[{ms:o1()}],me:[{me:o1()}],mbs:[{mbs:o1()}],mbe:[{mbe:o1()}],mt:[{mt:o1()}],mr:[{mr:o1()}],mb:[{mb:o1()}],ml:[{ml:o1()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:v1()}],"inline-size":[{inline:["auto",...C1()]}],"min-inline-size":[{"min-inline":["auto",...C1()]}],"max-inline-size":[{"max-inline":["none",...C1()]}],"block-size":[{block:["auto",...k1()]}],"min-block-size":[{"min-block":["auto",...k1()]}],"max-block-size":[{"max-block":["none",...k1()]}],w:[{w:[a,"screen",...v1()]}],"min-w":[{"min-w":[a,"screen","none",...v1()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...v1()]}],h:[{h:["screen","lh",...v1()]}],"min-h":[{"min-h":["screen","lh","none",...v1()]}],"max-h":[{"max-h":["screen","lh",...v1()]}],"font-size":[{text:["base",n,Ie,K3]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ia,na]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",S5,c1]}],"font-family":[{font:[ra,la,t]}],"font-features":[{"font-features":[c1]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,u1,c1]}],"line-clamp":[{"line-clamp":[E1,"none",u1,n7]}],leading:[{leading:[r,..._()]}],"list-image":[{"list-image":["none",u1,c1]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u1,c1]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:s1()}],"text-color":[{text:s1()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[E1,"from-font","auto",u1,K3]}],"text-decoration-color":[{decoration:s1()}],"underline-offset":[{"underline-offset":[E1,"auto",u1,c1]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"tab-size":[{tab:[P2,u1,c1]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u1,c1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u1,c1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O1()}],"bg-repeat":[{bg:F1()}],"bg-size":[{bg:V1()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P2,u1,c1],radial:["",u1,c1],conic:[P2,u1,c1]},aa,oa]}],"bg-color":[{bg:s1()}],"gradient-from-pos":[{from:e2()}],"gradient-via-pos":[{via:e2()}],"gradient-to-pos":[{to:e2()}],"gradient-from":[{from:s1()}],"gradient-via":[{via:s1()}],"gradient-to":[{to:s1()}],rounded:[{rounded:a1()}],"rounded-s":[{"rounded-s":a1()}],"rounded-e":[{"rounded-e":a1()}],"rounded-t":[{"rounded-t":a1()}],"rounded-r":[{"rounded-r":a1()}],"rounded-b":[{"rounded-b":a1()}],"rounded-l":[{"rounded-l":a1()}],"rounded-ss":[{"rounded-ss":a1()}],"rounded-se":[{"rounded-se":a1()}],"rounded-ee":[{"rounded-ee":a1()}],"rounded-es":[{"rounded-es":a1()}],"rounded-tl":[{"rounded-tl":a1()}],"rounded-tr":[{"rounded-tr":a1()}],"rounded-br":[{"rounded-br":a1()}],"rounded-bl":[{"rounded-bl":a1()}],"border-w":[{border:h1()}],"border-w-x":[{"border-x":h1()}],"border-w-y":[{"border-y":h1()}],"border-w-s":[{"border-s":h1()}],"border-w-e":[{"border-e":h1()}],"border-w-bs":[{"border-bs":h1()}],"border-w-be":[{"border-be":h1()}],"border-w-t":[{"border-t":h1()}],"border-w-r":[{"border-r":h1()}],"border-w-b":[{"border-b":h1()}],"border-w-l":[{"border-l":h1()}],"divide-x":[{"divide-x":h1()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":h1()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:s1()}],"border-color-x":[{"border-x":s1()}],"border-color-y":[{"border-y":s1()}],"border-color-s":[{"border-s":s1()}],"border-color-e":[{"border-e":s1()}],"border-color-bs":[{"border-bs":s1()}],"border-color-be":[{"border-be":s1()}],"border-color-t":[{"border-t":s1()}],"border-color-r":[{"border-r":s1()}],"border-color-b":[{"border-b":s1()}],"border-color-l":[{"border-l":s1()}],"divide-color":[{divide:s1()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E1,u1,c1]}],"outline-w":[{outline:["",E1,Ie,K3]}],"outline-color":[{outline:s1()}],shadow:[{shadow:["","none",d,C4,k4]}],"shadow-color":[{shadow:s1()}],"inset-shadow":[{"inset-shadow":["none",u,C4,k4]}],"inset-shadow-color":[{"inset-shadow":s1()}],"ring-w":[{ring:h1()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:s1()}],"ring-offset-w":[{"ring-offset":[E1,K3]}],"ring-offset-color":[{"ring-offset":s1()}],"inset-ring-w":[{"inset-ring":h1()}],"inset-ring-color":[{"inset-ring":s1()}],"text-shadow":[{"text-shadow":["none",A,C4,k4]}],"text-shadow-color":[{"text-shadow":s1()}],opacity:[{opacity:[E1,u1,c1]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E1]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":s1()}],"mask-image-linear-to-color":[{"mask-linear-to":s1()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":s1()}],"mask-image-t-to-color":[{"mask-t-to":s1()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":s1()}],"mask-image-r-to-color":[{"mask-r-to":s1()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":s1()}],"mask-image-b-to-color":[{"mask-b-to":s1()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":s1()}],"mask-image-l-to-color":[{"mask-l-to":s1()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":s1()}],"mask-image-x-to-color":[{"mask-x-to":s1()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":s1()}],"mask-image-y-to-color":[{"mask-y-to":s1()}],"mask-image-radial":[{"mask-radial":[u1,c1]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":s1()}],"mask-image-radial-to-color":[{"mask-radial-to":s1()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[E1]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":s1()}],"mask-image-conic-to-color":[{"mask-conic-to":s1()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O1()}],"mask-repeat":[{mask:F1()}],"mask-size":[{mask:V1()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u1,c1]}],filter:[{filter:["","none",u1,c1]}],blur:[{blur:f1()}],brightness:[{brightness:[E1,u1,c1]}],contrast:[{contrast:[E1,u1,c1]}],"drop-shadow":[{"drop-shadow":["","none",p,C4,k4]}],"drop-shadow-color":[{"drop-shadow":s1()}],grayscale:[{grayscale:["",E1,u1,c1]}],"hue-rotate":[{"hue-rotate":[E1,u1,c1]}],invert:[{invert:["",E1,u1,c1]}],saturate:[{saturate:[E1,u1,c1]}],sepia:[{sepia:["",E1,u1,c1]}],"backdrop-filter":[{"backdrop-filter":["","none",u1,c1]}],"backdrop-blur":[{"backdrop-blur":f1()}],"backdrop-brightness":[{"backdrop-brightness":[E1,u1,c1]}],"backdrop-contrast":[{"backdrop-contrast":[E1,u1,c1]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E1,u1,c1]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E1,u1,c1]}],"backdrop-invert":[{"backdrop-invert":["",E1,u1,c1]}],"backdrop-opacity":[{"backdrop-opacity":[E1,u1,c1]}],"backdrop-saturate":[{"backdrop-saturate":[E1,u1,c1]}],"backdrop-sepia":[{"backdrop-sepia":["",E1,u1,c1]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u1,c1]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E1,"initial",u1,c1]}],ease:[{ease:["linear","initial",F,u1,c1]}],delay:[{delay:[E1,u1,c1]}],animate:[{animate:["none",C,u1,c1]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,u1,c1]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:x1()}],"rotate-x":[{"rotate-x":x1()}],"rotate-y":[{"rotate-y":x1()}],"rotate-z":[{"rotate-z":x1()}],scale:[{scale:g()}],"scale-x":[{"scale-x":g()}],"scale-y":[{"scale-y":g()}],"scale-z":[{"scale-z":g()}],"scale-3d":["scale-3d"],skew:[{skew:b()}],"skew-x":[{"skew-x":b()}],"skew-y":[{"skew-y":b()}],transform:[{transform:[u1,c1,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:E()}],"translate-x":[{"translate-x":E()}],"translate-y":[{"translate-y":E()}],"translate-z":[{"translate-z":E()}],"translate-none":["translate-none"],zoom:[{zoom:[P2,u1,c1]}],accent:[{accent:s1()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:s1()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u1,c1]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":s1()}],"scrollbar-track-color":[{"scrollbar-track":s1()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u1,c1]}],fill:[{fill:["none",...s1()]}],"stroke-w":[{stroke:[E1,Ie,K3,n7]}],stroke:[{stroke:["none",...s1()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},da=Ls(ua);function w1(...e){return da(w0(e))}const fa=["src","alt"],Aa={key:1,class:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground"},ha=W1({__name:"Avatar",props:{src:{},alt:{},fallback:{default:"?"},size:{default:"md"},class:{}},setup(e){const t=e,n={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},l=j(!1),o=t1(()=>!t.src||l.value);return(r,s)=>(h(),w("div",{class:i1(f(w1)("relative flex shrink-0 overflow-hidden rounded-full",n[e.size],t.class))},[o.value?(h(),w("div",Aa,Q(e.fallback),1)):(h(),w("img",{key:0,src:e.src??void 0,alt:e.alt,class:"aspect-square h-full w-full object-cover",onError:s[0]||(s[0]=a=>l.value=!0)},null,40,fa))],2))}}),r7=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,s7=w0,d5=(e,t)=>n=>{var l;if((t==null?void 0:t.variants)==null)return s7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,s=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],u=r==null?void 0:r[c];if(d===null)return null;const A=r7(d)||r7(u);return o[c][A]}),a=n&&Object.entries(n).reduce((c,d)=>{let[u,A]=d;return A===void 0||(c[u]=A),c},{}),i=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((c,d)=>{let{class:u,className:A,...p}=d;return Object.entries(p).every(m=>{let[k,D]=m;return Array.isArray(D)?D.includes({...r,...a}[k]):{...r,...a}[k]===D})?[...c,u,A]:c},[]);return s7(e,s,i,n==null?void 0:n.class,n==null?void 0:n.className)},c2=W1({__name:"Badge",props:{variant:{default:"default"},class:{}},setup(e){const t=d5("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground",success:"border-transparent bg-success/20 text-success",warning:"border-transparent bg-warning/20 text-warning",glow:"border-primary/30 bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}}),n=e;return(l,o)=>(h(),w("div",{class:i1(f(w1)(f(t)({variant:e.variant}),n.class))},[K1(l.$slots,"default")],2))}}),b1=W1({__name:"Button",props:{variant:{default:"default"},size:{default:"default"},as:{default:"button"},class:{},disabled:{type:Boolean}},setup(e){const t=d5("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glow:"bg-primary text-primary-foreground shadow-lg hover:bg-primary/90 glow-sm hover:glow"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=e;return(l,o)=>(h(),G(k2(e.as),{class:i1(f(w1)(f(t)({variant:e.variant,size:e.size}),n.class)),disabled:e.disabled},{default:x(()=>[K1(l.$slots,"default")]),_:3},8,["class","disabled"]))}}),z1=W1({__name:"Card",props:{class:{},hover:{type:Boolean,default:!1},glow:{type:Boolean,default:!1}},setup(e){const t=e;return(n,l)=>(h(),w("div",{class:i1(f(w1)("rounded-lg border bg-card text-card-foreground shadow-sm",e.hover&&"transition-all duration-200 hover:border-primary/50 hover:-translate-y-1",e.glow&&"glow-sm",t.class))},[K1(n.$slots,"default")],2))}}),pa="modulepreload",ma=function(e){return"/"+e},a7={},w4=function(t,n,l){let o=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=s(n.map(c=>{if(c=ma(c),c in a7)return;a7[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const A=document.createElement("link");if(A.rel=d?"stylesheet":pa,d||(A.as="script"),A.crossOrigin="",A.href=c,i&&A.setAttribute("nonce",i),document.head.appendChild(A),d)return new Promise((p,m)=>{A.addEventListener("load",p),A.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})},i7={intent:"bg-fuchsia-600/10 text-fuchsia-600 border-fuchsia-600/20",decision:"bg-blue-600/10 text-blue-600 border-blue-600/20",constraint:"bg-amber-600/10 text-amber-600 border-amber-600/20",workaround:"bg-red-600/10 text-red-600 border-red-600/20",convention:"bg-violet-600/10 text-violet-600 border-violet-600/20",pattern:"bg-emerald-600/10 text-emerald-600 border-emerald-600/20",discussion:"bg-cyan-600/10 text-cyan-600 border-cyan-600/20",review:"bg-pink-600/10 text-pink-600 border-pink-600/20",plan:"bg-lime-600/10 text-lime-600 border-lime-600/20"},ga={intent:"bg-fuchsia-600",decision:"bg-blue-600",constraint:"bg-amber-600",workaround:"bg-red-600",convention:"bg-violet-600",pattern:"bg-emerald-600",discussion:"bg-cyan-600",review:"bg-pink-600",plan:"bg-lime-600"},R5={system:"#7c3aed",part:"#d97706",contract:"#0891b2",intent:"#c026d3",decision:"#2563eb",constraint:"#d97706",workaround:"#dc2626",convention:"#7c3aed",pattern:"#059669",discussion:"#0891b2",review:"#db2777",plan:"#65a30d"},va=["Intent","Decision","Constraint","Workaround","Convention","Pattern","Discussion","Review","Plan"],ya={Intent:"What this exists to do, who for, and what it deliberately is not",Decision:"A deliberate choice made about architecture, tooling, or approach",Constraint:"A hard limitation imposed by external factors or requirements",Workaround:"A temporary fix for a known issue or limitation",Convention:"An established principle or standard the team follows",Pattern:"An observed model, recurring choice, or emergent practice",Discussion:"Key points from a team discussion or debate",Review:"Insights surfaced during code review",Plan:"A future intention or roadmap item"};function G0(){const e="bg-muted text-muted-foreground border-border";function t(r){return i7[(r??"").toLowerCase()]??e}function n(r){return ga[(r??"").toLowerCase()]??"bg-muted-foreground"}function l(r){return R5[(r??"").toLowerCase()]??"#a1a1aa"}const o=Object.keys(R5).map(r=>({kind:r,label:r.charAt(0).toUpperCase()+r.slice(1),color:R5[r]}));return{tone:t,fill:n,ink:l,legend:o,kinds:Object.keys(i7),kindOptions:va,kindDescriptions:ya}}const x4="#6b7280",ba=W1({__name:"CodeGraph",props:{height:{default:"460px"},repo:{default:""},mode:{default:"2d"},data:{default:null},hidden:{default:()=>[]}},emits:["select"],setup(e,{expose:t,emit:n}){const l=n,o=e,r=R=>[typeof R.source=="object"?R.source:null,typeof R.target=="object"?R.target:null],s=R=>{const[B,q]=r(R);return B&&q&&B.community===q.community&&B.community!==null?B:null},a=j(null);let i=null,c=null,d=null;const u=new Map,{ink:A}=G0(),p=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];function m(R){if(typeof R.community=="number")return p[R.community%p.length];const B=(R.kind||"").toLowerCase();return B==="code"?"#E20C18":B==="file"||["class","function","method","module","route","variable","symbol"].includes(B)?x4:A(B)}function k(R){return R&&R.length>28?`${R.slice(0,27)}…`:R}const D=t1(()=>!!o.data&&o.data.nodes.length>0);t({hasGraph:D});const F=t1(()=>new Set(o.hidden));function C(){const R=o.data??{nodes:[],links:[]},B=R.nodes.filter(l1=>typeof l1.community!="number"||!F.value.has(l1.community)),q=new Set(B.map(l1=>l1.id)),V=Math.max(1,...B.map(l1=>l1.degree??0)),m1=B.map(l1=>{const o1=u.get(l1.id);return{...l1,...o1??{},color:m(l1),radius:Math.min(3+2.4*Math.sqrt(l1.degree??0),11),named:(l1.degree??0)>=Math.max(4,V*.5)}}),y1=R.links.filter(l1=>q.has(String(l1.source))&&q.has(String(l1.target))).map(l1=>({...l1}));return{nodes:m1,links:y1}}function I(R){return Math.max(.06,Math.min(.5,Math.sqrt(400/Math.max(1,R))))}function v(R,B){const q=parseInt(R.slice(1),16),V=Math.max(0,Math.min(1,B)).toFixed(3);return`rgba(${q>>16&255}, ${q>>8&255}, ${q&255}, ${V})`}const S=R=>R==="tree"?"td":R==="radial"?"radialout":R==="layered"?"zout":null;function L(){if(i)for(const R of i.graphData().nodes)Number.isFinite(R.x)&&u.set(R.id,{x:R.x,y:R.y,z:R.z??0})}function Z(){var R;L(),i&&((R=i._destructor)==null||R.call(i),i=null),a.value&&(a.value.innerHTML="")}async function _(R){var y1,l1;if(!a.value)return;const B=R==="2d"?"2d":"3d";if(i&&c===B){B==="3d"&&i.dagMode(S(R)),L(),i.graphData(C());return}if(Z(),c=B,B==="2d"){const o1=(await w4(async()=>{const{default:a1}=await import("./force-graph-HZtkkbK0.js");return{default:a1}},__vite__mapDeps([0,1,2]))).default,{forceCollide:v1,forceManyBody:C1,forceX:k1,forceY:s1}=await w4(async()=>{const{forceCollide:a1,forceManyBody:h1,forceX:$,forceY:z}=await import("./index-DHVCIEzJ.js");return{forceCollide:a1,forceManyBody:h1,forceX:$,forceY:z}},__vite__mapDeps([3,1])),O1=C(),F1=I(O1.links.length);let V1=null;i=new o1(a.value),i.backgroundColor("rgba(0,0,0,0)").graphData(O1).nodeRelSize(4).nodeColor(a1=>a1.color).nodeLabel(a1=>a1.path?`${a1.name} — ${a1.path}`:a1.name).nodeCanvasObject((a1,h1,$)=>{const z=!V1||V1===a1.id;if(h1.globalAlpha=z?1:.25,h1.beginPath(),h1.arc(a1.x,a1.y,a1.radius,0,2*Math.PI),h1.fillStyle=a1.color,h1.fill(),!a1.named&&V1!==a1.id){h1.globalAlpha=1;return}const K=Math.max(11/$,1.5);h1.font=`${K}px ui-sans-serif, system-ui, sans-serif`,h1.fillStyle=a1.color,h1.textAlign="left",h1.textBaseline="middle",h1.fillText(k(a1.name),a1.x+a1.radius+2/$,a1.y),h1.globalAlpha=1}).nodePointerAreaPaint((a1,h1,$)=>{$.fillStyle=h1,$.beginPath(),$.arc(a1.x,a1.y,a1.radius+2,0,2*Math.PI),$.fill()}).linkColor(a1=>{const h1=s(a1);return v(h1?h1.color:x4,F1*(h1?1.6:1))}).linkWidth(.6).linkDirectionalArrowLength(2.5).linkDirectionalArrowRelPos(1).linkLabel(a1=>a1.type??"").onNodeHover(a1=>{var h1;V1=a1?a1.id:null,a.value&&(a.value.style.cursor=a1?"pointer":""),(h1=i==null?void 0:i.refresh)==null||h1.call(i)}).width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(a1=>l("select",String(a1.id))),i.d3AlphaDecay(.02).d3VelocityDecay(.35).cooldownTicks(220),i.d3Force("charge",C1().strength(-140).distanceMax(420)),i.d3Force("center",null),i.d3Force("x",k1(0).strength(.03)),i.d3Force("y",s1(0).strength(.03)),i.d3Force("collide",v1(a1=>a1.radius+2).iterations(2)),(y1=i.d3Force("link"))==null||y1.distance(a1=>s(a1)?26:70).strength(a1=>s(a1)?.7:.08);let e2=!1;i.onEngineTick(()=>{!e2&&i.d3Force("link")&&(e2=!0,setTimeout(()=>i==null?void 0:i.zoomToFit(600,60),700))}),i.onEngineStop(()=>{L(),i==null||i.zoomToFit(600,60)});return}const q=(await w4(async()=>{const{default:o1}=await import("./3d-force-graph-B8lgMx4q.js");return{default:o1}},__vite__mapDeps([4,5,2,1]))).default,V=await w4(()=>import("./three.module-D-PgY1-x.js").then(o1=>o1.df),[]),m1=C();i=new q(a.value),i.backgroundColor("rgba(0,0,0,0)").showNavInfo(!1).onDagError(()=>{}).dagLevelDistance(46).dagMode(S(R)).graphData(m1).nodeLabel(o1=>o1.path?`${o1.name} — ${o1.path}`:o1.name).nodeThreeObject(o1=>{const v1=new V.SphereGeometry(o1.radius,12,10),C1=new V.MeshLambertMaterial({color:o1.color,transparent:!0,opacity:.92});return new V.Mesh(v1,C1)}).linkColor(()=>x4).linkOpacity(I(m1.links.length)).linkWidth(.5).linkDirectionalArrowLength(2).linkDirectionalArrowRelPos(1).linkLabel(o1=>o1.type??"").width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(o1=>l("select",String(o1.id))),(l1=i.d3Force("charge"))==null||l1.strength(-140).distanceMax(420),i.onEngineStop(()=>{L(),i==null||i.zoomToFit(600,60)})}return d2(async()=>{await _(o.mode),d=new ResizeObserver(()=>{i&&a.value&&i.width(a.value.clientWidth).height(a.value.clientHeight)}),a.value&&d.observe(a.value)}),q1(()=>o.mode,R=>_(R)),q1(()=>o.repo,()=>{u.clear(),_(o.mode)}),q1(()=>o.data,()=>_(o.mode)),q1(()=>o.hidden,()=>_(o.mode),{deep:!0}),Ft(()=>{d&&(d.disconnect(),d=null),Z()}),(R,B)=>(h(),w("div",{ref_key:"el",ref:a,style:M2({height:o.height}),class:"w-full"},null,4))}}),ka=["for"],Ca={key:1,class:"mt-1 text-xs text-destructive"},wa={key:2,class:"mt-1 text-xs text-muted-foreground"},Q2=W1({__name:"Field",props:{label:{},hint:{},error:{},for:{},class:{}},setup(e){const t=e;return(n,l)=>(h(),w("div",{class:i1(f(w1)("w-full",t.class))},[e.label?(h(),w("label",{key:0,for:t.for,class:"mb-1.5 flex items-center gap-2 text-xs font-medium uppercase tracking-wider text-muted-foreground"},[U(Q(e.label)+" ",1),K1(n.$slots,"label")],8,ka)):W("",!0),K1(n.$slots,"default"),e.error?(h(),w("p",Ca,Q(e.error),1)):e.hint?(h(),w("p",wa,Q(e.hint),1)):W("",!0)],2))}}),O0=d5(["w-full rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"h-8 px-3 text-xs",default:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),xa=d5(["w-full resize-y rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"px-3 py-1.5 text-xs",default:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),_a=["value"],J3=W1({__name:"Input",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),w("input",{value:e.modelValue,class:i1(f(w1)(f(O0)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,_a))}}),Ia={class:"flex items-start gap-4"},Ma={class:"min-w-0 flex-1"},Ea={class:"mb-1 flex flex-wrap items-center gap-2"},Da={class:"break-all font-semibold"},Za={key:0,class:"break-all font-mono text-sm text-muted-foreground"},Fa={key:1,class:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"},Ba={key:1,class:"flex shrink-0 items-center gap-1"},z3=W1({__name:"ItemCard",props:{title:{},subtitle:{},pillar:{default:"graph"},hover:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"};return(l,o)=>(h(),G(z1,{hover:e.hover,class:i1(f(w1)("p-5",t.class))},{default:x(()=>[y("div",Ia,[l.$slots.icon?(h(),w("div",{key:0,class:i1(f(w1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",n[e.pillar]))},[K1(l.$slots,"icon")],2)):W("",!0),y("div",Ma,[y("div",Ea,[y("h3",Da,Q(e.title),1),K1(l.$slots,"badges")]),e.subtitle?(h(),w("p",Za,Q(e.subtitle),1)):W("",!0),K1(l.$slots,"default"),l.$slots.meta?(h(),w("div",Fa,[K1(l.$slots,"meta")])):W("",!0)]),l.$slots.actions?(h(),w("div",Ba,[K1(l.$slots,"actions")])):W("",!0)])]),_:3},8,["hover","class"]))}}),Sa={class:"flex min-w-0 items-center gap-3"},Ra={class:"min-w-0"},Qa={class:"flex flex-wrap items-center gap-2"},Na={class:"text-xl font-semibold"},Ka={key:1,class:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-sm text-muted-foreground"},Ga={key:0,class:"flex flex-wrap items-center gap-2"},g3=W1({__name:"PageHead",props:{title:{},sub:{},pillar:{default:"graph"},tone:{},mono:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"},l={neutral:"bg-muted text-muted-foreground",info:"bg-primary/15 text-primary",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-destructive/15 text-destructive"},o=t1(()=>t.tone?l[t.tone]:n[t.pillar]);return(r,s)=>(h(),w("div",{class:i1(f(w1)("mb-6 flex flex-wrap items-start justify-between gap-4",t.class))},[y("div",Sa,[K1(r.$slots,"back"),r.$slots.icon?(h(),w("div",{key:0,class:i1(f(w1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",o.value))},[K1(r.$slots,"icon")],2)):W("",!0),y("div",Ra,[y("div",Qa,[y("h1",Na,Q(e.title),1),K1(r.$slots,"badges")]),e.sub?(h(),w("p",{key:0,class:i1(f(w1)("text-sm text-muted-foreground",e.mono&&"break-all font-mono"))},Q(e.sub),3)):W("",!0),r.$slots.meta?(h(),w("div",Ka,[K1(r.$slots,"meta")])):W("",!0)])]),r.$slots.actions?(h(),w("div",Ga,[K1(r.$slots,"actions")])):W("",!0)],2))}}),Oa=["value"],X2=W1({__name:"Select",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),w("select",{value:e.modelValue,class:i1(f(w1)(f(O0)({size:e.size,invalid:e.invalid}),"w-auto",t.class)),onChange:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},[K1(n.$slots,"default")],42,Oa))}});/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Oa=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + */const $a=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const i7=e=>e==="";/** + */const c7=e=>e==="";/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $a=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** + */const Wa=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const c7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const u7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Wa=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** + */const La=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const La=e=>{const t=Wa(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + */const Pa=e=>{const t=La(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Ie={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** - * @license lucide-vue-next v0.563.0 - ISC - * - * This source code is licensed under the ISC license. - * See the LICENSE file in the root directory of this source tree. - */const Pa=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Ie.width,color:a=Ie.stroke,...i},{slots:c})=>A3("svg",{...Ie,...i,width:s,height:s,stroke:a,"stroke-width":i7(n)||i7(l)||n===!0||l===!0?Number(o||r||Ie["stroke-width"])*24/Number(s):o||r||Ie["stroke-width"],class:$a("lucide",i.class,...e?[`lucide-${c7(La(e))}-icon`,`lucide-${c7(e)}`]:["lucide-icon"]),...!c.default&&!Oa(i)&&{"aria-hidden":"true"}},[...t.map(d=>A3(...d)),...c.default?[c.default()]:[]]);/** + */var Me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const B3=(e,t)=>(n,{slots:l,attrs:o})=>A3(Pa,{...o,...n,iconNode:t,name:e},l);/** + */const Ta=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Me.width,color:a=Me.stroke,...i},{slots:c})=>h3("svg",{...Me,...i,width:s,height:s,stroke:a,"stroke-width":c7(n)||c7(l)||n===!0||l===!0?Number(o||r||Me["stroke-width"])*24/Number(s):o||r||Me["stroke-width"],class:Wa("lucide",i.class,...e?[`lucide-${u7(Pa(e))}-icon`,`lucide-${u7(e)}`]:["lucide-icon"]),...!c.default&&!$a(i)&&{"aria-hidden":"true"}},[...t.map(d=>h3(...d)),...c.default?[c.default()]:[]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ha=B3("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + */const X3=(e,t)=>(n,{slots:l,attrs:o})=>h3(Ta,{...o,...n,iconNode:t,name:e},l);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ta=B3("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const Ha=X3("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ya=B3("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const Ya=X3("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Va=B3("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** + */const Va=X3("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ua=B3("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + */const Ua=X3("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ja=B3("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + */const Ja=X3("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const za=B3("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const za=X3("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $t=B3("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ja={key:0,class:"space-y-1.5"},Xa={class:"flex gap-2"},O0=$1({__name:"ListInput",props:{modelValue:{default:()=>[]},placeholder:{},noun:{default:"entry"},mono:{type:Boolean,default:!1},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,o=z("");function r(){const a=o.value.trim();if(!a||n.modelValue.includes(a)){o.value="";return}l("update:modelValue",[...n.modelValue,a]),o.value=""}function s(a){l("update:modelValue",n.modelValue.filter(i=>i!==a))}return(a,i)=>(h(),C("div",{class:f1(f(E1)("space-y-2",n.class))},[e.modelValue.length?(h(),C("ul",ja,[(h(!0),C(n1,null,_1(e.modelValue,c=>(h(),C("li",{key:c,class:"flex items-center gap-2 rounded-md border bg-muted/40 py-1 pl-3 pr-1 text-sm"},[b("span",{class:f1(f(E1)("min-w-0 flex-1 break-all",e.mono&&"font-mono text-xs"))},N(c),3),I(C1,{variant:"ghost",size:"icon",class:"h-6 w-6 shrink-0","aria-label":`Remove ${c}`,onClick:d=>s(c)},{default:w(()=>[I(f($t),{class:"h-3.5 w-3.5"})]),_:1},8,["aria-label","onClick"])]))),128))])):P("",!0),b("div",Xa,[I(J3,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c),size:e.size,placeholder:e.placeholder,class:f1(e.mono?"font-mono":void 0),"aria-label":`Add ${e.noun}`,onKeydown:ar(qe(r,["prevent"]),["enter"])},null,8,["modelValue","size","placeholder","class","aria-label","onKeydown"]),I(C1,{size:e.size,variant:"outline",class:"shrink-0",disabled:!o.value.trim(),onClick:r},{default:w(()=>[I(f(Ja),{class:"mr-1.5 h-3.5 w-3.5"}),i[1]||(i[1]=U(" Add ",-1))]),_:1},8,["size","disabled"])])],2))}}),qa={class:"min-w-0 truncate"},ei=["aria-label"],u7=$1({__name:"Chip",props:{tone:{default:"default"},removable:{type:Boolean,default:!1},label:{},class:{}},emits:["remove"],setup(e){const t=e,n={default:"border-primary/30 bg-primary/10 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground",muted:"border-border bg-muted/60 text-muted-foreground"};return(l,o)=>(h(),C("span",{class:f1(f(E1)("inline-flex max-w-full items-center gap-1 rounded-full border py-0.5 pl-2.5 text-xs",e.removable?"pr-1":"pr-2.5",n[e.tone],t.class))},[K1(l.$slots,"mark"),b("span",qa,[K1(l.$slots,"default")]),e.removable?(h(),C("button",{key:0,type:"button",class:"shrink-0 rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground","aria-label":e.label?`Remove ${e.label}`:"Remove",onClick:o[0]||(o[0]=r=>l.$emit("remove"))},[I(f($t),{class:"h-3 w-3"})],8,ei)):P("",!0)],2))}}),ti=["title"],ni={class:"relative flex h-2 w-2 shrink-0"},li={key:1,class:"sr-only"},$e=$1({__name:"DotIndicator",props:{tone:{default:"neutral"},title:{},label:{},pulse:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"};return(o,r)=>(h(),C("span",{class:f1(f(E1)("inline-flex items-center gap-1.5 align-middle",t.class)),title:e.title},[b("span",ni,[e.pulse?(h(),C("span",{key:0,class:f1(f(E1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):P("",!0),b("span",{class:f1(f(E1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),e.label?(h(),C("span",{key:0,class:f1(f(E1)("text-xs font-medium",l[e.tone]))},N(e.label),3)):(h(),C("span",li,N(e.title),1))],10,ti))}}),d7={};function oi(e){let t=d7[e];if(t)return t;t=d7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);t.push(l)}for(let n=0;n=55296&&d<=57343?o+="���":o+=String.fromCharCode(d),r+=6;continue}}if((a&248)===240&&r+91114111?o+="����":(u-=65536,o+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}}o+="�"}return o})}fe.defaultChars=";/?:@&=+$,#";fe.componentChars="";const f7={};function ri(e){let t=f7[e];if(t)return t;t=f7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);/^[0-9a-z]$/i.test(l)?t.push(l):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const l=ri(t);let o="";for(let r=0,s=e.length;r=55296&&a<=57343){if(a>=55296&&a<=56319&&r+1=56320&&i<=57343){o+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[r])}return o}i3.defaultChars=";/?:@&=+$,-_.!~*'()#";i3.componentChars="-_.!~*'()";function ft(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Y4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const si=/^([a-z0-9.+-]+:)/i,ai=/:[0-9]*$/,ii=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,ci=["<",">",'"',"`"," ","\r",` -`," "],ui=["{","}","|","\\","^","`"].concat(ci),di=["'"].concat(ui),A7=["%","/","?",";","#"].concat(di),h7=["/","?","#"],fi=255,p7=/^[+a-z0-9A-Z_-]{0,63}$/,Ai=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m7={javascript:!0,"javascript:":!0},g7={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function At(e,t){if(e&&e instanceof Y4)return e;const n=new Y4;return n.parse(e,t),n}Y4.prototype.parse=function(e,t){let n,l,o,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const c=ii.exec(r);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=si.exec(r);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,r=r.substr(s.length)),(t||s||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=r.substr(0,2)==="//",o&&!(s&&m7[s])&&(r=r.substr(2),this.slashes=!0)),!m7[s]&&(o||s&&!g7[s])){let c=-1;for(let p=0;p127?M+="x":M+=F[E];if(!M.match(p7)){const E=p.slice(0,y),_=p.slice(y+1),R=F.match(Ai);R&&(E.push(R[1]),_.unshift(R[2])),_.length&&(r=_.join(".")+r),this.hostname=E.join(".");break}}}}this.hostname.length>fi&&(this.hostname=""),m&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=r.indexOf("#");a!==-1&&(this.hash=r.substr(a),r=r.slice(0,a));const i=r.indexOf("?");return i!==-1&&(this.search=r.substr(i),r=r.slice(0,i)),r&&(this.pathname=r),g7[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};Y4.prototype.parseHost=function(e){let t=ai.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const hi=Object.freeze(Object.defineProperty({__proto__:null,decode:fe,encode:i3,format:ft,parse:At},Symbol.toStringTag,{value:"Module"})),$0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,W0=/[\0-\x1F\x7F-\x9F]/,pi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Wt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,L0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,P0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,mi=Object.freeze(Object.defineProperty({__proto__:null,Any:$0,Cc:W0,Cf:pi,P:Wt,S:L0,Z:P0},Symbol.toStringTag,{value:"Module"})),gi=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function vi(e){return e>=55296&&e<=57343||e>1114111?65533:gi.get(e)??e}function yi(e){const t=atob(e),n=t.length&-2,l=new Uint16Array(n/2);for(let o=0,r=0;o=J1.ZERO&&e<=J1.NINE}function ki(e){return e>=J1.UPPER_A&&e<=J1.UPPER_F||e>=J1.LOWER_A&&e<=J1.LOWER_F}function Ci(e){return e>=J1.UPPER_A&&e<=J1.UPPER_Z||e>=J1.LOWER_A&&e<=J1.LOWER_Z||ht(e)}function wi(e){return e===J1.EQUALS||Ci(e)}var s2;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(s2||(s2={}));var I3;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(I3||(I3={}));class xi{constructor(t,n,l){O1(this,"decodeTree");O1(this,"emitCodePoint");O1(this,"errors");O1(this,"state",s2.EntityStart);O1(this,"consumed",1);O1(this,"result",0);O1(this,"treeIndex",0);O1(this,"excess",1);O1(this,"decodeMode",I3.Strict);O1(this,"runConsumed",0);this.decodeTree=t,this.emitCodePoint=n,this.errors=l}startEntity(t){this.decodeMode=t,this.state=s2.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,n){switch(this.state){case s2.EntityStart:return t.charCodeAt(n)===J1.NUM?(this.state=s2.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=s2.NamedEntity,this.stateNamedEntity(t,n));case s2.NumericStart:return this.stateNumericStart(t,n);case s2.NumericDecimal:return this.stateNumericDecimal(t,n);case s2.NumericHex:return this.stateNumericHex(t,n);case s2.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|v7)===J1.LOWER_X?(this.state=s2.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=s2.NumericDecimal,this.stateNumericDecimal(t,n))}stateNumericHex(t,n){for(;n>14;for(;n>7;if(this.runConsumed===0){const i=o&g2.JUMP_TABLE;if(t.charCodeAt(n)!==i)return this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}for(;this.runConsumed=t.length)return-1;const i=this.runConsumed-1,c=l[this.treeIndex+1+(i>>1)],d=i%2===0?c&255:c>>8&255;if(t.charCodeAt(n)!==d)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14}if(n>=t.length)break;const s=t.charCodeAt(n);if(s===J1.SEMI&&r!==0&&(o&g2.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);if(this.treeIndex=Ii(l,o,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return this.result===0||this.decodeMode===I3.Attribute&&(r===0||wi(s))?0:this.emitNotTerminatedNamedEntity();if(o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14,r!==0){if(s===J1.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==I3.Strict&&(o&g2.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}n++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var o;const{result:t,decodeTree:n}=this,l=(n[t]&g2.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,l,this.consumed),(o=this.errors)==null||o.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,l){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~(g2.VALUE_LENGTH|g2.FLAG13):o[t+1],l),n===3&&this.emitCodePoint(o[t+2],l),l}end(){var t;switch(this.state){case s2.NamedEntity:return this.result!==0&&(this.decodeMode!==I3.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s2.NumericDecimal:return this.emitNumericEntity(0,2);case s2.NumericHex:return this.emitNumericEntity(0,3);case s2.NumericStart:return(t=this.errors)==null||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s2.EntityStart:return 0}}}function _i(e){let t="";const n=new xi(e,l=>t+=String.fromCodePoint(l));return function(o,r){let s=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(s,a),n.startEntity(r);const c=n.write(o,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const i=t+o.slice(s);return t="",i}}function Ii(e,t,n,l){const o=(t&g2.BRANCH_LENGTH)>>7,r=t&g2.JUMP_TABLE;if(o===0)return r!==0&&l===r?n:-1;if(r){const c=l-r;return c<0||c>=o?-1:e[n+c]-1}const s=o+1>>1;let a=0,i=o-1;for(;a<=i;){const c=a+i>>>1,d=c>>1,A=e[n+d]>>(c&1)*8&255;if(Al)i=c-1;else return e[n+s+c]}return-1}const Mi=_i(bi);function H0(e){return Mi(e,I3.Strict)}var Ei=class{constructor(e={}){O1(this,"src_Any",$0.source);O1(this,"src_Cc",W0.source);O1(this,"src_Z",P0.source);O1(this,"src_P",Wt.source);O1(this,"src_ZPCc",[this.src_Z,this.src_P,this.src_Cc].join("|"));O1(this,"src_ZCc",[this.src_Z,this.src_Cc].join("|"));O1(this,"cache",{});O1(this,"opts",{maxLength:1e4,urlAuth:!1,schema_names:[]});this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const l=this.escapeRE(e),o=this.escapeRE(t),r=`(?:(?!${this.src_ZCc}|${l}|${o}).)`;let s=`${l}${r}{0,1000}${o}`;for(let a=2;a<=n;a++)s=`${l}(?:${r}|${s}){0,1000}${o}`;return s}get_text_separators(){var e;return(e=this.cache).text_separators??(e.text_separators=/[><\uff5c]/)}get_pseudo_letter(){var e;return(e=this.cache).src_pseudo_letter??(e.src_pseudo_letter=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`))}get_ipv4_addr(){var e;return(e=this.cache).src_ip4??(e.src_ip4=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])"))}get_ipv6_addr(){var n;const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return(n=this.cache).src_ip6_addr??(n.src_ip6_addr=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`))}get_ipv6_url_host(){var e;return(e=this.cache).src_ip6_host??(e.src_ip6_host=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`))}get_ipv6_mail_host(){var e;return(e=this.cache).src_ipv6_mail_host??(e.src_ipv6_mail_host=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`))}get_auth(){var e;return(e=this.cache).src_auth??(e.src_auth=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`))}get_port(){var e;return(e=this.cache).src_port??(e.src_port=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?"))}get_host_terminator(){var e;return(e=this.cache).src_host_terminator??(e.src_host_terminator=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`))}get_path_terminator(){var e;return(e=this.cache).src_path_terminator??(e.src_path_terminator=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`))}get_path(){var e;return(e=this.cache).src_path??(e.src_path=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`))}get_mail_name(){var e;return(e=this.cache).src_mail_name??(e.src_mail_name=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}"))}get_xn(){var e;return(e=this.cache).src_xn??(e.src_xn=new RegExp("xn--[a-z0-9\\-]{1,59}"))}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){var e;return(e=this.cache).src_domain_root??(e.src_domain_root=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`))}get_domain(){var e;return(e=this.cache).src_domain??(e.src_domain=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`))}get_url_host_port(){var e;return(e=this.cache).url_host_port??(e.url_host_port=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source))}get_fuzzy_url_host_port(){var e;return(e=this.cache).fuzzy_url_host_port??(e.fuzzy_url_host_port=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source))}get_mail_host(){var e;return(e=this.cache).src_mail_host??(e.src_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source))}get_fuzzy_mail_host(){var e;return(e=this.cache).src_fuzzy_mail_host??(e.src_fuzzy_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source))}get_path_extra(){var e;return(e=this.cache).src_path_extra??(e.src_path_extra=new RegExp(""))}get_fuzzy_mail_host_search(){var e;return(e=this.cache).mail_fuzzy_host_search??(e.mail_fuzzy_host_search=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig"))}get_fuzzy_link_search(){var e;return(e=this.cache).link_fuzzy_search??(e.link_fuzzy_search=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig"))}get_http_validator(){var e;return(e=this.cache).http_validator??(e.http_validator=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy"))}get_relative_proto_validator(){var e;return(e=this.cache).relative_proto_validator??(e.relative_proto_validator=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy"))}get_mail_name_validator(){var e;return(e=this.cache).mail_name_validator??(e.mail_name_validator=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`))}get_mailto_validator(){var e;return(e=this.cache).mailto_validator??(e.mailto_validator=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy"))}get_schema_names(){var e;return(e=this.cache).schema_names??(e.schema_names=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|")))}get_schema_search(){var e;return(e=this.cache).schema_search??(e.schema_search=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig"))}get_schema_at_start(){var e;return(e=this.cache).schema_at_start??(e.schema_at_start=new RegExp(`^${this.get_schema_search().source}`,"i"))}},K5={validate:(e,t,n)=>{const l=n.re.get_http_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},Di={"http:":K5,"https:":K5,"ftp:":K5,"//":{validate:function(e,t,n){const l=n.re.get_relative_proto_validator();l.lastIndex=t;const o=l.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const l=n.re.get_mailto_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Zi="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Fi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function Bi(){const e=Fi.split("|");return Zi.split("|").forEach(t=>{const n=t.indexOf(":"),l=t.slice(0,n);for(const o of t.slice(n+1))e.push(l+o)}),e}var Si={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Bi(),urlAuth:!1,maxLength:1e4},y7=class{constructor(e,t,n,l){O1(this,"schema");O1(this,"index");O1(this,"lastIndex");O1(this,"raw");O1(this,"text");O1(this,"url");const o=e.slice(n,l);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=l,this.raw=o,this.text=o,this.url=o}},Ri=class{constructor(e={}){O1(this,"__opts__");O1(this,"__schemas__");O1(this,"re");const{rebuilder:t,...n}=e;this.__opts__={...Si,...n},this.__schemas__={...Di},this.re=t||new Ei,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(l,o)=>o.normalize(l),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const l=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(l.lastIndex=0;(t=l.exec(e))!==null;){const r=e.slice(Math.max(0,t.index-65),t.index);if(o.test(r))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let l,o,r,s,a,i,c=!1,d=!1,u=!1,A=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(l=this.re.get_fuzzy_link_search(),l.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,r=this.re.get_mail_name_validator());;){const m=Math.max(A-1,0);if(o&&r&&!u&&(!a||a.index=A)break;o.lastIndex=A)break;l.lastIndexp.lastIndex))&&(p=s);let y;if(!c)for(;;){if(!i){n.lastIndexp.index)break;const M=i;i=void 0;const E=this.testSchemaAt(e,M.schema,M.lastIndex);if(E){y={schema:M.schema,index:M.index,lastIndex:M.lastIndex+E};break}}let k=y;if((!k||a&&(a.indexk.lastIndex))&&(k=a),(!k||s&&(s.indexk.lastIndex))&&(k=s),!k)break;k===a?a=void 0:k===s&&(s=void 0);const F=new y7(e,k.schema,k.index,k.lastIndex);F.schema?this.__schemas__[F.schema].normalize(F,this):this.normalize(F),t.push(F),A=k.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const l=new y7(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[l.schema].normalize(l,this),l}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const ae=2147483647,U2=36,Lt=1,t4=26,Qi=38,Ni=700,T0=72,Y0=128,V0="-",Ki=/^xn--/,Gi=/[^\0-\x7F]/,Oi=/[\x2E\u3002\uFF0E\uFF61]/g,$i={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G5=U2-Lt,J2=Math.floor,O5=String.fromCharCode;function _3(e){throw new RangeError($i[e])}function Wi(e,t){const n=[];let l=e.length;for(;l--;)n[l]=t(e[l]);return n}function U0(e,t){const n=e.split("@");let l="";n.length>1&&(l=n[0]+"@",e=n[1]),e=e.replace(Oi,".");const o=e.split("."),r=Wi(o,t).join(".");return l+r}function J0(e){const t=[];let n=0;const l=e.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...e),Pi=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:U2},b7=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},z0=function(e,t,n){let l=0;for(e=n?J2(e/Ni):e>>1,e+=J2(e/t);e>G5*t4>>1;l+=U2)e=J2(e/G5);return J2(l+(G5+1)*e/(e+Qi))},j0=function(e){const t=[],n=e.length;let l=0,o=Y0,r=T0,s=e.lastIndexOf(V0);s<0&&(s=0);for(let a=0;a=128&&_3("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a=n&&_3("invalid-input");const A=Pi(e.charCodeAt(a++));A>=U2&&_3("invalid-input"),A>J2((ae-l)/d)&&_3("overflow"),l+=A*d;const m=u<=r?Lt:u>=r+t4?t4:u-r;if(AJ2(ae/p)&&_3("overflow"),d*=p}const c=t.length+1;r=z0(l-i,c,i==0),J2(l/c)>ae-o&&_3("overflow"),o+=J2(l/c),l%=c,t.splice(l++,0,o)}return String.fromCodePoint(...t)},X0=function(e){const t=[];e=J0(e);const n=e.length;let l=Y0,o=0,r=T0;for(const i of e)i<128&&t.push(O5(i));const s=t.length;let a=s;for(s&&t.push(V0);a=l&&dJ2((ae-o)/c)&&_3("overflow"),o+=(i-l)*c,l=i;for(const d of e)if(dae&&_3("overflow"),d===l){let u=o;for(let A=U2;;A+=U2){const m=A<=r?Lt:A>=r+t4?t4:A-r;if(u{let n={};for(var l in e)C7(n,l,{get:e[l],enumerable:!0});return C7(n,Symbol.toStringTag,{value:"Module"}),n},Yi=q0({arrayReplaceAt:()=>Vi,asciiTrim:()=>h5,callable:()=>en,escapeHtml:()=>D3,escapeRE:()=>lc,fromCodePoint:()=>n4,isMdAsciiPunct:()=>r4,isPunctChar:()=>nn,isPunctCharCode:()=>o4,isSpace:()=>H1,isValidEntityCode:()=>Pt,isWhiteSpace:()=>l4,lib:()=>oc,normalizeReference:()=>A5,unescapeAll:()=>Ae,unescapeMd:()=>ji});function en(e){const t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function Vi(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Pt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function n4(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var tn=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Ui=new RegExp(`${tn.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),Ji=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function zi(e,t){if(t.charCodeAt(0)===35&&Ji.test(t)){const l=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Pt(l)?n4(l):e}const n=H0(e);return n!==e?n:e}function ji(e){return e.indexOf("\\")<0?e:e.replace(tn,"$1")}function Ae(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Ui,function(t,n,l){return n||zi(t,l)})}var Xi=/[&<>"]/,qi=/[&<>"]/g,ec={"&":"&","<":"<",">":">",'"':"""};function tc(e){return ec[e]}function D3(e){return Xi.test(e)?e.replace(qi,tc):e}var nc=/[.?*+^$[\]\\(){}|-]/g;function lc(e){return e.replace(nc,"\\$&")}function H1(e){switch(e){case 9:case 32:return!0}return!1}function l4(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function nn(e){return Wt.test(e)||L0.test(e)}function o4(e){return nn(n4(e))}function r4(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function A5(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function w7(e){return e===32||e===9||e===10||e===13}function h5(e){let t=0;for(;t=t&&w7(e.charCodeAt(n));n--);return e.slice(t,n+1)}var oc={mdurl:hi,ucmicro:mi};function rc(e,t,n){let l,o,r,s;const a=e.posMax,i=e.pos;for(e.pos=t+1,l=1;e.pos32))return r;if(l===41){if(s===0)break;s--}o++}return t===o||s!==0||(r.str=Ae(e.slice(t,o)),r.pos=o,r.ok=!0),r}function ac(e,t,n,l){let o,r=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(l)s.str=l.str,s.marker=l.marker;else{if(r>=n)return s;let a=e.charCodeAt(r);if(a!==34&&a!==39&&a!==40)return s;t++,r++,a===40&&(a=41),s.marker=a}for(;rsc,parseLinkLabel:()=>rc,parseLinkTitle:()=>ac});function s4(e){"@babel/helpers - typeof";return s4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s4(e)}function cc(e,t){if(s4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var l=n.call(e,t);if(s4(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function uc(e){var t=cc(e,"string");return s4(t)=="symbol"?t:t+""}function h1(e,t,n){return(t=uc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U3=class{constructor(e,t,n){h1(this,"map",null),h1(this,"level",0),h1(this,"children",null),h1(this,"content",""),h1(this,"markup",""),h1(this,"info",""),h1(this,"block",!1),h1(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,l=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},a4=class{constructor(){h1(this,"__rules__",[]),h1(this,"__cache__",null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){const l=this.__find__(e);if(l===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[l].fn=t,this.__rules__[l].alt=n.alt||[],this.__cache__=null}before(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}after(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!0,n.push(l)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!1,n.push(l)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},X2={};X2.code_inline=function(e,t,n,l,o){const r=e[t];return`${D3(r.content)}`};X2.code_block=function(e,t,n,l,o){const r=e[t];return`${D3(e[t].content)} -`};X2.fence=function(e,t,n,l,o){const r=e[t],s=r.info?Ae(r.info).trim():"";let a="",i="";if(s){const d=s.split(/(\s+)/g);a=d[0],i=d.slice(2).join("")}let c;if(n.highlight?c=n.highlight(r.content,a,i)||D3(r.content):c=D3(r.content),c.indexOf("(h(),w("div",{role:"group","aria-label":e.label,class:i1(f(w1)("inline-flex rounded-md border bg-card p-0.5",t.class))},[(h(!0),w(n1,null,_1(e.tabs,r=>(h(),w("button",{key:r.id,type:"button","aria-pressed":e.modelValue===r.id,disabled:r.disabled,title:r.title,class:i1(f(w1)("inline-flex shrink-0 items-center rounded font-medium transition-colors disabled:pointer-events-none disabled:opacity-40",n[e.size],e.modelValue===r.id?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground")),onClick:s=>l.$emit("update:modelValue",r.id)},[r.icon?(h(),G(k2(r.icon),{key:0,class:i1(e.size==="sm"?"h-3 w-3":"h-3.5 w-3.5")},null,8,["class"])):W("",!0),U(" "+Q(r.label)+" ",1),r.count?(h(),w("span",qa,Q(r.count),1)):W("",!0)],10,Xa))),128))],10,ja))}}),ei=["value","rows"],ut=W1({__name:"Textarea",props:{modelValue:{},rows:{default:3},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),w("textarea",{value:e.modelValue,rows:e.rows,class:i1(f(w1)(f(xa)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,ei))}}),ti={key:0,class:"space-y-1.5"},ni={class:"flex gap-2"},$0=W1({__name:"ListInput",props:{modelValue:{default:()=>[]},placeholder:{},noun:{default:"entry"},mono:{type:Boolean,default:!1},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,o=j("");function r(){const a=o.value.trim();if(!a||n.modelValue.includes(a)){o.value="";return}l("update:modelValue",[...n.modelValue,a]),o.value=""}function s(a){l("update:modelValue",n.modelValue.filter(i=>i!==a))}return(a,i)=>(h(),w("div",{class:i1(f(w1)("space-y-2",n.class))},[e.modelValue.length?(h(),w("ul",ti,[(h(!0),w(n1,null,_1(e.modelValue,c=>(h(),w("li",{key:c,class:"flex items-center gap-2 rounded-md border bg-muted/40 py-1 pl-3 pr-1 text-sm"},[y("span",{class:i1(f(w1)("min-w-0 flex-1 break-all",e.mono&&"font-mono text-xs"))},Q(c),3),M(b1,{variant:"ghost",size:"icon",class:"h-6 w-6 shrink-0","aria-label":`Remove ${c}`,onClick:d=>s(c)},{default:x(()=>[M(f($t),{class:"h-3.5 w-3.5"})]),_:1},8,["aria-label","onClick"])]))),128))])):W("",!0),y("div",ni,[M(J3,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c),size:e.size,placeholder:e.placeholder,class:i1(e.mono?"font-mono":void 0),"aria-label":`Add ${e.noun}`,onKeydown:cr(qe(r,["prevent"]),["enter"])},null,8,["modelValue","size","placeholder","class","aria-label","onKeydown"]),M(b1,{size:e.size,variant:"outline",class:"shrink-0",disabled:!o.value.trim(),onClick:r},{default:x(()=>[M(f(Ja),{class:"mr-1.5 h-3.5 w-3.5"}),i[1]||(i[1]=U(" Add ",-1))]),_:1},8,["size","disabled"])])],2))}}),li={class:"min-w-0 truncate"},oi=["aria-label"],d7=W1({__name:"Chip",props:{tone:{default:"default"},removable:{type:Boolean,default:!1},label:{},class:{}},emits:["remove"],setup(e){const t=e,n={default:"border-primary/30 bg-primary/10 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground",muted:"border-border bg-muted/60 text-muted-foreground"};return(l,o)=>(h(),w("span",{class:i1(f(w1)("inline-flex max-w-full items-center gap-1 rounded-full border py-0.5 pl-2.5 text-xs",e.removable?"pr-1":"pr-2.5",n[e.tone],t.class))},[K1(l.$slots,"mark"),y("span",li,[K1(l.$slots,"default")]),e.removable?(h(),w("button",{key:0,type:"button",class:"shrink-0 rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground","aria-label":e.label?`Remove ${e.label}`:"Remove",onClick:o[0]||(o[0]=r=>l.$emit("remove"))},[M(f($t),{class:"h-3 w-3"})],8,oi)):W("",!0)],2))}}),ri=["title"],si={class:"relative flex h-2 w-2 shrink-0"},ai={key:1,class:"sr-only"},We=W1({__name:"DotIndicator",props:{tone:{default:"neutral"},title:{},label:{},pulse:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"};return(o,r)=>(h(),w("span",{class:i1(f(w1)("inline-flex items-center gap-1.5 align-middle",t.class)),title:e.title},[y("span",si,[e.pulse?(h(),w("span",{key:0,class:i1(f(w1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):W("",!0),y("span",{class:i1(f(w1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),e.label?(h(),w("span",{key:0,class:i1(f(w1)("text-xs font-medium",l[e.tone]))},Q(e.label),3)):(h(),w("span",ai,Q(e.title),1))],10,ri))}}),f7={};function ii(e){let t=f7[e];if(t)return t;t=f7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);t.push(l)}for(let n=0;n=55296&&d<=57343?o+="���":o+=String.fromCharCode(d),r+=6;continue}}if((a&248)===240&&r+91114111?o+="����":(u-=65536,o+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}}o+="�"}return o})}Ae.defaultChars=";/?:@&=+$,#";Ae.componentChars="";const A7={};function ci(e){let t=A7[e];if(t)return t;t=A7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);/^[0-9a-z]$/i.test(l)?t.push(l):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const l=ci(t);let o="";for(let r=0,s=e.length;r=55296&&a<=57343){if(a>=55296&&a<=56319&&r+1=56320&&i<=57343){o+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[r])}return o}c3.defaultChars=";/?:@&=+$,-_.!~*'()#";c3.componentChars="-_.!~*'()";function dt(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function H4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ui=/^([a-z0-9.+-]+:)/i,di=/:[0-9]*$/,fi=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ai=["<",">",'"',"`"," ","\r",` +`," "],hi=["{","}","|","\\","^","`"].concat(Ai),pi=["'"].concat(hi),h7=["%","/","?",";","#"].concat(pi),p7=["/","?","#"],mi=255,m7=/^[+a-z0-9A-Z_-]{0,63}$/,gi=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g7={javascript:!0,"javascript:":!0},v7={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ft(e,t){if(e&&e instanceof H4)return e;const n=new H4;return n.parse(e,t),n}H4.prototype.parse=function(e,t){let n,l,o,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const c=fi.exec(r);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=ui.exec(r);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,r=r.substr(s.length)),(t||s||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=r.substr(0,2)==="//",o&&!(s&&g7[s])&&(r=r.substr(2),this.slashes=!0)),!g7[s]&&(o||s&&!v7[s])){let c=-1;for(let m=0;m127?C+="x":C+=F[I];if(!C.match(m7)){const I=m.slice(0,k),v=m.slice(k+1),S=F.match(gi);S&&(I.push(S[1]),v.unshift(S[2])),v.length&&(r=v.join(".")+r),this.hostname=I.join(".");break}}}}this.hostname.length>mi&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=r.indexOf("#");a!==-1&&(this.hash=r.substr(a),r=r.slice(0,a));const i=r.indexOf("?");return i!==-1&&(this.search=r.substr(i),r=r.slice(0,i)),r&&(this.pathname=r),v7[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};H4.prototype.parseHost=function(e){let t=di.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const vi=Object.freeze(Object.defineProperty({__proto__:null,decode:Ae,encode:c3,format:dt,parse:ft},Symbol.toStringTag,{value:"Module"})),W0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,L0=/[\0-\x1F\x7F-\x9F]/,yi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Wt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,P0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,T0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,bi=Object.freeze(Object.defineProperty({__proto__:null,Any:W0,Cc:L0,Cf:yi,P:Wt,S:P0,Z:T0},Symbol.toStringTag,{value:"Module"})),ki=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Ci(e){return e>=55296&&e<=57343||e>1114111?65533:ki.get(e)??e}function wi(e){const t=atob(e),n=t.length&-2,l=new Uint16Array(n/2);for(let o=0,r=0;o=J1.ZERO&&e<=J1.NINE}function _i(e){return e>=J1.UPPER_A&&e<=J1.UPPER_F||e>=J1.LOWER_A&&e<=J1.LOWER_F}function Ii(e){return e>=J1.UPPER_A&&e<=J1.UPPER_Z||e>=J1.LOWER_A&&e<=J1.LOWER_Z||At(e)}function Mi(e){return e===J1.EQUALS||Ii(e)}var s2;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(s2||(s2={}));var M3;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(M3||(M3={}));class Ei{constructor(t,n,l){$1(this,"decodeTree");$1(this,"emitCodePoint");$1(this,"errors");$1(this,"state",s2.EntityStart);$1(this,"consumed",1);$1(this,"result",0);$1(this,"treeIndex",0);$1(this,"excess",1);$1(this,"decodeMode",M3.Strict);$1(this,"runConsumed",0);this.decodeTree=t,this.emitCodePoint=n,this.errors=l}startEntity(t){this.decodeMode=t,this.state=s2.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,n){switch(this.state){case s2.EntityStart:return t.charCodeAt(n)===J1.NUM?(this.state=s2.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=s2.NamedEntity,this.stateNamedEntity(t,n));case s2.NumericStart:return this.stateNumericStart(t,n);case s2.NumericDecimal:return this.stateNumericDecimal(t,n);case s2.NumericHex:return this.stateNumericHex(t,n);case s2.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|y7)===J1.LOWER_X?(this.state=s2.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=s2.NumericDecimal,this.stateNumericDecimal(t,n))}stateNumericHex(t,n){for(;n>14;for(;n>7;if(this.runConsumed===0){const i=o&g2.JUMP_TABLE;if(t.charCodeAt(n)!==i)return this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}for(;this.runConsumed=t.length)return-1;const i=this.runConsumed-1,c=l[this.treeIndex+1+(i>>1)],d=i%2===0?c&255:c>>8&255;if(t.charCodeAt(n)!==d)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14}if(n>=t.length)break;const s=t.charCodeAt(n);if(s===J1.SEMI&&r!==0&&(o&g2.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);if(this.treeIndex=Zi(l,o,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return this.result===0||this.decodeMode===M3.Attribute&&(r===0||Mi(s))?0:this.emitNotTerminatedNamedEntity();if(o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14,r!==0){if(s===J1.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==M3.Strict&&(o&g2.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}n++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var o;const{result:t,decodeTree:n}=this,l=(n[t]&g2.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,l,this.consumed),(o=this.errors)==null||o.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,l){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~(g2.VALUE_LENGTH|g2.FLAG13):o[t+1],l),n===3&&this.emitCodePoint(o[t+2],l),l}end(){var t;switch(this.state){case s2.NamedEntity:return this.result!==0&&(this.decodeMode!==M3.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s2.NumericDecimal:return this.emitNumericEntity(0,2);case s2.NumericHex:return this.emitNumericEntity(0,3);case s2.NumericStart:return(t=this.errors)==null||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s2.EntityStart:return 0}}}function Di(e){let t="";const n=new Ei(e,l=>t+=String.fromCodePoint(l));return function(o,r){let s=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(s,a),n.startEntity(r);const c=n.write(o,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const i=t+o.slice(s);return t="",i}}function Zi(e,t,n,l){const o=(t&g2.BRANCH_LENGTH)>>7,r=t&g2.JUMP_TABLE;if(o===0)return r!==0&&l===r?n:-1;if(r){const c=l-r;return c<0||c>=o?-1:e[n+c]-1}const s=o+1>>1;let a=0,i=o-1;for(;a<=i;){const c=a+i>>>1,d=c>>1,A=e[n+d]>>(c&1)*8&255;if(Al)i=c-1;else return e[n+s+c]}return-1}const Fi=Di(xi);function H0(e){return Fi(e,M3.Strict)}var Bi=class{constructor(e={}){$1(this,"src_Any",W0.source);$1(this,"src_Cc",L0.source);$1(this,"src_Z",T0.source);$1(this,"src_P",Wt.source);$1(this,"src_ZPCc",[this.src_Z,this.src_P,this.src_Cc].join("|"));$1(this,"src_ZCc",[this.src_Z,this.src_Cc].join("|"));$1(this,"cache",{});$1(this,"opts",{maxLength:1e4,urlAuth:!1,schema_names:[]});this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const l=this.escapeRE(e),o=this.escapeRE(t),r=`(?:(?!${this.src_ZCc}|${l}|${o}).)`;let s=`${l}${r}{0,1000}${o}`;for(let a=2;a<=n;a++)s=`${l}(?:${r}|${s}){0,1000}${o}`;return s}get_text_separators(){var e;return(e=this.cache).text_separators??(e.text_separators=/[><\uff5c]/)}get_pseudo_letter(){var e;return(e=this.cache).src_pseudo_letter??(e.src_pseudo_letter=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`))}get_ipv4_addr(){var e;return(e=this.cache).src_ip4??(e.src_ip4=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])"))}get_ipv6_addr(){var n;const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return(n=this.cache).src_ip6_addr??(n.src_ip6_addr=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`))}get_ipv6_url_host(){var e;return(e=this.cache).src_ip6_host??(e.src_ip6_host=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`))}get_ipv6_mail_host(){var e;return(e=this.cache).src_ipv6_mail_host??(e.src_ipv6_mail_host=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`))}get_auth(){var e;return(e=this.cache).src_auth??(e.src_auth=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`))}get_port(){var e;return(e=this.cache).src_port??(e.src_port=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?"))}get_host_terminator(){var e;return(e=this.cache).src_host_terminator??(e.src_host_terminator=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`))}get_path_terminator(){var e;return(e=this.cache).src_path_terminator??(e.src_path_terminator=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`))}get_path(){var e;return(e=this.cache).src_path??(e.src_path=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`))}get_mail_name(){var e;return(e=this.cache).src_mail_name??(e.src_mail_name=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}"))}get_xn(){var e;return(e=this.cache).src_xn??(e.src_xn=new RegExp("xn--[a-z0-9\\-]{1,59}"))}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){var e;return(e=this.cache).src_domain_root??(e.src_domain_root=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`))}get_domain(){var e;return(e=this.cache).src_domain??(e.src_domain=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`))}get_url_host_port(){var e;return(e=this.cache).url_host_port??(e.url_host_port=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source))}get_fuzzy_url_host_port(){var e;return(e=this.cache).fuzzy_url_host_port??(e.fuzzy_url_host_port=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source))}get_mail_host(){var e;return(e=this.cache).src_mail_host??(e.src_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source))}get_fuzzy_mail_host(){var e;return(e=this.cache).src_fuzzy_mail_host??(e.src_fuzzy_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source))}get_path_extra(){var e;return(e=this.cache).src_path_extra??(e.src_path_extra=new RegExp(""))}get_fuzzy_mail_host_search(){var e;return(e=this.cache).mail_fuzzy_host_search??(e.mail_fuzzy_host_search=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig"))}get_fuzzy_link_search(){var e;return(e=this.cache).link_fuzzy_search??(e.link_fuzzy_search=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig"))}get_http_validator(){var e;return(e=this.cache).http_validator??(e.http_validator=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy"))}get_relative_proto_validator(){var e;return(e=this.cache).relative_proto_validator??(e.relative_proto_validator=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy"))}get_mail_name_validator(){var e;return(e=this.cache).mail_name_validator??(e.mail_name_validator=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`))}get_mailto_validator(){var e;return(e=this.cache).mailto_validator??(e.mailto_validator=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy"))}get_schema_names(){var e;return(e=this.cache).schema_names??(e.schema_names=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|")))}get_schema_search(){var e;return(e=this.cache).schema_search??(e.schema_search=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig"))}get_schema_at_start(){var e;return(e=this.cache).schema_at_start??(e.schema_at_start=new RegExp(`^${this.get_schema_search().source}`,"i"))}},Q5={validate:(e,t,n)=>{const l=n.re.get_http_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},Si={"http:":Q5,"https:":Q5,"ftp:":Q5,"//":{validate:function(e,t,n){const l=n.re.get_relative_proto_validator();l.lastIndex=t;const o=l.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const l=n.re.get_mailto_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Ri="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Qi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function Ni(){const e=Qi.split("|");return Ri.split("|").forEach(t=>{const n=t.indexOf(":"),l=t.slice(0,n);for(const o of t.slice(n+1))e.push(l+o)}),e}var Ki={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Ni(),urlAuth:!1,maxLength:1e4},b7=class{constructor(e,t,n,l){$1(this,"schema");$1(this,"index");$1(this,"lastIndex");$1(this,"raw");$1(this,"text");$1(this,"url");const o=e.slice(n,l);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=l,this.raw=o,this.text=o,this.url=o}},Gi=class{constructor(e={}){$1(this,"__opts__");$1(this,"__schemas__");$1(this,"re");const{rebuilder:t,...n}=e;this.__opts__={...Ki,...n},this.__schemas__={...Si},this.re=t||new Bi,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(l,o)=>o.normalize(l),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const l=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(l.lastIndex=0;(t=l.exec(e))!==null;){const r=e.slice(Math.max(0,t.index-65),t.index);if(o.test(r))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let l,o,r,s,a,i,c=!1,d=!1,u=!1,A=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(l=this.re.get_fuzzy_link_search(),l.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,r=this.re.get_mail_name_validator());;){const p=Math.max(A-1,0);if(o&&r&&!u&&(!a||a.index=A)break;o.lastIndex=A)break;l.lastIndexm.lastIndex))&&(m=s);let k;if(!c)for(;;){if(!i){n.lastIndexm.index)break;const C=i;i=void 0;const I=this.testSchemaAt(e,C.schema,C.lastIndex);if(I){k={schema:C.schema,index:C.index,lastIndex:C.lastIndex+I};break}}let D=k;if((!D||a&&(a.indexD.lastIndex))&&(D=a),(!D||s&&(s.indexD.lastIndex))&&(D=s),!D)break;D===a?a=void 0:D===s&&(s=void 0);const F=new b7(e,D.schema,D.index,D.lastIndex);F.schema?this.__schemas__[F.schema].normalize(F,this):this.normalize(F),t.push(F),A=D.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const l=new b7(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[l.schema].normalize(l,this),l}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const ie=2147483647,J2=36,Lt=1,t4=26,Oi=38,$i=700,Y0=72,V0=128,U0="-",Wi=/^xn--/,Li=/[^\0-\x7F]/,Pi=/[\x2E\u3002\uFF0E\uFF61]/g,Ti={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N5=J2-Lt,z2=Math.floor,K5=String.fromCharCode;function I3(e){throw new RangeError(Ti[e])}function Hi(e,t){const n=[];let l=e.length;for(;l--;)n[l]=t(e[l]);return n}function J0(e,t){const n=e.split("@");let l="";n.length>1&&(l=n[0]+"@",e=n[1]),e=e.replace(Pi,".");const o=e.split("."),r=Hi(o,t).join(".");return l+r}function z0(e){const t=[];let n=0;const l=e.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...e),Vi=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:J2},k7=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},j0=function(e,t,n){let l=0;for(e=n?z2(e/$i):e>>1,e+=z2(e/t);e>N5*t4>>1;l+=J2)e=z2(e/N5);return z2(l+(N5+1)*e/(e+Oi))},X0=function(e){const t=[],n=e.length;let l=0,o=V0,r=Y0,s=e.lastIndexOf(U0);s<0&&(s=0);for(let a=0;a=128&&I3("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a=n&&I3("invalid-input");const A=Vi(e.charCodeAt(a++));A>=J2&&I3("invalid-input"),A>z2((ie-l)/d)&&I3("overflow"),l+=A*d;const p=u<=r?Lt:u>=r+t4?t4:u-r;if(Az2(ie/m)&&I3("overflow"),d*=m}const c=t.length+1;r=j0(l-i,c,i==0),z2(l/c)>ie-o&&I3("overflow"),o+=z2(l/c),l%=c,t.splice(l++,0,o)}return String.fromCodePoint(...t)},q0=function(e){const t=[];e=z0(e);const n=e.length;let l=V0,o=0,r=Y0;for(const i of e)i<128&&t.push(K5(i));const s=t.length;let a=s;for(s&&t.push(U0);a=l&&dz2((ie-o)/c)&&I3("overflow"),o+=(i-l)*c,l=i;for(const d of e)if(die&&I3("overflow"),d===l){let u=o;for(let A=J2;;A+=J2){const p=A<=r?Lt:A>=r+t4?t4:A-r;if(u{let n={};for(var l in e)w7(n,l,{get:e[l],enumerable:!0});return w7(n,Symbol.toStringTag,{value:"Module"}),n},zi=en({arrayReplaceAt:()=>ji,asciiTrim:()=>A5,callable:()=>tn,escapeHtml:()=>Z3,escapeRE:()=>ac,fromCodePoint:()=>n4,isMdAsciiPunct:()=>r4,isPunctChar:()=>ln,isPunctCharCode:()=>o4,isSpace:()=>H1,isValidEntityCode:()=>Pt,isWhiteSpace:()=>l4,lib:()=>ic,normalizeReference:()=>f5,unescapeAll:()=>he,unescapeMd:()=>tc});function tn(e){const t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function ji(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Pt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function n4(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var nn=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Xi=new RegExp(`${nn.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),qi=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ec(e,t){if(t.charCodeAt(0)===35&&qi.test(t)){const l=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Pt(l)?n4(l):e}const n=H0(e);return n!==e?n:e}function tc(e){return e.indexOf("\\")<0?e:e.replace(nn,"$1")}function he(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Xi,function(t,n,l){return n||ec(t,l)})}var nc=/[&<>"]/,lc=/[&<>"]/g,oc={"&":"&","<":"<",">":">",'"':"""};function rc(e){return oc[e]}function Z3(e){return nc.test(e)?e.replace(lc,rc):e}var sc=/[.?*+^$[\]\\(){}|-]/g;function ac(e){return e.replace(sc,"\\$&")}function H1(e){switch(e){case 9:case 32:return!0}return!1}function l4(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ln(e){return Wt.test(e)||P0.test(e)}function o4(e){return ln(n4(e))}function r4(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function f5(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function x7(e){return e===32||e===9||e===10||e===13}function A5(e){let t=0;for(;t=t&&x7(e.charCodeAt(n));n--);return e.slice(t,n+1)}var ic={mdurl:vi,ucmicro:bi};function cc(e,t,n){let l,o,r,s;const a=e.posMax,i=e.pos;for(e.pos=t+1,l=1;e.pos32))return r;if(l===41){if(s===0)break;s--}o++}return t===o||s!==0||(r.str=he(e.slice(t,o)),r.pos=o,r.ok=!0),r}function dc(e,t,n,l){let o,r=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(l)s.str=l.str,s.marker=l.marker;else{if(r>=n)return s;let a=e.charCodeAt(r);if(a!==34&&a!==39&&a!==40)return s;t++,r++,a===40&&(a=41),s.marker=a}for(;ruc,parseLinkLabel:()=>cc,parseLinkTitle:()=>dc});function s4(e){"@babel/helpers - typeof";return s4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s4(e)}function Ac(e,t){if(s4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var l=n.call(e,t);if(s4(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hc(e){var t=Ac(e,"string");return s4(t)=="symbol"?t:t+""}function A1(e,t,n){return(t=hc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U3=class{constructor(e,t,n){A1(this,"map",null),A1(this,"level",0),A1(this,"children",null),A1(this,"content",""),A1(this,"markup",""),A1(this,"info",""),A1(this,"block",!1),A1(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,l=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},a4=class{constructor(){A1(this,"__rules__",[]),A1(this,"__cache__",null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){const l=this.__find__(e);if(l===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[l].fn=t,this.__rules__[l].alt=n.alt||[],this.__cache__=null}before(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}after(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!0,n.push(l)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!1,n.push(l)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},q2={};q2.code_inline=function(e,t,n,l,o){const r=e[t];return`${Z3(r.content)}`};q2.code_block=function(e,t,n,l,o){const r=e[t];return`${Z3(e[t].content)} +`};q2.fence=function(e,t,n,l,o){const r=e[t],s=r.info?he(r.info).trim():"";let a="",i="";if(s){const d=s.split(/(\s+)/g);a=d[0],i=d.slice(2).join("")}let c;if(n.highlight?c=n.highlight(r.content,a,i)||Z3(r.content):c=Z3(r.content),c.indexOf("${c} `}return`
${c}
-`};X2.image=function(e,t,n,l,o){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,l),o.renderToken(e,t,n)};X2.hardbreak=function(e,t,n){return n.xhtmlOut?`
+`};q2.image=function(e,t,n,l,o){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,l),o.renderToken(e,t,n)};q2.hardbreak=function(e,t,n){return n.xhtmlOut?`
`:`
-`};X2.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
+`};q2.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};X2.text=function(e,t){return D3(e[t].content)};X2.html_block=function(e,t){return e[t].content};X2.html_inline=function(e,t){return e[t].content};var ln=class{constructor(){h1(this,"rules",Object.assign({},X2))}renderAttrs(e){let t,n,l;if(!e.attrs)return"";for(l="",t=0,n=e.attrs.length;t=0&&e[r].hidden&&e[r].nesting===0;)r--;l.block&&l.nesting!==-1&&r>=0&&e[r].hidden&&e[r].nesting===-1&&(o+=` +`};q2.text=function(e,t){return Z3(e[t].content)};q2.html_block=function(e,t){return e[t].content};q2.html_inline=function(e,t){return e[t].content};var on=class{constructor(){A1(this,"rules",Object.assign({},q2))}renderAttrs(e){let t,n,l;if(!e.attrs)return"";for(l="",t=0,n=e.attrs.length;t=0&&e[r].hidden&&e[r].nesting===0;)r--;l.block&&l.nesting!==-1&&r>=0&&e[r].hidden&&e[r].nesting===-1&&(o+=` `),o+=(l.nesting===-1?" `:">",o}renderInline(e,t,n){let l="";const o=this.rules;for(let r=0,s=e.length;r\s]/i.test(e)}function vc(e){return/^<\/a\s*>/i.test(e)}function yc(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,l=t.length;n=0;a--){const i=o[a];if(i.type==="link_close"){for(a--;o[a].level!==i.level&&o[a].type!=="link_open";)a--;continue}if(i.type==="html_inline"&&(gc(i.content)&&s>0&&s--,vc(i.content)&&s++),!(s>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const c=i.content;let d=e.md.linkify.match(c);const u=[];let A=i.level,m=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let p=0;pm){const $=new e.Token("text","",0);$.content=c.slice(m,M),$.level=A,u.push($)}const E=new e.Token("link_open","a",1);E.attrs=[["href",k]],E.level=A++,E.markup="linkify",E.info="auto",u.push(E);const _=new e.Token("text","",0);_.content=F,_.level=A,u.push(_);const R=new e.Token("link_close","a",-1);R.level=--A,R.markup="linkify",R.info="auto",u.push(R),m=d[p].lastIndex}if(m0){let a=o.length;for(const u of r)a+=u.nodes.length-1;const i=new Array(a);let c=0,d=0;r.reverse();for(let u=0;u=0;n--){const l=e[n];l.type==="text"&&!t&&(l.content=l.content.replace(kc,wc)),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function _c(e){let t=0;for(let n=e.length-1;n>=0;n--){const l=e[n];l.type==="text"&&!t&&rn.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Ic(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(bc.test(e.tokens[t].content)&&xc(e.tokens[t].children),rn.test(e.tokens[t].content)&&_c(e.tokens[t].children))}var Mc=/['"]/,x7=/['"]/g,_7="’";function I4(e,t,n,l){e[t]||(e[t]=[]),e[t].push({pos:n,ch:l})}function Ec(e,t){let n="",l=0;t.sort((o,r)=>o.pos-r.pos);for(let o=0;o=0&&!(l[n].level<=a);n--);if(l.length=n+1,s.type!=="text")continue;const i=s.content;let c=0;const d=i.length;e:for(;c=0)y=i.charCodeAt(u.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){y=e[n].content.charCodeAt(e[n].content.length-1);break}let k=32;if(c=48&&y<=57&&(m=A=!1),A&&m&&(A=F,m=M),!A&&!m){p&&I4(o,r,u.index,_7);continue}if(m)for(n=l.length-1;n>=0;n--){let R=l[n];if(l[n].level=0;t--)e.tokens[t].type!=="inline"||!Mc.test(e.tokens[t].content)||Dc(e.tokens[t].children,e)}function Fc(e){let t,n;const l=e.length;for(t=0;t0&&this.level++,this.tokens.push(l),l}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!H1(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,l){if(e>=t)return"";const o=new Array(t-e);for(let r=0,s=e;sn?o[r]=new Array(a-n+1).join(" ")+this.src.slice(c,d):o[r]=this.src.slice(c,d)}return o.join("")}},Sc=65536;function W5(e,t){const n=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];return e.src.slice(n,l)}function I7(e){const t=[],n=e.length;let l=0,o=e.charCodeAt(l),r=!1,s=0,a="";for(;ln)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let r=e.bMarks[o]+e.tShift[o];if(r>=e.eMarks[o])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58||r>=e.eMarks[o])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58&&!H1(a)||s===45&&H1(a))return!1;for(;r=4)return!1;c=I7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const u=c.length;if(u===0||u!==d.length)return!1;if(l)return!0;const A=e.parentType;e.parentType="table";const m=e.md.block.ruler.getRules("blockquote"),p=e.push("table_open","table",1),y=[t,0];p.map=y;const k=e.push("thead_open","thead",1);k.map=[t,t+1];const F=e.push("tr_open","tr",1);F.map=[t,t+1];for(let _=0;_=4||(c=I7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),E+=u-c.length,E>Sc))break;if(o===t+2){const $=e.push("tbody_open","tbody",1);$.map=M=[t+2,0]}const R=e.push("tr_open","tr",1);R.map=[o,o+1];for(let $=0;$=4){l++,o=l;continue}break}e.line=o;const r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+` -`,r.map=[t,e.line],!0}function Nc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;const s=e.src.charCodeAt(o);if(s!==126&&s!==96)return!1;let a=o;o=e.skipChars(o,s);let i=o-a;if(i<3)return!1;const c=e.src.slice(a,o),d=e.src.slice(o,r);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(l)return!0;let u=t,A=!1;for(;u++,!(u>=n||(o=a=e.bMarks[u]+e.tShift[u],r=e.eMarks[u],o=4)&&(o=e.skipChars(o,s),!(o-a=4||e.src.charCodeAt(o)!==62)return!1;if(l)return!0;const a=[],i=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),A=e.parentType;e.parentType="blockquote";let m=!1,p;for(p=t;p=r)break;if(e.src.charCodeAt(o++)===62&&!E){let R=e.sCount[p]+1,$,D;e.src.charCodeAt(o)===32?(o++,R++,D=!1,$=!0):e.src.charCodeAt(o)===9?($=!0,(e.bsCount[p]+R)%4===3?(o++,R++,D=!1):D=!0):$=!1;let x=R;for(a.push(e.bMarks[p]),e.bMarks[p]=o;o=r,i.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+($?1:0),c.push(e.sCount[p]),e.sCount[p]=x-R,d.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let _=!1;for(let R=0,$=u.length;R<$;R++)if(u[R](e,p,n,!0)){_=!0;break}if(_){e.lineMax=p,e.blkIndent!==0&&(a.push(e.bMarks[p]),i.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}a.push(e.bMarks[p]),i.push(e.bsCount[p]),d.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const y=e.blkIndent;e.blkIndent=0;const k=e.push("blockquote_open","blockquote",1);k.markup=">";const F=[t,0];k.map=F,e.md.block.tokenize(e,t,p);const M=e.push("blockquote_close","blockquote",-1);M.markup=">",e.lineMax=s,e.parentType=A,F[1]=e.line;for(let E=0;E=4)return!1;let r=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(r++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;r=l)return-1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return-1;for(;;){if(o>=l)return-1;if(r=e.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]=e.blkIndent&&(d=!0);let u,A,m;if((m=E7(e,i))>=0){if(u=!0,s=e.bMarks[i]+e.tShift[i],A=Number(e.src.slice(s,m-1)),d&&A!==1)return!1}else if((m=M7(e,i))>=0)u=!1;else return!1;if(d&&e.skipSpaces(m)>=e.eMarks[i])return!1;if(l)return!0;const p=e.src.charCodeAt(m-1),y=e.tokens.length;u?(a=e.push("ordered_list_open","ol",1),A!==1&&(a.attrs=[["start",A]])):a=e.push("bullet_list_open","ul",1);const k=[i,0];a.map=k,a.markup=String.fromCharCode(p);let F=!1;const M=e.md.block.ruler.getRules("list"),E=e.parentType;for(e.parentType="list";i=o?D=1:D=R-_,D>4&&(D=1);const x=_+D;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(p);const Q=[i,0];a.map=Q,u&&(a.info=e.src.slice(s,m-1));const B=e.tight,X=e.tShift[i],Y=e.sCount[i],m1=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=x,e.tight=!0,e.tShift[i]=$-e.bMarks[i],e.sCount[i]=R,$>=o&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,i,n),(!e.tight||F)&&(c=!1),F=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=m1,e.tShift[i]=X,e.sCount[i]=Y,e.tight=B,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(p),i=e.line,Q[1]=i,i>=n||e.sCount[i]=4)break;let w1=!1;for(let r1=0,l1=M.length;r1=4||e.src.charCodeAt(o)!==91)return!1;function a(_){const R=e.lineMax;if(_>=R||e.isEmpty(_))return null;let $=!1;if(e.sCount[_]-e.blkIndent>3&&($=!0),e.sCount[_]<0&&($=!0),!$){const Q=e.md.block.ruler.getRules("reference"),B=e.parentType;e.parentType="reference";let X=!1;for(let Y=0,m1=Q.length;Y"u"&&(e.env.references={}),typeof e.env.references[F]>"u"&&(e.env.references[F]={title:k,href:u});const M=e.push("reference_definition","",0);M.map=[t,s],M.hidden=!0;const E=Object.create(null);return E.label=F,M.meta=E,e.line=s,!0}var Lc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],cn=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,un="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Pc=new RegExp(`^(?:${cn}|${un}||<[?][\\s\\S]*?[?]>|]*>|)`),Hc=new RegExp(`^(?:${cn}|${un})`),G3=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${Hc.source}\\s*$`),/^$/,!1]];function Tc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let s=e.src.slice(o,r),a=0;for(;a=4)return!1;let s=e.src.charCodeAt(o);if(s!==35||o>=r)return!1;let a=1;for(s=e.src.charCodeAt(++o);s===35&&o6||oo&&H1(e.src.charCodeAt(i-1))&&(r=i),e.line=t+1;const c=e.push("heading_open",`h${a}`,1);c.markup="########".slice(0,a),c.map=[t,e.line];const d=e.push("inline","",0);d.content=h5(e.src.slice(o,r)),d.map=[t,e.line],d.children=[];const u=e.push("heading_close",`h${a}`,-1);return u.markup="########".slice(0,a),!0}function Vc(e,t,n){const l=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let r=0,s,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let m=e.bMarks[a]+e.tShift[a];const p=e.eMarks[a];if(m=p))){r=s===61?1:2;break}}if(e.sCount[a]<0)continue;let A=!1;for(let m=0,p=l.length;m3||e.sCount[r]<0)continue;let c=!1;for(let d=0,u=l.length;d=n||e.sCount[s]=r){e.line=n;break}const i=e.line;let c=!1;for(let d=0;d=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(o),l}scanDelims(e,t){const n=this.posMax,l=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const p=this.src.charCodeAt(e-2);o=(p&64512)===55296?65536+(p-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let r=e;for(;r=65&&e<=90||e>=97&&e<=122}function Xc(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function qc(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,l=e.posMax;if(n+3>l||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=n-Math.min(10,e.pending.length,n);let r=n;for(;r>o&&Xc(e.src.charCodeAt(r-1));)r--;if(r===n||!jc(e.src.charCodeAt(r)))return!1;const s=n-r,a=e.md.linkify.matchAtStart(e.src.slice(r));if(!a)return!1;let i=a.url;if(i.length<=s)return!1;let c=i.length;for(;c>0&&i.charCodeAt(c-1)===42;)c--;c!==i.length&&(i=i.slice(0,c));const d=e.md.normalizeLink(i);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-s);const u=e.push("link_open","a",1);u.attrs=[["href",d]],u.markup="linkify",u.info="auto";const A=e.push("text","",0);A.content=e.md.normalizeLinkText(i);const m=e.push("link_close","a",-1);m.markup="linkify",m.info="auto"}return e.pos+=i.length-s,!0}function e9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const l=e.pending.length-1,o=e.posMax;if(!t)if(l>=0&&e.pending.charCodeAt(l)===32)if(l>=1&&e.pending.charCodeAt(l-1)===32){let r=l-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Ht[e.charCodeAt(0)]=1});function t9(e,t){let n=e.pos;const l=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=l))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&o<=56319&&n+1=56320&&a<=57343&&(r+=e.src[n+1],n++)}const s="\\"+r;if(!t){const a=e.push("text_special","",0);o<256&&Ht[o]!==0?a.content=r:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function n9(e){const t={};let n=0;for(;(n=e.indexOf("`",n))!==-1;){const l=n;for(;e.charCodeAt(++n)===96;);t[n-l]=l}return t}function l9(e,t){var n;const l=e.pos;if(e.src.charCodeAt(l)!==96)return!1;const o=e.posMax;let r=l+1;for(;r=r){let i=r,c;for(;(c=e.src.indexOf("`",i))!==-1&&co)break;if(i-c===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s;let u=e.src.slice(r,c).replace(/\n/g," ");u.startsWith(" ")&&u.endsWith(" ")&&/[^ ]/.test(u)&&(u=u.slice(1,-1)),d.content=u}return e.pos=i,!0}}}return t||(e.pending+=s),e.pos=r,!0}function o9(e,t){const n=e.pos,l=e.src.charCodeAt(n);if(t||l!==126)return!1;const o=e.scanDelims(e.pos,!0);let r=o.length;const s=String.fromCharCode(l);if(r<2)return!1;let a;r%2&&(a=e.push("text","",0),a.content=s,r--);for(let i=0;i=0;l--){const o=t[l];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const r=t[o.end],s=l>0&&t[l-1].end===o.end+1&&t[l-1].marker===o.marker&&t[l-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token];i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="";const c=e.tokens[r.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[l-1].token].content="",e.tokens[t[o.end+1].token].content="",l--)}}function a9(e){const t=e.tokens_meta,n=e.tokens_meta.length;Z7(e,e.delimiters);for(let o=0;o=u)return!1;if(i=p,o=e.md.helpers.parseLinkDestination(e.src,p,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?p=o.pos:s="",i=p;p=u||e.src.charCodeAt(p)!==41)&&(c=!0),p++}if(c){if(typeof e.env.references>"u")return!1;if(p=0?l=e.src.slice(i,p++):p=m+1):p=m+1,l||(l=e.src.slice(A,m)),l=A5(l),r=e.env.references[l],!r)return e.pos=d,!1;s=r.href,a=r.title}if(!t){e.pos=A,e.posMax=m;const y=e.push("link_open","a",1),k=[["href",s]];if(y.attrs=k,a&&k.push(["title",a]),l){const F=Object.create(null);F.label=l,y.meta=F}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=p,e.posMax=u,!0}function c9(e,t){let n,l,o,r,s,a,i,c,d="";const u=e.pos,A=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const m=e.pos+2,p=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(p<0)return!1;if(r=p+1,r=A)return!1;for(c=r,a=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),a.ok&&(d=e.md.normalizeLink(a.str),e.md.validateLink(d)?r=a.pos:d=""),c=r;r=A||e.src.charCodeAt(r)!==41)return e.pos=u,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r=0?o=e.src.slice(c,r++):r=p+1):r=p+1,o||(o=e.src.slice(m,p)),o=A5(o),s=e.env.references[o],!s)return e.pos=u,!1;d=s.href,i=s.title}if(!t){l=e.src.slice(m,p);const y=[];e.md.inline.parse(l,e.md,e.env,y);const k=e.push("image","img",0),F=[["src",d],["alt",""]];if(k.attrs=F,k.children=y,k.content=l,i&&F.push(["title",i]),o){const M=Object.create(null);M.label=o,k.meta=M}}return e.pos=r,e.posMax=A,!0}var u9=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,d9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function f9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const l=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const r=e.src.slice(l+1,n);if(d9.test(r)){const s=e.md.normalizeLink(r);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(u9.test(r)){const s=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}function A9(e){return/^\s]/i.test(e)}function h9(e){return/^<\/a\s*>/i.test(e)}function p9(e){const t=e|32;return t>=97&&t<=122}function m9(e,t){if(!e.md.options.html)return!1;const n=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==60||l+2>=n)return!1;const o=e.src.charCodeAt(l+1);if(o!==33&&o!==63&&o!==47&&!p9(o))return!1;const r=e.src.slice(l).match(Pc);if(!r)return!1;if(!t){const s=e.push("html_inline","",0);s.content=r[0],A9(s.content)&&e.linkLevel++,h9(s.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}var g9=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,v9=/^&([a-z][a-z0-9]{1,31});/i;function y9(e,t){const n=e.pos,l=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=l)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(g9);if(o){if(!t){const r=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Pt(r)?n4(r):n4(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(v9);if(o){const r=H0(o[0]);if(r!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=r,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function F7(e){const t={},n=e.length;if(!n)return;let l=0,o=-2;const r=[];for(let s=0;si;c-=r[c]+1){const u=e[c];if(u.marker===a.marker&&u.open&&u.end<0){let A=!1;if((u.close||a.open)&&(u.length+a.length)%3===0&&(u.length%3!==0||a.length%3!==0)&&(A=!0),!A){const m=c>0&&!e[c-1].open?r[c-1]+1:0;r[s]=s-c+m,r[c]=m,a.open=!1,u.end=s,u.close=!1,d=-1,o=-2;break}}}d!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=d)}}function b9(e){const t=e.tokens_meta,n=e.tokens_meta.length;F7(e.delimiters);for(let o=0;o0&&l++,o[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,r[t]=e.pos}tokenize(e){const t=this.ruler.getRules(""),n=t.length,l=e.posMax,o=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,l){const o=new this.State(e,t,n,l);this.tokenize(o);const r=this.ruler2.getRules(""),s=r.length;for(let a=0;a=0))try{t.hostname=k7.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=i3(t.auth)),t.hostname&&(t.hostname=i3(t.hostname)),t.pathname&&(t.pathname=i3(t.pathname)),t.search&&(t.search=i3(t.search)),t.hash&&(t.hash=i3(t.hash)),ft(t)}normalizeLinkText(e){const t=At(e,!0);if(t.hostname&&(!t.protocol||B7.indexOf(t.protocol)>=0))try{t.hostname=k7.toUnicode(t.hostname)}catch{}return fe(ft(t),fe.defaultChars+"%")}constructor(...e){h1(this,"inline",new pn),h1(this,"block",new dn),h1(this,"core",new sn),h1(this,"renderer",new ln),h1(this,"linkify",new Ri),h1(this,"utils",Yi),h1(this,"helpers",Object.assign({},ic));const[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){const o=e;if(t=C9[o],!t)throw new Error(`Wrong 'markdown-it' preset "${o}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});const n=t.components;if(n){var l;["core","block","inline"].forEach(r=>{var s;const a=(s=n[r])===null||s===void 0?void 0:s.rules;a&&this[r].ruler.enableOnly(a)});const o=(l=n.inline)===null||l===void 0?void 0:l.rules2;o&&this.inline.ruler2.enableOnly(o)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${l}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${l}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};h1(q2,"Token",U3);h1(q2,"Ruler",a4);h1(q2,"Renderer",ln);h1(q2,"ParserCore",sn);h1(q2,"StateCore",on);h1(q2,"ParserBlock",dn);h1(q2,"StateBlock",an);h1(q2,"ParserInline",pn);h1(q2,"StateInline",fn);var _9=en(q2);const I9=["innerHTML"],B2=$1({__name:"Markdown",props:{source:{},class:{}},setup(e){const t=e,n=new _9({html:!1,linkify:!0,breaks:!1}),l=t1(()=>n.render(t.source??"")),o=["prose prose-sm max-w-none","prose-headings:text-foreground prose-headings:font-semibold","prose-p:text-muted-foreground prose-li:text-muted-foreground","prose-strong:text-foreground prose-em:text-foreground","prose-a:text-primary prose-a:no-underline hover:prose-a:underline","prose-code:text-foreground prose-code:before:content-none prose-code:after:content-none","prose-code:rounded prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5","prose-pre:bg-muted/50 prose-pre:text-foreground prose-pre:border","prose-blockquote:border-border prose-blockquote:text-muted-foreground","prose-hr:border-border prose-th:text-foreground prose-td:text-muted-foreground"].join(" ");return(r,s)=>(h(),C("div",{class:f1(f(E1)(f(o),t.class)),innerHTML:l.value},null,10,I9))}}),M9={key:0,class:"space-y-2 border-b bg-muted/30 p-3"},E9={class:"px-3 py-2"},D9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},Z9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},F9={key:1,class:"p-4 text-sm text-muted-foreground"},B9={key:2,class:"overflow-x-auto"},S9={class:"w-full border-collapse font-mono text-xs leading-relaxed"},R9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},Q9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},N9={class:"w-4 select-none pl-2 align-top text-muted-foreground"},K9={class:"whitespace-pre-wrap break-all py-0.5 pr-3 align-top"},G9={colspan:"4",class:"px-3 py-2"},O9={class:"px-3 py-2"},$9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},W9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},L9=$1({__name:"Diff",props:{patch:{default:""},notes:{default:()=>[]},class:{}},setup(e){const t=e,n={neutral:"bg-card",info:"border-primary/30 bg-primary/5",success:"border-success/40 bg-success/5",warning:"border-warning/40 bg-warning/5",danger:"border-destructive/40 bg-destructive/5"};function l(d){return d.severity==="blocking"?n.danger:n[d.tone??"neutral"]??n.neutral}const o=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,r=t1(()=>{const d=[];let u=0,A=0,m=!1;for(const p of(t.patch??"").split(` -`)){const y=o.exec(p);if(y){u=Number(y[1]),A=Number(y[2]),m=!0,d.push({kind:"hunk",text:p,before:null,after:null});continue}m&&(p.startsWith("+")?d.push({kind:"added",text:p.slice(1),before:null,after:A++}):p.startsWith("-")?d.push({kind:"removed",text:p.slice(1),before:u++,after:null}):p.startsWith("\\")?d.push({kind:"meta",text:p,before:null,after:null}):d.push({kind:"kept",text:p.slice(1),before:u++,after:A++}))}return d}),s={added:"bg-success/10",removed:"bg-destructive/10",hunk:"bg-muted/60 text-muted-foreground",meta:"text-muted-foreground",kept:""},a={added:"+",removed:"-",kept:" ",hunk:"",meta:""},i=t1(()=>{const d=new Map;for(const u of t.notes??[])u.line&&d.set(u.line,[...d.get(u.line)??[],u]);return d}),c=t1(()=>(t.notes??[]).filter(d=>!d.line));return(d,u)=>(h(),C("div",{class:f1(f(E1)("overflow-hidden rounded-md border",t.class))},[c.value.length?(h(),C("div",M9,[(h(!0),C(n1,null,_1(c.value,(A,m)=>(h(),C("div",{key:m,class:f1(["rounded border text-sm",l(A)])},[b("div",E9,[A.from?(h(),G($e,{key:0,tone:A.severity==="blocking"?"danger":A.tone??"neutral",title:String(A.from),label:String(A.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):P("",!0),I(B2,{source:A.detail,class:"inline [&>p]:inline"},null,8,["source"])]),A.replacing?(h(),C("pre",D9,N(A.replacing),1)):P("",!0),A.code?(h(),C("pre",Z9,N(A.code),1)):P("",!0)],2))),128))])):P("",!0),r.value.length?(h(),C("div",B9,[b("table",S9,[b("tbody",null,[(h(!0),C(n1,null,_1(r.value,(A,m)=>(h(),C(n1,{key:m},[b("tr",{class:f1(s[A.kind])},[b("td",R9,N(A.before??""),1),b("td",Q9,N(A.after??""),1),b("td",N9,N(a[A.kind]),1),b("td",K9,N(A.text),1)],2),(h(!0),C(n1,null,_1(i.value.get(A.after??-1)??[],(p,y)=>(h(),C("tr",{key:`${m}-${y}`},[b("td",G9,[b("div",{class:f1(["rounded border font-sans text-sm",l(p)])},[b("div",O9,[p.from?(h(),G($e,{key:0,tone:p.severity==="blocking"?"danger":p.tone??"neutral",title:String(p.from),label:String(p.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):P("",!0),I(B2,{source:p.detail,class:"inline [&>p]:inline"},null,8,["source"])]),p.replacing?(h(),C("pre",$9,N(p.replacing),1)):P("",!0),p.code?(h(),C("pre",W9,N(p.code),1)):P("",!0)],2)])]))),128))],64))),128))])])])):(h(),C("div",F9," Nothing to show for this one. It may be a file git stores whole rather than as lines. "))],2))}}),P9={class:"flex items-center gap-2.5"},H9=$1({__name:"Logo",props:{size:{default:"md"},showText:{type:Boolean,default:!0}},setup(e){const t={sm:"h-7 w-7 min-h-7 min-w-7",md:"h-8 w-8 min-h-8 min-w-8",lg:"h-10 w-10 min-h-10 min-w-10"},n={sm:"text-base",md:"text-lg",lg:"text-xl"};return(l,o)=>(h(),C("div",P9,[b("div",{class:f1([t[e.size],"relative flex-shrink-0"])},[...o[0]||(o[0]=[go('',1)])],2),e.showText?(h(),C("span",{key:0,class:f1([n[e.size],"font-semibold tracking-tight"])},[...o[1]||(o[1]=[b("span",{class:"text-brand"},"Source",-1),b("span",{class:"text-brand"},"Ant",-1),b("span",{class:"text-muted-foreground font-normal ml-1"},"Memory",-1)])],2)):P("",!0)]))}}),T9={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Tt=$1({__name:"Modal",props:{open:{type:Boolean},class:{},maxWidth:{default:"lg"}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,o={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"};function r(s){s.key==="Escape"&&l("close")}return d2(()=>window.addEventListener("keydown",r)),f4(()=>window.removeEventListener("keydown",r)),(s,a)=>(h(),G(El,{to:"body"},[I(r0,{"enter-active-class":"transition duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:w(()=>[e.open?(h(),C("div",T9,[b("div",{class:"absolute inset-0 bg-background/80 backdrop-blur-sm",onClick:a[0]||(a[0]=i=>l("close"))}),I(z1,{class:f1(f(E1)("relative w-full max-h-[85vh] overflow-auto p-6 animate-fade-up",o[e.maxWidth],n.class))},{default:w(()=>[b("button",{class:"absolute top-4 right-4 p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",onClick:a[1]||(a[1]=i=>l("close"))},[I(f($t),{class:"h-4 w-4"})]),K1(s.$slots,"default")]),_:3},8,["class"])])):P("",!0)]),_:3})]))}}),Y9=["role"],V9={class:"min-w-0 flex-1"},u2=$1({__name:"Notice",props:{tone:{default:"info"},icon:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={info:"border-border bg-muted/50 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground"},l={info:Va,success:Ya,warning:za,danger:Ta},o={info:"text-muted-foreground",success:"text-success",warning:"text-warning",danger:"text-destructive"},r=t1(()=>l[t.tone]);return(s,a)=>(h(),C("div",{class:f1(f(E1)("flex gap-3 rounded-md border px-4 py-3 text-sm",n[e.tone],t.class)),role:e.tone==="danger"?"alert":"status"},[e.icon?(h(),G(k2(r.value),{key:0,class:f1(f(E1)("mt-0.5 h-4 w-4 shrink-0",o[e.tone]))},null,8,["class"])):P("",!0),b("div",V9,[K1(s.$slots,"default")]),K1(s.$slots,"actions")],10,Y9))}}),U9={class:"relative flex h-2 w-2 shrink-0"},J9={key:0,class:"text-muted-foreground tabular-nums"},mn=$1({__name:"Status",props:{tone:{default:"neutral"},label:{},count:{default:null},busy:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-foreground",success:"text-foreground",warning:"text-foreground",danger:"text-foreground"},o=t1(()=>t.count===null||t.count===void 0?null:t.count);return(r,s)=>(h(),C("span",{class:f1(f(E1)("inline-flex items-center gap-2 text-sm font-medium",l[e.tone],t.class)),role:"status"},[b("span",U9,[e.busy?(h(),C("span",{key:0,class:f1(f(E1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):P("",!0),b("span",{class:f1(f(E1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),b("span",null,N(e.label),1),o.value!==null?(h(),C("span",J9,N(o.value),1)):P("",!0)],2))}}),z9={key:0,class:"mb-3 flex justify-center text-muted-foreground"},j9={key:1,class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"},X9={key:2,class:"mt-4 flex flex-wrap items-center justify-center gap-2"},We=$1({__name:"Empty",props:{title:{},compact:{type:Boolean,default:!1},class:{}},setup(e){const t=e;return(n,l)=>(h(),G(z1,{class:f1(f(E1)("px-6 text-center",t.compact?"py-8":"py-16",t.class))},{default:w(()=>[n.$slots.icon?(h(),C("div",z9,[K1(n.$slots,"icon")])):P("",!0),b("h2",{class:f1(f(E1)("font-semibold",t.compact?"text-base":"text-lg"))},N(e.title),3),n.$slots.default?(h(),C("p",j9,[K1(n.$slots,"default")])):P("",!0),n.$slots.actions?(h(),C("div",X9,[K1(n.$slots,"actions")])):P("",!0)]),_:3},8,["class"]))}}),q9={class:"relative flex items-center justify-center"},eu={key:0,class:"max-w-md text-sm text-muted-foreground"},tu=$1({__name:"Loading",props:{label:{default:"Working"},note:{},size:{default:"md"},fill:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={sm:"h-5 w-5",md:"h-8 w-8",lg:"h-10 w-10"},l={sm:"text-sm",md:"text-base",lg:"text-lg"},o=t1(()=>t.size==="sm"?"py-8":"py-16");return(r,s)=>(h(),C("div",{class:f1(f(E1)("flex flex-col items-center justify-center gap-3 text-center",e.fill?"min-h-0 flex-1":o.value,t.class)),role:"status","aria-live":"polite"},[b("span",q9,[b("span",{class:f1(f(E1)("absolute inline-flex animate-ping rounded-full bg-primary/20",n[e.size]))},null,2),I(f(Ua),{class:f1(f(E1)("relative animate-spin text-muted-foreground",n[e.size]))},null,8,["class"])]),b("p",{class:f1(f(E1)("font-medium",l[e.size]))},N(e.label),3),e.note||r.$slots.default?(h(),C("p",eu,[K1(r.$slots,"default",{},()=>[U(N(e.note),1)])])):P("",!0)],2))}}),nu={key:0,class:"shrink-0"},lu={class:"truncate"},gn=$1({__name:"Origin",props:{name:{},mono:{type:Boolean,default:!0},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("span",{class:f1(f(E1)("inline-flex max-w-full items-center gap-1 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] text-muted-foreground",t.mono&&"font-mono",t.class))},[n.$slots.icon?(h(),C("span",nu,[K1(n.$slots,"icon")])):P("",!0),b("span",lu,N(e.name),1)],2))}}),ou={class:"font-semibold"},ru={class:"mt-3"},O3=$1({__name:"Section",props:{title:{},tone:{default:"neutral"},count:{default:null},collapsible:{type:Boolean,default:!1},closed:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=z(!t.closed),l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"},o={neutral:"bg-muted text-muted-foreground",info:"bg-primary/10 text-primary",success:"bg-success/10 text-success",warning:"bg-warning/10 text-warning",danger:"bg-destructive/10 text-destructive"},r=t1(()=>t.collapsible?n.value:!0);return(s,a)=>(h(),C("section",{class:f1(f(E1)("py-4 first:pt-0 last:pb-0",t.class))},[(h(),G(k2(e.collapsible?"button":"div"),{type:e.collapsible?"button":void 0,"aria-expanded":e.collapsible?String(n.value):void 0,class:f1(f(E1)("flex w-full items-center gap-2 text-left",e.collapsible&&"cursor-pointer")),onClick:a[0]||(a[0]=i=>e.collapsible&&(n.value=!n.value))},{default:w(()=>[s.$slots.icon?(h(),C("span",{key:0,class:f1(f(E1)("shrink-0",l[e.tone]))},[K1(s.$slots,"icon")],2)):P("",!0),b("h2",ou,N(e.title),1),e.count!==null?(h(),C("span",{key:1,class:f1(f(E1)("rounded-full px-2 py-0.5 text-xs font-medium tabular-nums",o[e.tone]))},N(e.count),3)):P("",!0),e.collapsible?(h(),G(f(Ha),{key:2,class:f1(f(E1)("ml-auto h-4 w-4 shrink-0 text-muted-foreground transition-transform",n.value&&"rotate-180"))},null,8,["class"])):P("",!0)]),_:3},8,["type","aria-expanded","class"])),Ne(b("div",ru,[K1(s.$slots,"default")],512),[[Oo,r.value]])],2))}});/** +`}return l}render(e,t,n){let l="";const o=this.rules;for(let r=0,s=e.length;r\s]/i.test(e)}function Cc(e){return/^<\/a\s*>/i.test(e)}function wc(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,l=t.length;n=0;a--){const i=o[a];if(i.type==="link_close"){for(a--;o[a].level!==i.level&&o[a].type!=="link_open";)a--;continue}if(i.type==="html_inline"&&(kc(i.content)&&s>0&&s--,Cc(i.content)&&s++),!(s>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const c=i.content;let d=e.md.linkify.match(c);const u=[];let A=i.level,p=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let m=0;mp){const L=new e.Token("text","",0);L.content=c.slice(p,C),L.level=A,u.push(L)}const I=new e.Token("link_open","a",1);I.attrs=[["href",D]],I.level=A++,I.markup="linkify",I.info="auto",u.push(I);const v=new e.Token("text","",0);v.content=F,v.level=A,u.push(v);const S=new e.Token("link_close","a",-1);S.level=--A,S.markup="linkify",S.info="auto",u.push(S),p=d[m].lastIndex}if(p0){let a=o.length;for(const u of r)a+=u.nodes.length-1;const i=new Array(a);let c=0,d=0;r.reverse();for(let u=0;u=0;n--){const l=e[n];l.type==="text"&&!t&&(l.content=l.content.replace(_c,Mc)),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Dc(e){let t=0;for(let n=e.length-1;n>=0;n--){const l=e[n];l.type==="text"&&!t&&sn.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Zc(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(xc.test(e.tokens[t].content)&&Ec(e.tokens[t].children),sn.test(e.tokens[t].content)&&Dc(e.tokens[t].children))}var Fc=/['"]/,_7=/['"]/g,I7="’";function _4(e,t,n,l){e[t]||(e[t]=[]),e[t].push({pos:n,ch:l})}function Bc(e,t){let n="",l=0;t.sort((o,r)=>o.pos-r.pos);for(let o=0;o=0&&!(l[n].level<=a);n--);if(l.length=n+1,s.type!=="text")continue;const i=s.content;let c=0;const d=i.length;e:for(;c=0)k=i.charCodeAt(u.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){k=e[n].content.charCodeAt(e[n].content.length-1);break}let D=32;if(c=48&&k<=57&&(p=A=!1),A&&p&&(A=F,p=C),!A&&!p){m&&_4(o,r,u.index,I7);continue}if(p)for(n=l.length-1;n>=0;n--){let S=l[n];if(l[n].level=0;t--)e.tokens[t].type!=="inline"||!Fc.test(e.tokens[t].content)||Sc(e.tokens[t].children,e)}function Qc(e){let t,n;const l=e.length;for(t=0;t0&&this.level++,this.tokens.push(l),l}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!H1(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,l){if(e>=t)return"";const o=new Array(t-e);for(let r=0,s=e;sn?o[r]=new Array(a-n+1).join(" ")+this.src.slice(c,d):o[r]=this.src.slice(c,d)}return o.join("")}},Kc=65536;function O5(e,t){const n=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];return e.src.slice(n,l)}function M7(e){const t=[],n=e.length;let l=0,o=e.charCodeAt(l),r=!1,s=0,a="";for(;ln)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let r=e.bMarks[o]+e.tShift[o];if(r>=e.eMarks[o])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58||r>=e.eMarks[o])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58&&!H1(a)||s===45&&H1(a))return!1;for(;r=4)return!1;c=M7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const u=c.length;if(u===0||u!==d.length)return!1;if(l)return!0;const A=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),k=[t,0];m.map=k;const D=e.push("thead_open","thead",1);D.map=[t,t+1];const F=e.push("tr_open","tr",1);F.map=[t,t+1];for(let v=0;v=4||(c=M7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),I+=u-c.length,I>Kc))break;if(o===t+2){const L=e.push("tbody_open","tbody",1);L.map=C=[t+2,0]}const S=e.push("tr_open","tr",1);S.map=[o,o+1];for(let L=0;L=4){l++,o=l;continue}break}e.line=o;const r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+` +`,r.map=[t,e.line],!0}function $c(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;const s=e.src.charCodeAt(o);if(s!==126&&s!==96)return!1;let a=o;o=e.skipChars(o,s);let i=o-a;if(i<3)return!1;const c=e.src.slice(a,o),d=e.src.slice(o,r);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(l)return!0;let u=t,A=!1;for(;u++,!(u>=n||(o=a=e.bMarks[u]+e.tShift[u],r=e.eMarks[u],o=4)&&(o=e.skipChars(o,s),!(o-a=4||e.src.charCodeAt(o)!==62)return!1;if(l)return!0;const a=[],i=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),A=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m=r)break;if(e.src.charCodeAt(o++)===62&&!I){let S=e.sCount[m]+1,L,Z;e.src.charCodeAt(o)===32?(o++,S++,Z=!1,L=!0):e.src.charCodeAt(o)===9?(L=!0,(e.bsCount[m]+S)%4===3?(o++,S++,Z=!1):Z=!0):L=!1;let _=S;for(a.push(e.bMarks[m]),e.bMarks[m]=o;o=r,i.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(L?1:0),c.push(e.sCount[m]),e.sCount[m]=_-S,d.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(p)break;let v=!1;for(let S=0,L=u.length;S";const F=[t,0];D.map=F,e.md.block.tokenize(e,t,m);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=s,e.parentType=A,F[1]=e.line;for(let I=0;I=4)return!1;let r=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(r++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;r=l)return-1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return-1;for(;;){if(o>=l)return-1;if(r=e.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]=e.blkIndent&&(d=!0);let u,A,p;if((p=D7(e,i))>=0){if(u=!0,s=e.bMarks[i]+e.tShift[i],A=Number(e.src.slice(s,p-1)),d&&A!==1)return!1}else if((p=E7(e,i))>=0)u=!1;else return!1;if(d&&e.skipSpaces(p)>=e.eMarks[i])return!1;if(l)return!0;const m=e.src.charCodeAt(p-1),k=e.tokens.length;u?(a=e.push("ordered_list_open","ol",1),A!==1&&(a.attrs=[["start",A]])):a=e.push("bullet_list_open","ul",1);const D=[i,0];a.map=D,a.markup=String.fromCharCode(m);let F=!1;const C=e.md.block.ruler.getRules("list"),I=e.parentType;for(e.parentType="list";i=o?Z=1:Z=S-v,Z>4&&(Z=1);const _=v+Z;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(m);const R=[i,0];a.map=R,u&&(a.info=e.src.slice(s,p-1));const B=e.tight,q=e.tShift[i],V=e.sCount[i],m1=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=_,e.tight=!0,e.tShift[i]=L-e.bMarks[i],e.sCount[i]=S,L>=o&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,i,n),(!e.tight||F)&&(c=!1),F=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=m1,e.tShift[i]=q,e.sCount[i]=V,e.tight=B,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(m),i=e.line,R[1]=i,i>=n||e.sCount[i]=4)break;let y1=!1;for(let l1=0,o1=C.length;l1=4||e.src.charCodeAt(o)!==91)return!1;function a(v){const S=e.lineMax;if(v>=S||e.isEmpty(v))return null;let L=!1;if(e.sCount[v]-e.blkIndent>3&&(L=!0),e.sCount[v]<0&&(L=!0),!L){const R=e.md.block.ruler.getRules("reference"),B=e.parentType;e.parentType="reference";let q=!1;for(let V=0,m1=R.length;V"u"&&(e.env.references={}),typeof e.env.references[F]>"u"&&(e.env.references[F]={title:D,href:u});const C=e.push("reference_definition","",0);C.map=[t,s],C.hidden=!0;const I=Object.create(null);return I.label=F,C.meta=I,e.line=s,!0}var Yc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],un=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,dn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Vc=new RegExp(`^(?:${un}|${dn}||<[?][\\s\\S]*?[?]>|]*>|)`),Uc=new RegExp(`^(?:${un}|${dn})`),G3=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${Uc.source}\\s*$`),/^$/,!1]];function Jc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let s=e.src.slice(o,r),a=0;for(;a=4)return!1;let s=e.src.charCodeAt(o);if(s!==35||o>=r)return!1;let a=1;for(s=e.src.charCodeAt(++o);s===35&&o6||oo&&H1(e.src.charCodeAt(i-1))&&(r=i),e.line=t+1;const c=e.push("heading_open",`h${a}`,1);c.markup="########".slice(0,a),c.map=[t,e.line];const d=e.push("inline","",0);d.content=A5(e.src.slice(o,r)),d.map=[t,e.line],d.children=[];const u=e.push("heading_close",`h${a}`,-1);return u.markup="########".slice(0,a),!0}function jc(e,t,n){const l=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let r=0,s,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(p=m))){r=s===61?1:2;break}}if(e.sCount[a]<0)continue;let A=!1;for(let p=0,m=l.length;p3||e.sCount[r]<0)continue;let c=!1;for(let d=0,u=l.length;d=n||e.sCount[s]=r){e.line=n;break}const i=e.line;let c=!1;for(let d=0;d=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(o),l}scanDelims(e,t){const n=this.posMax,l=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const m=this.src.charCodeAt(e-2);o=(m&64512)===55296?65536+(m-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let r=e;for(;r=65&&e<=90||e>=97&&e<=122}function n9(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function l9(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,l=e.posMax;if(n+3>l||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=n-Math.min(10,e.pending.length,n);let r=n;for(;r>o&&n9(e.src.charCodeAt(r-1));)r--;if(r===n||!t9(e.src.charCodeAt(r)))return!1;const s=n-r,a=e.md.linkify.matchAtStart(e.src.slice(r));if(!a)return!1;let i=a.url;if(i.length<=s)return!1;let c=i.length;for(;c>0&&i.charCodeAt(c-1)===42;)c--;c!==i.length&&(i=i.slice(0,c));const d=e.md.normalizeLink(i);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-s);const u=e.push("link_open","a",1);u.attrs=[["href",d]],u.markup="linkify",u.info="auto";const A=e.push("text","",0);A.content=e.md.normalizeLinkText(i);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=i.length-s,!0}function o9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const l=e.pending.length-1,o=e.posMax;if(!t)if(l>=0&&e.pending.charCodeAt(l)===32)if(l>=1&&e.pending.charCodeAt(l-1)===32){let r=l-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Tt[e.charCodeAt(0)]=1});function r9(e,t){let n=e.pos;const l=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=l))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&o<=56319&&n+1=56320&&a<=57343&&(r+=e.src[n+1],n++)}const s="\\"+r;if(!t){const a=e.push("text_special","",0);o<256&&Tt[o]!==0?a.content=r:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function s9(e){const t={};let n=0;for(;(n=e.indexOf("`",n))!==-1;){const l=n;for(;e.charCodeAt(++n)===96;);t[n-l]=l}return t}function a9(e,t){var n;const l=e.pos;if(e.src.charCodeAt(l)!==96)return!1;const o=e.posMax;let r=l+1;for(;r=r){let i=r,c;for(;(c=e.src.indexOf("`",i))!==-1&&co)break;if(i-c===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s;let u=e.src.slice(r,c).replace(/\n/g," ");u.startsWith(" ")&&u.endsWith(" ")&&/[^ ]/.test(u)&&(u=u.slice(1,-1)),d.content=u}return e.pos=i,!0}}}return t||(e.pending+=s),e.pos=r,!0}function i9(e,t){const n=e.pos,l=e.src.charCodeAt(n);if(t||l!==126)return!1;const o=e.scanDelims(e.pos,!0);let r=o.length;const s=String.fromCharCode(l);if(r<2)return!1;let a;r%2&&(a=e.push("text","",0),a.content=s,r--);for(let i=0;i=0;l--){const o=t[l];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const r=t[o.end],s=l>0&&t[l-1].end===o.end+1&&t[l-1].marker===o.marker&&t[l-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token];i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="";const c=e.tokens[r.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[l-1].token].content="",e.tokens[t[o.end+1].token].content="",l--)}}function d9(e){const t=e.tokens_meta,n=e.tokens_meta.length;F7(e,e.delimiters);for(let o=0;o=u)return!1;if(i=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?m=o.pos:s="",i=m;m=u||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m=0?l=e.src.slice(i,m++):m=p+1):m=p+1,l||(l=e.src.slice(A,p)),l=f5(l),r=e.env.references[l],!r)return e.pos=d,!1;s=r.href,a=r.title}if(!t){e.pos=A,e.posMax=p;const k=e.push("link_open","a",1),D=[["href",s]];if(k.attrs=D,a&&D.push(["title",a]),l){const F=Object.create(null);F.label=l,k.meta=F}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=u,!0}function A9(e,t){let n,l,o,r,s,a,i,c,d="";const u=e.pos,A=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(r=m+1,r=A)return!1;for(c=r,a=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),a.ok&&(d=e.md.normalizeLink(a.str),e.md.validateLink(d)?r=a.pos:d=""),c=r;r=A||e.src.charCodeAt(r)!==41)return e.pos=u,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r=0?o=e.src.slice(c,r++):r=m+1):r=m+1,o||(o=e.src.slice(p,m)),o=f5(o),s=e.env.references[o],!s)return e.pos=u,!1;d=s.href,i=s.title}if(!t){l=e.src.slice(p,m);const k=[];e.md.inline.parse(l,e.md,e.env,k);const D=e.push("image","img",0),F=[["src",d],["alt",""]];if(D.attrs=F,D.children=k,D.content=l,i&&F.push(["title",i]),o){const C=Object.create(null);C.label=o,D.meta=C}}return e.pos=r,e.posMax=A,!0}var h9=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,p9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function m9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const l=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const r=e.src.slice(l+1,n);if(p9.test(r)){const s=e.md.normalizeLink(r);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(h9.test(r)){const s=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}function g9(e){return/^\s]/i.test(e)}function v9(e){return/^<\/a\s*>/i.test(e)}function y9(e){const t=e|32;return t>=97&&t<=122}function b9(e,t){if(!e.md.options.html)return!1;const n=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==60||l+2>=n)return!1;const o=e.src.charCodeAt(l+1);if(o!==33&&o!==63&&o!==47&&!y9(o))return!1;const r=e.src.slice(l).match(Vc);if(!r)return!1;if(!t){const s=e.push("html_inline","",0);s.content=r[0],g9(s.content)&&e.linkLevel++,v9(s.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}var k9=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,C9=/^&([a-z][a-z0-9]{1,31});/i;function w9(e,t){const n=e.pos,l=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=l)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(k9);if(o){if(!t){const r=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Pt(r)?n4(r):n4(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(C9);if(o){const r=H0(o[0]);if(r!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=r,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function B7(e){const t={},n=e.length;if(!n)return;let l=0,o=-2;const r=[];for(let s=0;si;c-=r[c]+1){const u=e[c];if(u.marker===a.marker&&u.open&&u.end<0){let A=!1;if((u.close||a.open)&&(u.length+a.length)%3===0&&(u.length%3!==0||a.length%3!==0)&&(A=!0),!A){const p=c>0&&!e[c-1].open?r[c-1]+1:0;r[s]=s-c+p,r[c]=p,a.open=!1,u.end=s,u.close=!1,d=-1,o=-2;break}}}d!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=d)}}function x9(e){const t=e.tokens_meta,n=e.tokens_meta.length;B7(e.delimiters);for(let o=0;o0&&l++,o[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,r[t]=e.pos}tokenize(e){const t=this.ruler.getRules(""),n=t.length,l=e.posMax,o=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,l){const o=new this.State(e,t,n,l);this.tokenize(o);const r=this.ruler2.getRules(""),s=r.length;for(let a=0;a=0))try{t.hostname=C7.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=c3(t.auth)),t.hostname&&(t.hostname=c3(t.hostname)),t.pathname&&(t.pathname=c3(t.pathname)),t.search&&(t.search=c3(t.search)),t.hash&&(t.hash=c3(t.hash)),dt(t)}normalizeLinkText(e){const t=ft(e,!0);if(t.hostname&&(!t.protocol||S7.indexOf(t.protocol)>=0))try{t.hostname=C7.toUnicode(t.hostname)}catch{}return Ae(dt(t),Ae.defaultChars+"%")}constructor(...e){A1(this,"inline",new mn),A1(this,"block",new fn),A1(this,"core",new an),A1(this,"renderer",new on),A1(this,"linkify",new Gi),A1(this,"utils",zi),A1(this,"helpers",Object.assign({},fc));const[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){const o=e;if(t=I9[o],!t)throw new Error(`Wrong 'markdown-it' preset "${o}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});const n=t.components;if(n){var l;["core","block","inline"].forEach(r=>{var s;const a=(s=n[r])===null||s===void 0?void 0:s.rules;a&&this[r].ruler.enableOnly(a)});const o=(l=n.inline)===null||l===void 0?void 0:l.rules2;o&&this.inline.ruler2.enableOnly(o)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${l}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${l}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};A1(e3,"Token",U3);A1(e3,"Ruler",a4);A1(e3,"Renderer",on);A1(e3,"ParserCore",an);A1(e3,"StateCore",rn);A1(e3,"ParserBlock",fn);A1(e3,"StateBlock",cn);A1(e3,"ParserInline",mn);A1(e3,"StateInline",An);var D9=tn(e3);const Z9=["innerHTML"],R2=W1({__name:"Markdown",props:{source:{},class:{}},setup(e){const t=e,n=new D9({html:!1,linkify:!0,breaks:!1}),l=t1(()=>n.render(t.source??"")),o=["prose prose-sm max-w-none","prose-headings:text-foreground prose-headings:font-semibold","prose-p:text-muted-foreground prose-li:text-muted-foreground","prose-strong:text-foreground prose-em:text-foreground","prose-a:text-primary prose-a:no-underline hover:prose-a:underline","prose-code:text-foreground prose-code:before:content-none prose-code:after:content-none","prose-code:rounded prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5","prose-pre:bg-muted/50 prose-pre:text-foreground prose-pre:border","prose-blockquote:border-border prose-blockquote:text-muted-foreground","prose-hr:border-border prose-th:text-foreground prose-td:text-muted-foreground"].join(" ");return(r,s)=>(h(),w("div",{class:i1(f(w1)(f(o),t.class)),innerHTML:l.value},null,10,Z9))}}),F9={key:0,class:"space-y-2 border-b bg-muted/30 p-3"},B9={class:"px-3 py-2"},S9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},R9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},Q9={key:1,class:"p-4 text-sm text-muted-foreground"},N9={key:2,class:"overflow-x-auto"},K9={class:"w-full border-collapse font-mono text-xs leading-relaxed"},G9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},O9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},$9={class:"w-4 select-none pl-2 align-top text-muted-foreground"},W9={class:"whitespace-pre-wrap break-all py-0.5 pr-3 align-top"},L9={colspan:"4",class:"px-3 py-2"},P9={class:"px-3 py-2"},T9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},H9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},Y9=W1({__name:"Diff",props:{patch:{default:""},notes:{default:()=>[]},class:{}},setup(e){const t=e,n={neutral:"bg-card",info:"border-primary/30 bg-primary/5",success:"border-success/40 bg-success/5",warning:"border-warning/40 bg-warning/5",danger:"border-destructive/40 bg-destructive/5"};function l(d){return d.severity==="blocking"?n.danger:n[d.tone??"neutral"]??n.neutral}const o=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,r=t1(()=>{const d=[];let u=0,A=0,p=!1;for(const m of(t.patch??"").split(` +`)){const k=o.exec(m);if(k){u=Number(k[1]),A=Number(k[2]),p=!0,d.push({kind:"hunk",text:m,before:null,after:null});continue}p&&(m.startsWith("+")?d.push({kind:"added",text:m.slice(1),before:null,after:A++}):m.startsWith("-")?d.push({kind:"removed",text:m.slice(1),before:u++,after:null}):m.startsWith("\\")?d.push({kind:"meta",text:m,before:null,after:null}):d.push({kind:"kept",text:m.slice(1),before:u++,after:A++}))}return d}),s={added:"bg-success/10",removed:"bg-destructive/10",hunk:"bg-muted/60 text-muted-foreground",meta:"text-muted-foreground",kept:""},a={added:"+",removed:"-",kept:" ",hunk:"",meta:""},i=t1(()=>{const d=new Map;for(const u of t.notes??[])u.line&&d.set(u.line,[...d.get(u.line)??[],u]);return d}),c=t1(()=>(t.notes??[]).filter(d=>!d.line));return(d,u)=>(h(),w("div",{class:i1(f(w1)("overflow-hidden rounded-md border",t.class))},[c.value.length?(h(),w("div",F9,[(h(!0),w(n1,null,_1(c.value,(A,p)=>(h(),w("div",{key:p,class:i1(["rounded border text-sm",l(A)])},[y("div",B9,[A.from?(h(),G(We,{key:0,tone:A.severity==="blocking"?"danger":A.tone??"neutral",title:String(A.from),label:String(A.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):W("",!0),M(R2,{source:A.detail,class:"inline [&>p]:inline"},null,8,["source"])]),A.replacing?(h(),w("pre",S9,Q(A.replacing),1)):W("",!0),A.code?(h(),w("pre",R9,Q(A.code),1)):W("",!0)],2))),128))])):W("",!0),r.value.length?(h(),w("div",N9,[y("table",K9,[y("tbody",null,[(h(!0),w(n1,null,_1(r.value,(A,p)=>(h(),w(n1,{key:p},[y("tr",{class:i1(s[A.kind])},[y("td",G9,Q(A.before??""),1),y("td",O9,Q(A.after??""),1),y("td",$9,Q(a[A.kind]),1),y("td",W9,Q(A.text),1)],2),(h(!0),w(n1,null,_1(i.value.get(A.after??-1)??[],(m,k)=>(h(),w("tr",{key:`${p}-${k}`},[y("td",L9,[y("div",{class:i1(["rounded border font-sans text-sm",l(m)])},[y("div",P9,[m.from?(h(),G(We,{key:0,tone:m.severity==="blocking"?"danger":m.tone??"neutral",title:String(m.from),label:String(m.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):W("",!0),M(R2,{source:m.detail,class:"inline [&>p]:inline"},null,8,["source"])]),m.replacing?(h(),w("pre",T9,Q(m.replacing),1)):W("",!0),m.code?(h(),w("pre",H9,Q(m.code),1)):W("",!0)],2)])]))),128))],64))),128))])])])):(h(),w("div",Q9," Nothing to show for this one. It may be a file git stores whole rather than as lines. "))],2))}}),V9={class:"flex items-center gap-2.5"},U9=W1({__name:"Logo",props:{size:{default:"md"},showText:{type:Boolean,default:!0}},setup(e){const t={sm:"h-7 w-7 min-h-7 min-w-7",md:"h-8 w-8 min-h-8 min-w-8",lg:"h-10 w-10 min-h-10 min-w-10"},n={sm:"text-base",md:"text-lg",lg:"text-xl"};return(l,o)=>(h(),w("div",V9,[y("div",{class:i1([t[e.size],"relative flex-shrink-0"])},[...o[0]||(o[0]=[yo('',1)])],2),e.showText?(h(),w("span",{key:0,class:i1([n[e.size],"font-semibold tracking-tight"])},[...o[1]||(o[1]=[y("span",{class:"text-brand"},"Source",-1),y("span",{class:"text-brand"},"Ant",-1),y("span",{class:"text-muted-foreground font-normal ml-1"},"Memory",-1)])],2)):W("",!0)]))}}),J9={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Ht=W1({__name:"Modal",props:{open:{type:Boolean},class:{},maxWidth:{default:"lg"}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,o={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"};function r(s){s.key==="Escape"&&l("close")}return d2(()=>window.addEventListener("keydown",r)),ge(()=>window.removeEventListener("keydown",r)),(s,a)=>(h(),G(Zl,{to:"body"},[M(s0,{"enter-active-class":"transition duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:x(()=>[e.open?(h(),w("div",J9,[y("div",{class:"absolute inset-0 bg-background/80 backdrop-blur-sm",onClick:a[0]||(a[0]=i=>l("close"))}),M(z1,{class:i1(f(w1)("relative w-full max-h-[85vh] overflow-auto p-6 animate-fade-up",o[e.maxWidth],n.class))},{default:x(()=>[y("button",{class:"absolute top-4 right-4 p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",onClick:a[1]||(a[1]=i=>l("close"))},[M(f($t),{class:"h-4 w-4"})]),K1(s.$slots,"default")]),_:3},8,["class"])])):W("",!0)]),_:3})]))}}),z9=["role"],j9={class:"min-w-0 flex-1"},u2=W1({__name:"Notice",props:{tone:{default:"info"},icon:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={info:"border-border bg-muted/50 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground"},l={info:Ua,success:Va,warning:za,danger:Ya},o={info:"text-muted-foreground",success:"text-success",warning:"text-warning",danger:"text-destructive"},r=t1(()=>l[t.tone]);return(s,a)=>(h(),w("div",{class:i1(f(w1)("flex gap-3 rounded-md border px-4 py-3 text-sm",n[e.tone],t.class)),role:e.tone==="danger"?"alert":"status"},[e.icon?(h(),G(k2(r.value),{key:0,class:i1(f(w1)("mt-0.5 h-4 w-4 shrink-0",o[e.tone]))},null,8,["class"])):W("",!0),y("div",j9,[K1(s.$slots,"default")]),K1(s.$slots,"actions")],10,z9))}}),X9={class:"relative flex h-2 w-2 shrink-0"},q9={key:0,class:"text-muted-foreground tabular-nums"},gn=W1({__name:"Status",props:{tone:{default:"neutral"},label:{},count:{default:null},busy:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-foreground",success:"text-foreground",warning:"text-foreground",danger:"text-foreground"},o=t1(()=>t.count===null||t.count===void 0?null:t.count);return(r,s)=>(h(),w("span",{class:i1(f(w1)("inline-flex items-center gap-2 text-sm font-medium",l[e.tone],t.class)),role:"status"},[y("span",X9,[e.busy?(h(),w("span",{key:0,class:i1(f(w1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):W("",!0),y("span",{class:i1(f(w1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),y("span",null,Q(e.label),1),o.value!==null?(h(),w("span",q9,Q(o.value),1)):W("",!0)],2))}}),eu={key:0,class:"mb-3 flex justify-center text-muted-foreground"},tu={key:1,class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"},nu={key:2,class:"mt-4 flex flex-wrap items-center justify-center gap-2"},Le=W1({__name:"Empty",props:{title:{},compact:{type:Boolean,default:!1},class:{}},setup(e){const t=e;return(n,l)=>(h(),G(z1,{class:i1(f(w1)("px-6 text-center",t.compact?"py-8":"py-16",t.class))},{default:x(()=>[n.$slots.icon?(h(),w("div",eu,[K1(n.$slots,"icon")])):W("",!0),y("h2",{class:i1(f(w1)("font-semibold",t.compact?"text-base":"text-lg"))},Q(e.title),3),n.$slots.default?(h(),w("p",tu,[K1(n.$slots,"default")])):W("",!0),n.$slots.actions?(h(),w("div",nu,[K1(n.$slots,"actions")])):W("",!0)]),_:3},8,["class"]))}}),lu={class:"relative flex items-center justify-center"},ou={class:"animate-fade-in space-y-1.5"},vn=W1({__name:"Loading",props:{label:{default:"Working"},source:{},note:{},size:{default:"md"},fill:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},l={sm:"h-14 w-14",md:"h-20 w-20",lg:"h-24 w-24"},o={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},r={sm:"text-xs",md:"text-sm",lg:"text-base"},s={sm:"text-[11px]",md:"text-xs",lg:"text-sm"},a=t1(()=>t.size==="sm"?"py-8":"py-16"),i=t1(()=>t.source?`${t.label} from ${t.source}`:t.label);return(c,d)=>(h(),w("div",{class:i1(f(w1)("flex flex-col items-center justify-center gap-5 px-6 text-center",e.fill?"min-h-0 flex-1":a.value,t.class)),role:"status","aria-live":"polite"},[y("div",lu,[y("span",{class:i1(f(w1)("absolute animate-pulse rounded-full bg-primary/25 blur-2xl",l[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(w1)("rounded-full border-2 border-border/70",n[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(w1)("absolute animate-spin rounded-full border-2 border-transparent border-t-primary border-r-primary/50",n[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(w1)("absolute animate-pulse rounded-full bg-primary",o[e.size])),"aria-hidden":"true"},null,2)]),y("div",ou,[y("p",{class:i1(f(w1)("font-medium text-foreground",r[e.size]))},Q(i.value),3),e.note||c.$slots.default?(h(),w("p",{key:0,class:i1(f(w1)("mx-auto max-w-md text-muted-foreground",s[e.size]))},[K1(c.$slots,"default",{},()=>[U(Q(e.note),1)])],2)):W("",!0)])],2))}}),ru={key:0,class:"shrink-0"},su={class:"truncate"},yn=W1({__name:"Origin",props:{name:{},mono:{type:Boolean,default:!0},class:{}},setup(e){const t=e;return(n,l)=>(h(),w("span",{class:i1(f(w1)("inline-flex max-w-full items-center gap-1 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] text-muted-foreground",t.mono&&"font-mono",t.class))},[n.$slots.icon?(h(),w("span",ru,[K1(n.$slots,"icon")])):W("",!0),y("span",su,Q(e.name),1)],2))}}),au={class:"font-semibold"},iu={class:"mt-3"},O3=W1({__name:"Section",props:{title:{},tone:{default:"neutral"},count:{default:null},collapsible:{type:Boolean,default:!1},closed:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=j(!t.closed),l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"},o={neutral:"bg-muted text-muted-foreground",info:"bg-primary/10 text-primary",success:"bg-success/10 text-success",warning:"bg-warning/10 text-warning",danger:"bg-destructive/10 text-destructive"},r=t1(()=>t.collapsible?n.value:!0);return(s,a)=>(h(),w("section",{class:i1(f(w1)("py-4 first:pt-0 last:pb-0",t.class))},[(h(),G(k2(e.collapsible?"button":"div"),{type:e.collapsible?"button":void 0,"aria-expanded":e.collapsible?String(n.value):void 0,class:i1(f(w1)("flex w-full items-center gap-2 text-left",e.collapsible&&"cursor-pointer")),onClick:a[0]||(a[0]=i=>e.collapsible&&(n.value=!n.value))},{default:x(()=>[s.$slots.icon?(h(),w("span",{key:0,class:i1(f(w1)("shrink-0",l[e.tone]))},[K1(s.$slots,"icon")],2)):W("",!0),y("h2",au,Q(e.title),1),e.count!==null?(h(),w("span",{key:1,class:i1(f(w1)("rounded-full px-2 py-0.5 text-xs font-medium tabular-nums",o[e.tone]))},Q(e.count),3)):W("",!0),e.collapsible?(h(),G(f(Ha),{key:2,class:i1(f(w1)("ml-auto h-4 w-4 shrink-0 text-muted-foreground transition-transform",n.value&&"rotate-180"))},null,8,["class"])):W("",!0)]),_:3},8,["type","aria-expanded","class"])),Ke(y("div",iu,[K1(s.$slots,"default")],512),[[Wo,r.value]])],2))}});/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const su=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + */const cu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const S7=e=>e==="";/** + */const R7=e=>e==="";/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const au=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** + */const uu=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const R7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const Q7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const iu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** + */const du=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const cu=e=>{const t=iu(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + */const fu=e=>{const t=du(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + */var Ee={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const uu=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Me.width,color:a=Me.stroke,...i},{slots:c})=>A3("svg",{...Me,...i,width:s,height:s,stroke:a,"stroke-width":S7(n)||S7(l)||n===!0||l===!0?Number(o||r||Me["stroke-width"])*24/Number(s):o||r||Me["stroke-width"],class:au("lucide",i.class,...e?[`lucide-${R7(cu(e))}-icon`,`lucide-${R7(e)}`]:["lucide-icon"]),...!c.default&&!su(i)&&{"aria-hidden":"true"}},[...t.map(d=>A3(...d)),...c.default?[c.default()]:[]]);/** + */const Au=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Ee.width,color:a=Ee.stroke,...i},{slots:c})=>h3("svg",{...Ee,...i,width:s,height:s,stroke:a,"stroke-width":R7(n)||R7(l)||n===!0||l===!0?Number(o||r||Ee["stroke-width"])*24/Number(s):o||r||Ee["stroke-width"],class:uu("lucide",i.class,...e?[`lucide-${Q7(fu(e))}-icon`,`lucide-${Q7(e)}`]:["lucide-icon"]),...!c.default&&!cu(i)&&{"aria-hidden":"true"}},[...t.map(d=>h3(...d)),...c.default?[c.default()]:[]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const F1=(e,t)=>(n,{slots:l,attrs:o})=>A3(uu,{...o,...n,iconNode:t,name:e},l);/** + */const D1=(e,t)=>(n,{slots:l,attrs:o})=>h3(Au,{...o,...n,iconNode:t,name:e},l);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Yt=F1("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** + */const Yt=D1("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const du=F1("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** + */const hu=D1("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const vn=F1("book-open-check",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** + */const bn=D1("book-open-check",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const S4=F1("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** + */const B4=D1("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const i4=F1("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** + */const i4=D1("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const fu=F1("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);/** + */const pu=D1("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const he=F1("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const pe=D1("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Au=F1("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + */const mu=D1("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Q7=F1("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const N7=D1("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const hu=F1("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const gu=D1("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pu=F1("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + */const vu=D1("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pt=F1("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** + */const ht=D1("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mu=F1("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** + */const yu=D1("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const p5=F1("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);/** + */const h5=D1("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const N7=F1("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + */const K7=D1("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const m5=F1("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** + */const p5=D1("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const gu=F1("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/** + */const bu=D1("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yn=F1("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** + */const kn=D1("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const V4=F1("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** + */const Y4=D1("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bn=F1("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** + */const Cn=D1("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const M2=F1("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + */const _2=D1("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const vu=F1("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/** + */const ku=D1("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yu=F1("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/** + */const Cu=D1("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const kn=F1("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/** + */const wn=D1("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const g5=F1("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** + */const m5=D1("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bu=F1("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** + */const wu=D1("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const h3=F1("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + */const p3=D1("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Cn=F1("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + */const xn=D1("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ku=F1("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** + */const xu=D1("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const c4=F1("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** + */const c4=D1("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wn=F1("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** + */const _n=D1("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mt=F1("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + */const pt=D1("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Le=F1("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const Pe=D1("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const gt=F1("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/** + */const mt=D1("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const xn=F1("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + */const In=D1("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const h4=F1("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** + */const A4=D1("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Cu=F1("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const _u=D1("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _n=F1("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** + */const Mn=D1("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const In=F1("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function Q2(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function wu(e){var t,n,l,o,r,s,a;const i=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,d=(l=e.meta)===null||l===void 0?void 0:l.source,u=(r=(o=e.meta)===null||o===void 0?void 0:o.license)===null||r===void 0?void 0:r.url,A=xu(e);return!i&&!c&&!d&&!u&&!A?"":''+(i?`${Q2(i)}`:"")+(c?`${Q2(c)}`:"")+(d?`${Q2((a=(s=e.meta)===null||s===void 0?void 0:s.source)!==null&&a!==void 0?a:"")}`:"")+(u?`${Q2(u)}`:"")+(A?`${Q2(A)}`:"")+""}function xu(e){var t,n,l,o,r,s,a,i,c,d,u,A,m,p,y;let k=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",F=`„${(o=(l=e.meta)===null||l===void 0?void 0:l.creator)!==null&&o!==void 0?o:"Unknown"}”`;!((r=e.meta)===null||r===void 0)&&r.source&&(k+=` (${e.meta.source})`);let M="";return((a=(s=e.meta)===null||s===void 0?void 0:s.license)===null||a===void 0?void 0:a.name)!=="MIT"&&((i=e.meta)===null||i===void 0?void 0:i.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(M+="Remix of "),M+=`${k} by ${F}`,!((u=(d=e.meta)===null||d===void 0?void 0:d.license)===null||u===void 0)&&u.name&&(M+=`, licensed under „${(m=(A=e.meta)===null||A===void 0?void 0:A.license)===null||m===void 0?void 0:m.name}”`,!((y=(p=e.meta)===null||p===void 0?void 0:p.license)===null||y===void 0)&&y.url&&(M+=` (${e.meta.license.url})`)),M}const K7=-2147483648,_u=2147483647,Iu=1024;function Mn(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function Mu(e){let t=0;for(let n=0;nt=Mn(t),l=(o,r)=>Math.floor((n()-K7)/(_u-K7)*(r+1-o)+o);return{seed:e,next:n,bool(o=50){return l(1,100)<=o},integer(o,r){return l(o,r)},pick(o,r){var s;return o.length===0?(n(),r):(s=o[l(0,o.length-1)])!==null&&s!==void 0?s:r},shuffle(o){const r=U4(n().toString()),s=[...o];for(let a=s.length-1;a>0;a--){const i=r.integer(0,a);[s[a],s[i]]=[s[i],s[a]]}return s},string(o,r="abcdefghijklmnopqrstuvwxyz1234567890"){const s=U4(n().toString());let a="";for(let i=0;i`;switch(l){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function Du(e,t){let{width:n,height:l,x:o,y:r}=ve(e),s=t?(t-100)/100:0,a=(n/2+o)*s*-1,i=(l/2+r)*s*-1;return`${e.body}`}function Zu(e,t,n){let l=ve(e),o=(l.width+l.x*2)*((t??0)/100),r=(l.height+l.y*2)*((n??0)/100);return`${e.body}`}function Fu(e,t){let{width:n,height:l,x:o,y:r}=ve(e);return`${e.body}`}function Bu(e){let{width:t,x:n}=ve(e);return`${e.body}`}function Su(e,t){let{width:n,height:l,x:o,y:r}=ve(e),s=t?n*t/100:0,a=t?l*t/100:0;return`${e.body}`}function Ru(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${Q2(n)}="${Q2(t[n])}"`).join(" ")}function Qu(e){const t=U4(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,o,r,s)=>(n[r]=n[r]||t.string(8),`${o}${n[r]}${s}`))}const Nu={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function G7(e){var t;let n={},l=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(l).forEach(o=>{let r=l[o];typeof r=="object"&&r.default!==void 0&&(Array.isArray(r.default)?n[o]=[...r.default]:typeof r.default=="object"?n[o]={...r.default}:n[o]=r.default)}),n}function Ku(e,t){var n;let l={...G7(Nu),...G7((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(l))}function O7(e){return e==="transparent"?e:`#${e}`}function Gu(e,t,n){var l;let o=e.shuffle(t);o.length<=1||t.length==2&&n=="gradientLinear"?(o=t,e.next()):o=e.shuffle(t),o.length===0&&(o=["transparent"]);const r=o[0],s=(l=o[1])!==null&&l!==void 0?l:o[0];return{primary:O7(r),secondary:O7(s)}}function Ou(e,t={}){var n,l,o,r,s;t=Ku(e,t);const a=U4(t.seed),i=e.create({prng:a,options:t}),c=a.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:d,secondary:u}=Gu(a,(l=t.backgroundColor)!==null&&l!==void 0?l:[],c),A=a.integer(!((o=t.backgroundRotation)===null||o===void 0)&&o.length?Math.min(...t.backgroundRotation):0,!((r=t.backgroundRotation)===null||r===void 0)&&r.length?Math.max(...t.backgroundRotation):0);t.size&&(i.attributes.width=t.size.toString(),i.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(i.body=Du(i,t.scale)),t.flip&&(i.body=Bu(i)),t.rotate&&(i.body=Fu(i,t.rotate)),(t.translateX||t.translateY)&&(i.body=Zu(i,t.translateX,t.translateY)),d!=="transparent"&&u!=="transparent"&&(i.body=Eu(i,d,u,c,A)),(t.radius||t.clip)&&(i.body=Su(i,(s=t.radius)!==null&&s!==void 0?s:0)),t.randomizeIds&&(i.body=Qu(i));const m=Ru(i),p=wu(e),y=`${p}${i.body}`;return{toString:()=>y,toJson:()=>{var k;return{svg:y,extra:{primaryBackgroundColor:d,secondaryBackgroundColor:u,backgroundType:c,backgroundRotation:A,...(k=i.extra)===null||k===void 0?void 0:k.call(i)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(y)}`}}const $u={variant01:(e,t)=>''},Wu={variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant09:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant08:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant07:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant06:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant05:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant04:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant03:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant02:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant01:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`}},Lu={variant63:(e,t)=>'',variant62:(e,t)=>'',variant61:(e,t)=>'',variant60:(e,t)=>'',variant59:(e,t)=>'',variant58:(e,t)=>'',variant57:(e,t)=>'',variant56:(e,t)=>'',variant55:(e,t)=>'',variant54:(e,t)=>'',variant53:(e,t)=>'',variant52:(e,t)=>'',variant51:(e,t)=>'',variant50:(e,t)=>'',variant49:(e,t)=>'',variant48:(e,t)=>'',variant47:(e,t)=>'',variant46:(e,t)=>'',variant45:(e,t)=>'',variant44:(e,t)=>'',variant43:(e,t)=>'',variant42:(e,t)=>'',variant41:(e,t)=>'',variant40:(e,t)=>'',variant39:(e,t)=>'',variant38:(e,t)=>'',variant37:(e,t)=>'',variant36:(e,t)=>'',variant35:(e,t)=>'',variant34:(e,t)=>'',variant33:(e,t)=>'',variant32:(e,t)=>'',variant31:(e,t)=>'',variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>'',hat:(e,t)=>''},Pu={variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Hu={variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Tu={variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Yu={variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Vu={variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Uu={variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Ju={wavePointLongArms:(e,t)=>'',waveOkLongArms:(e,t)=>'',waveLongArms:(e,t)=>'',waveLongArm:(e,t)=>'',pointLongArm:(e,t)=>'',okLongArm:(e,t)=>'',point:(e,t)=>'',ok:(e,t)=>'',hand:(e,t)=>'',handPhone:(e,t)=>''},zu={electric:(e,t)=>'',saturn:(e,t)=>'',galaxy:(e,t)=>''},ju=Object.freeze(Object.defineProperty({__proto__:null,base:$u,beard:Hu,body:Wu,bodyIcon:zu,brows:Uu,eyes:Yu,gesture:Ju,glasses:Vu,hair:Lu,lips:Pu,nose:Tu},Symbol.toStringTag,{value:"Module"}));function Z2({prng:e,group:t,values:n=[]}){const l=ju,o=e.pick(n);if(o&&l[t][o])return{name:o,value:l[t][o]}}function Xu({prng:e,options:t}){const n=Z2({prng:e,group:"base",values:t.base}),l=Z2({prng:e,group:"body",values:t.body}),o=Z2({prng:e,group:"hair",values:t.hair}),r=Z2({prng:e,group:"lips",values:t.lips}),s=Z2({prng:e,group:"beard",values:t.beard}),a=Z2({prng:e,group:"nose",values:t.nose}),i=Z2({prng:e,group:"eyes",values:t.eyes}),c=Z2({prng:e,group:"glasses",values:t.glasses}),d=Z2({prng:e,group:"brows",values:t.brows}),u=Z2({prng:e,group:"gesture",values:t.gesture}),A=Z2({prng:e,group:"bodyIcon",values:t.bodyIcon});return{base:n,body:l,hair:o,lips:r,beard:e.bool(t.beardProbability)?s:void 0,nose:a,eyes:i,glasses:e.bool(t.glassesProbability)?c:void 0,brows:d,gesture:e.bool(t.gestureProbability)?u:void 0,bodyIcon:e.bool(t.bodyIconProbability)?A:void 0}}function qu({prng:e,options:t}){return{}}const ed={$schema:"http://json-schema.org/draft-07/schema#",properties:{base:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},beard:{type:"array",items:{type:"string",enum:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:10},body:{type:"array",items:{type:"string",enum:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},bodyIcon:{type:"array",items:{type:"string",enum:["electric","saturn","galaxy"]},default:["electric","saturn","galaxy"]},bodyIconProbability:{type:"integer",minimum:0,maximum:100,default:75},brows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant05","variant04","variant03","variant02","variant01"]},default:["variant05","variant04","variant03","variant02","variant01"]},gesture:{type:"array",items:{type:"string",enum:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},default:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},gestureProbability:{type:"integer",minimum:0,maximum:100,default:10},glasses:{type:"array",items:{type:"string",enum:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hair:{type:"array",items:{type:"string",enum:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},default:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},lips:{type:"array",items:{type:"string",enum:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},nose:{type:"array",items:{type:"string",enum:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]}}},td={title:"Notionists",creator:"Zoish",source:"https://heyzoish.gumroad.com/l/notionists",homepage:"https://bio.link/heyzoish",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},nd=({prng:e,options:t})=>{var n,l,o,r,s,a,i,c,d,u,A,m,p,y,k,F,M,E,_,R;const $=Xu({prng:e,options:t}),D=qu({prng:e,options:t});return{attributes:{viewBox:"0 0 1744 1744",fill:"none","shape-rendering":"auto"},body:`${(l=(n=$.base)===null||n===void 0?void 0:n.value($,D))!==null&&l!==void 0?l:""}${(r=(o=$.body)===null||o===void 0?void 0:o.value($,D))!==null&&r!==void 0?r:""}${(a=(s=$.hair)===null||s===void 0?void 0:s.value($,D))!==null&&a!==void 0?a:""}${(c=(i=$.lips)===null||i===void 0?void 0:i.value($,D))!==null&&c!==void 0?c:""}${(u=(d=$.beard)===null||d===void 0?void 0:d.value($,D))!==null&&u!==void 0?u:""}${(m=(A=$.nose)===null||A===void 0?void 0:A.value($,D))!==null&&m!==void 0?m:""}${(y=(p=$.eyes)===null||p===void 0?void 0:p.value($,D))!==null&&y!==void 0?y:""}${(F=(k=$.glasses)===null||k===void 0?void 0:k.value($,D))!==null&&F!==void 0?F:""}${(E=(M=$.brows)===null||M===void 0?void 0:M.value($,D))!==null&&E!==void 0?E:""}${(R=(_=$.gesture)===null||_===void 0?void 0:_.value($,D))!==null&&R!==void 0?R:""}`,extra:()=>({...Object.entries($).reduce((x,[Q,B])=>(x[Q]=B==null?void 0:B.name,x),{}),...Object.entries(D).reduce((x,[Q,B])=>(x[`${Q}Color`]=B,x),{})})}},ld=Object.freeze(Object.defineProperty({__proto__:null,create:nd,meta:td,schema:ed},Symbol.toStringTag,{value:"Module"})),vt=z(!0);function $7(e){vt.value=e,document.documentElement.classList.toggle("dark",e),document.documentElement.classList.toggle("light",!e);try{localStorage.setItem("sourceant-theme",e?"dark":"light")}catch{}}function En(){return{isDark:vt,toggleTheme:()=>$7(!vt.value),restoreTheme:()=>{let e=null;try{e=localStorage.getItem("sourceant-theme")}catch{e=null}$7(e!=="light")}}}async function j1(e,t={}){const n=await fetch(e,{...t,headers:t.body?{"Content-Type":"application/json"}:void 0}),l=await n.text(),o=l?JSON.parse(l):null;if(!n.ok)throw new Error((o==null?void 0:o.error)||`the agent answered ${n.status}`);return o}const F2=e=>new URLSearchParams(Object.entries(e).filter(([,t])=>t!==""&&t!==!1)),B1={status:()=>j1("/health"),repositories:()=>j1("/api/repositories"),addRepository:(e,t)=>j1("/api/repositories",{method:"POST",body:JSON.stringify({path:e,name:t})}),dropRepository:e=>j1(`/api/repositories?${F2({path:e})}`,{method:"DELETE"}),index:(e="",{everything:t=!1,update:n=!1}={})=>j1("/api/index",{method:"POST",body:JSON.stringify({repository:e,everything:t,update:n})}),attention:e=>j1(`/api/attention?${F2({repository:e})}`),graph:(e,{includeTests:t=!1,pathPrefix:n=""}={})=>j1(`/api/graph?${F2({repository:e,include_tests:t,path_prefix:n})}`),knowledge:e=>j1(`/api/knowledge?${F2({repository:e,limit:100})}`),recordKnowledge:e=>j1("/api/knowledge",{method:"PUT",body:JSON.stringify(e)}),forgetKnowledge:(e,t)=>j1(`/api/knowledge?${F2({repository:e,id:t})}`,{method:"DELETE"}),browse:(e="")=>j1(`/api/browse?${F2({path:e})}`),initialize:(e,{dryRun:t=!1,useModel:n=!1}={})=>j1("/api/knowledge/initialize",{method:"POST",body:JSON.stringify({repository:e,dry_run:t,use_model:n})}),skills:(e="")=>j1(`/api/skills?${F2({repository:e})}`),skill:(e,t="")=>j1(`/api/skills/${e}?${F2({repository:t})}`),recordSkill:e=>j1("/api/skills",{method:"PUT",body:JSON.stringify({scope:"repository",paths:[],reviews:null,...e})}),forgetSkill:(e,t,n)=>j1(`/api/skills?${F2({repository:e,scope:t,id:n})}`,{method:"DELETE"}),startReview:(e,{against:t="",title:n="",description:l="",skills:o=[],useModel:r=!0}={})=>j1("/api/reviews",{method:"POST",body:JSON.stringify({repository:e,against:t,title:n,description:l,skills:o,use_model:r})}),reviewed:e=>j1(`/api/reviews/${e}`),reviews:(e="")=>j1(`/api/reviews?${F2({repository:e})}`),settings:()=>j1("/api/settings"),setSetting:(e,t)=>j1("/api/settings",{method:"PUT",body:JSON.stringify({key:e,value:t})}),resetSetting:e=>j1(`/api/settings?${F2({key:e})}`,{method:"DELETE"})},od={class:"space-y-4"},rd={key:0,class:"flex items-center gap-2 py-6 text-sm text-muted-foreground"},sd=["onClick"],ad=["value"],id={key:1,class:"flex items-center gap-2 text-sm"},cd=["id","onUpdate:modelValue"],ud={class:"text-muted-foreground"},dd={key:0,class:"py-6 text-sm text-muted-foreground"},fd={key:2,class:"flex items-center gap-3"},Ad={key:0,class:"text-xs text-success"},Dn={__name:"SettingsPanel",props:{group:{type:String,required:!0}},emits:["saved"],setup(e,{emit:t}){const n=e,l=t,o=z([]),r=z({}),s=z(!1),a=z(!0),i=z(""),c=z(!1),d=t1(()=>o.value.filter(E=>E.group===n.group));function u(E){return E.secret?"":E.listed?String(E.value??"").split(` -`).map(_=>_.trim()).filter(Boolean):E.value??""}const A=(E,_)=>E.listed?(_??[]).join(` -`):_,m=(E,_)=>String(A(E,_)??"")===String(E.value??""),p=t1(()=>d.value.some(E=>{const _=r.value[E.key];return E.secret?!!_:!m(E,_)}));async function y(){a.value=!0;try{o.value=await B1.settings(),r.value=Object.fromEntries(d.value.map(E=>[E.key,u(E)])),i.value=""}catch(E){i.value=E.message}finally{a.value=!1}}async function k(){s.value=!0,c.value=!1,i.value="";try{for(const E of d.value){const _=r.value[E.key];E.secret&&!_||!E.secret&&m(E,_)||await B1.setSetting(E.key,A(E,_))}await y(),c.value=!0,l("saved")}catch(E){i.value=E.message}finally{s.value=!1}}async function F(E){i.value="";try{await B1.resetSetting(E.key),await y()}catch(_){i.value=_.message}}function M(E){return E.secret?E.is_set:String(E.value??"")!==String(E.default??"")}return t2(()=>n.group,y),d2(y),(E,_)=>(h(),C("div",od,[a.value?(h(),C("p",rd,[I(f(M2),{class:"h-4 w-4 animate-spin"}),_[0]||(_[0]=U(" Reading what this machine can be told. ",-1))])):(h(),C(n1,{key:1},[(h(!0),C(n1,null,_1(d.value,R=>(h(),G(f(R2),{key:R.key,label:R.label,for:R.key,hint:R.description},{label:w(()=>[R.secret&&R.is_set?(h(),G(f(c2),{key:0,variant:"success"},{default:w(()=>[..._[1]||(_[1]=[U("set",-1)])]),_:1})):P("",!0),M(R)?(h(),C("button",{key:1,type:"button",class:"inline-flex items-center gap-1 text-[11px] font-normal normal-case tracking-normal text-muted-foreground hover:text-foreground",onClick:$=>F(R)},[I(f(ku),{class:"h-3 w-3"}),_[2]||(_[2]=U(" put back ",-1))],8,sd)):P("",!0)]),default:w(()=>{var $;return[($=R.choices)!=null&&$.length?(h(),G(f(j2),{key:0,id:R.key,modelValue:r.value[R.key],"onUpdate:modelValue":D=>r.value[R.key]=D,class:"w-full"},{default:w(()=>[(h(!0),C(n1,null,_1(R.choices,D=>(h(),C("option",{key:D,value:D},N(D),9,ad))),128))]),_:2},1032,["id","modelValue","onUpdate:modelValue"])):R.type==="bool"?(h(),C("label",id,[Ne(b("input",{id:R.key,"onUpdate:modelValue":D=>r.value[R.key]=D,type:"checkbox",class:"h-3.5 w-3.5 rounded border"},null,8,cd),[[a0,r.value[R.key]]]),b("span",ud,N(r.value[R.key]?"On":"Off"),1)])):R.listed?(h(),G(f(O0),{key:2,modelValue:r.value[R.key],"onUpdate:modelValue":D=>r.value[R.key]=D,mono:"",noun:"a folder",placeholder:"/home/you/work/knowledgebase/skills"},null,8,["modelValue","onUpdate:modelValue"])):(h(),G(f(J3),{key:3,id:R.key,modelValue:r.value[R.key],"onUpdate:modelValue":D=>r.value[R.key]=D,type:R.secret?"password":R.type==="int"||R.type==="float"?"number":"text",autocomplete:R.secret?"off":void 0,placeholder:R.secret&&R.is_set?"Leave empty to keep what is set":String(R.default??"")},null,8,["id","modelValue","onUpdate:modelValue","type","autocomplete","placeholder"]))]}),_:2},1032,["label","for","hint"]))),128)),d.value.length?P("",!0):(h(),C("p",dd," Nothing in this group is configurable here. ")),i.value?(h(),G(f(u2),{key:1,tone:"danger"},{default:w(()=>[U(N(i.value),1)]),_:1})):P("",!0),d.value.length?(h(),C("div",fd,[I(f(C1),{disabled:s.value||!p.value,onClick:k},{default:w(()=>[s.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(he),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),_[3]||(_[3]=U(" Save ",-1))]),_:1},8,["disabled"]),c.value&&!p.value?(h(),C("span",Ad,"Saved.")):P("",!0),K1(E.$slots,"after")])):P("",!0)],64))]))}},hd={class:"mb-2 text-xs font-mono text-muted-foreground break-all"},pd={class:"h-64 overflow-y-auto rounded-md border bg-muted/30"},md=["onClick"],gd={class:"truncate"},vd={key:1,class:"px-3 py-6 text-center text-sm text-muted-foreground"},yd={class:"mt-2 text-xs text-muted-foreground"},bd={class:"font-mono"},kd={class:"flex items-center gap-2 pt-5"},Zn={__name:"FolderPicker",props:{open:Boolean},emits:["close","added"],setup(e,{emit:t}){const n=e,l=t,o=z(null),r=z(""),s=z(!1),a=z("");async function i(d){try{o.value=await B1.browse(d),a.value=""}catch(u){a.value=u.message}}t2(()=>n.open,d=>{d&&(r.value="",a.value="",s.value=!1,i(""))});async function c(){if(o.value){s.value=!0,a.value="";try{await B1.addRepository(o.value.path,r.value.trim()),await B1.index("",{everything:!0}),l("added"),l("close")}catch(d){a.value=d.message}finally{s.value=!1}}}return(d,u)=>(h(),G(f(Tt),{open:e.open,"max-width":"lg",onClose:u[3]||(u[3]=A=>l("close"))},{default:w(()=>{var A,m,p,y;return[u[8]||(u[8]=b("h2",{class:"text-lg font-semibold mb-3"},"Add a folder",-1)),b("p",hd,N((A=o.value)==null?void 0:A.path),1),b("div",pd,[(m=o.value)!=null&&m.parent?(h(),C("button",{key:0,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:u[0]||(u[0]=k=>i(o.value.parent))},[I(f(Au),{class:"h-3.5 w-3.5"}),u[4]||(u[4]=b("span",{class:"text-muted-foreground"},"Up one",-1))])):P("",!0),(h(!0),C(n1,null,_1(((p=o.value)==null?void 0:p.entries)??[],k=>(h(),C("button",{key:k.path,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:F=>i(k.path)},[I(f(m5),{class:"h-3.5 w-3.5 text-muted-foreground"}),b("span",gd,N(k.name),1),k.repository?(h(),G(f(c2),{key:0,variant:"glow",class:"ml-auto shrink-0"},{default:w(()=>[...u[5]||(u[5]=[U("git",-1)])]),_:1})):P("",!0)],8,md))),128)),o.value&&o.value.entries.length===0?(h(),C("p",vd," Nothing inside. ")):P("",!0)]),I(f(R2),{label:"Name it (optional)",for:"repo-name",class:"mt-4"},{default:w(()=>[I(f(J3),{id:"repo-name",modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=k=>r.value=k),placeholder:"Taken from the git remote, or the folder name"},null,8,["modelValue"])]),_:1}),b("p",yd,[u[6]||(u[6]=U(" Adding ",-1)),b("code",bd,N((y=o.value)==null?void 0:y.path),1)]),a.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mt-3"},{default:w(()=>[U(N(a.value),1)]),_:1})):P("",!0),b("div",kd,[I(f(C1),{disabled:s.value||!o.value,onClick:c},{default:w(()=>[s.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(h3),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(s.value?"Reading…":"Add and index"),1)]),_:1},8,["disabled"]),I(f(C1),{variant:"outline",onClick:u[2]||(u[2]=k=>l("close"))},{default:w(()=>[...u[7]||(u[7]=[U("Cancel",-1)])]),_:1})])]}),_:1},8,["open"]))}},q3=z([]),Ee=z(""),H5=z(""),T5=z(!1),Vt="";function g3({all:e=!1}={}){const t=t1(()=>e&&!Ee.value&&q3.value.length>1);async function n(){var l;T5.value=!0;try{q3.value=await B1.repositories(),H5.value=""}catch(o){q3.value=[],H5.value=`${o.message}. Is sourceant-agent running?`}finally{T5.value=!1}Ee.value===Vt&&e||q3.value.some(o=>o.name===Ee.value)||(Ee.value=((l=q3.value[0])==null?void 0:l.name)??"")}return{repositories:q3,chosen:Ee,error:H5,loading:T5,mixed:t,fetchRepositories:n}}const Cd={class:"flex items-center gap-2"},W7="sourceant-onboarded",wd={__name:"Onboarding",setup(e){const{repositories:t,fetchRepositories:n}=g3(),l=z(!1),o=z("folder"),r=z(!1),s=t1(()=>t.value.length>0);function a(){try{localStorage.setItem(W7,"yes")}catch{}l.value=!1}return d2(async()=>{let i=null;try{i=localStorage.getItem(W7)}catch{i=null}i||(await n(),l.value=t.value.length===0)}),(i,c)=>(h(),G(f(Tt),{open:l.value,"max-width":"xl",onClose:a},{default:w(()=>[o.value==="folder"?(h(),C(n1,{key:0},[c[4]||(c[4]=b("h2",{class:"text-lg font-semibold mb-1"},"Point it at some code",-1)),c[5]||(c[5]=b("p",{class:"text-sm text-muted-foreground mb-5"}," SourceAnt reads a folder on this machine into a graph, and keeps what you record about it beside the code it belongs to. Nothing leaves this machine. ",-1)),b("div",Cd,[I(f(C1),{onClick:c[0]||(c[0]=d=>r.value=!0)},{default:w(()=>[I(f(h3),{class:"mr-1.5 h-3.5 w-3.5"}),c[3]||(c[3]=U(" Add a folder ",-1))]),_:1}),I(f(C1),{variant:"outline",onClick:c[1]||(c[1]=d=>o.value="model")},{default:w(()=>[s.value?(h(),C(n1,{key:0},[U("Next")],64)):(h(),C(n1,{key:1},[U("Skip for now")],64)),I(f(du),{class:"ml-1.5 h-3.5 w-3.5"})]),_:1})]),I(Zn,{open:r.value,onClose:c[2]||(c[2]=d=>r.value=!1),onAdded:f(n)},null,8,["open","onAdded"])],64)):(h(),C(n1,{key:1},[c[7]||(c[7]=b("h2",{class:"text-lg font-semibold mb-1"},"Bring a model, or don't",-1)),c[8]||(c[8]=b("p",{class:"text-sm text-muted-foreground mb-5"}," Reading your code and reading what it already states about itself need no model at all. Proposing what nobody wrote down does. Your key stays on this machine and goes to that provider and nowhere else. ",-1)),I(Dn,{group:"Model",onSaved:a},{after:w(()=>[I(f(C1),{variant:"ghost",onClick:a},{default:w(()=>[...c[6]||(c[6]=[U("Not now",-1)])]),_:1})]),_:1})],64))]),_:1},8,["open"]))}},xd={class:"flex h-screen flex-col bg-background"},_d={class:"z-40 h-12 shrink-0 border-b bg-card/80 backdrop-blur-sm"},Id={class:"flex items-center h-full min-w-0 px-3 gap-1 sm:px-4"},Md={class:"hidden lg:flex items-center gap-0.5 min-w-0"},Ed={class:"hidden xl:inline"},Dd={class:"relative shrink-0","data-dropdown":"user"},Zd={key:0,class:"absolute top-full right-0 mt-1 w-52 bg-card border rounded-lg shadow-lg py-1 z-50"},Fd=["aria-label"],Bd={key:0,class:"lg:hidden shrink-0 border-b bg-card px-4 py-2 space-y-0.5"},Sd={class:"min-h-0 flex-1 overflow-y-auto"},Rd={class:"container mx-auto flex h-full flex-col px-4 pb-4 pt-3 lg:px-6 lg:pb-6 lg:pt-4"},Qd={__name:"App",setup(e){const{isDark:t,toggleTheme:n,restoreTheme:l}=En(),o=d5(),r=z(!1),s=z(!1),a=[{name:"Overview",href:"/",icon:yn},{name:"Knowledge",href:"/knowledge",icon:S4},{name:"Graphs",href:"/graph",icon:g5},{name:"Reviews",href:"/reviews",icon:Le},{name:"Skills",href:"/skills",icon:vn},{name:"Repositories",href:"/repositories",icon:i4},{name:"Settings",href:"/settings",icon:mt}],i=t1(()=>Ou(ld,{seed:location.hostname||"sourceant",radius:50}).toDataUri());function c(d){d.target.closest('[data-dropdown="user"]')||(s.value=!1)}return d2(()=>{l(),document.addEventListener("click",c)}),f4(()=>document.removeEventListener("click",c)),(d,u)=>{const A=Ve("RouterLink"),m=Ve("RouterView");return h(),C("div",xd,[b("header",_d,[b("div",Id,[I(A,{to:"/",class:"shrink-0 mr-1 sm:mr-3"},{default:w(()=>[I(f(H9),{size:"sm","show-text":!1})]),_:1}),u[7]||(u[7]=b("span",{class:"hidden lg:block h-4 w-px bg-border mx-1 shrink-0"},null,-1)),b("nav",Md,[(h(),C(n1,null,_1(a,p=>I(A,{key:p.href,to:p.href,title:p.name,class:f1(["flex shrink-0 items-center gap-1.5 px-2 py-1 rounded-md text-sm transition-colors 2xl:px-2.5",f(o).path===p.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:w(()=>[(h(),G(k2(p.icon),{class:"h-3.5 w-3.5 shrink-0"})),b("span",Ed,N(p.name),1)]),_:2},1032,["to","title","class"])),64))]),u[8]||(u[8]=b("div",{class:"flex-1 min-w-0"},null,-1)),b("div",Dd,[b("button",{class:"flex items-center gap-1.5 p-1 rounded-md hover:bg-muted transition-colors","aria-label":"Account",onClick:u[0]||(u[0]=qe(p=>s.value=!s.value,["stop"]))},[I(f(fa),{src:i.value,size:"sm",class:"h-6 w-6"},null,8,["src"])]),I(r0,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:w(()=>[s.value?(h(),C("div",Zd,[u[6]||(u[6]=b("div",{class:"px-3 py-2 border-b"},[b("p",{class:"text-sm font-medium truncate"},"This machine"),b("p",{class:"text-xs text-muted-foreground truncate"},"Nothing here has been shared.")],-1)),I(A,{to:"/settings",class:"flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[1]||(u[1]=p=>s.value=!1)},{default:w(()=>[I(f(mt),{class:"h-3.5 w-3.5 text-muted-foreground"}),u[5]||(u[5]=U(" Settings ",-1))]),_:1}),b("button",{class:"flex items-center gap-2 w-full px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[2]||(u[2]=(...p)=>f(n)&&f(n)(...p))},[(h(),G(k2(f(t)?f(xn):f(kn)),{class:"h-3.5 w-3.5 text-muted-foreground"})),b("span",null,N(f(t)?"Light mode":"Dark mode"),1)])])):P("",!0)]),_:1})]),b("button",{class:"lg:hidden shrink-0 p-1 rounded-md hover:bg-muted transition-colors","aria-label":r.value?"Close menu":"Open menu",onClick:u[3]||(u[3]=p=>r.value=!r.value)},[r.value?(h(),G(f(In),{key:1,class:"h-5 w-5"})):(h(),G(f(vu),{key:0,class:"h-5 w-5"}))],8,Fd)])]),r.value?(h(),C("div",Bd,[(h(),C(n1,null,_1(a,p=>I(A,{key:p.href,to:p.href,class:f1(["flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",f(o).path===p.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"]),onClick:u[4]||(u[4]=y=>r.value=!1)},{default:w(()=>[(h(),G(k2(p.icon),{class:"h-4 w-4"})),U(" "+N(p.name),1)]),_:2},1032,["to","class"])),64))])):P("",!0),b("main",Sd,[b("div",Rd,[I(m)])]),I(wd)])}}},p4={__name:"EmptyMachine",setup(e){return(t,n)=>(h(),G(f(z1),{class:"text-center py-16 px-6"},{default:w(()=>[n[1]||(n[1]=b("h2",{class:"text-lg font-semibold mb-1"},"Nothing indexed yet",-1)),n[2]||(n[2]=b("p",{class:"text-muted-foreground text-sm mb-4 max-w-lg mx-auto"}," Point SourceAnt at a folder on this machine and it reads the code into a graph you can look at and record against. ",-1)),I(f(C1),{as:"a",href:"/repositories",variant:"glow"},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),n[0]||(n[0]=U(" Add a repository ",-1))]),_:1})]),_:1}))}},Nd={class:"grid gap-3 mb-6 sm:grid-cols-2 lg:grid-cols-4"},Kd={class:"text-xs text-muted-foreground capitalize"},Gd={class:"mt-1 text-2xl font-semibold tabular-nums"},Od={class:"grid gap-3"},$d={class:"flex items-center gap-1.5"},Wd={class:"flex items-center gap-1.5"},Ld={__name:"Overview",setup(e){const{repositories:t,error:n,fetchRepositories:l}=g3(),o=z([]),r=t1(()=>({repositories:t.value.length,files:o.value.reduce((s,a)=>s+a.files,0),nodes:o.value.reduce((s,a)=>s+a.nodes,0),knowledge:o.value.reduce((s,a)=>s+a.knowledge,0)}));return d2(async()=>{await l(),o.value=await Promise.all(t.value.map(async s=>{const[a,i]=await Promise.all([B1.graph(s.name).catch(()=>null),B1.knowledge(s.name).catch(()=>null)]);return{repository:s,files:a?a.nodes.filter(c=>c.kind==="file").length:0,nodes:a?a.nodes.length:0,knowledge:i?i.total:0}}))}),(s,a)=>(h(),C("div",null,[I(f(m3),{pillar:"memory",title:"Overview",sub:"What SourceAnt has on this machine."},{icon:w(()=>[I(f(yn),{class:"h-6 w-6"})]),_:1}),f(n)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(n)),1)]),_:1})):P("",!0),!f(n)&&f(t).length===0?(h(),G(p4,{key:1})):f(t).length?(h(),C(n1,{key:2},[b("div",Nd,[(h(!0),C(n1,null,_1(r.value,(i,c)=>(h(),G(f(z1),{key:c,class:"p-5"},{default:w(()=>[b("p",Kd,N(c),1),b("p",Gd,N(i.toLocaleString()),1)]),_:2},1024))),128))]),b("div",Od,[(h(!0),C(n1,null,_1(o.value,i=>(h(),G(f(z3),{key:i.repository.name,title:i.repository.name,subtitle:i.repository.path,hover:""},{icon:w(()=>[I(f(m5),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:i.files?"success":"warning"},{default:w(()=>[U(N(i.files?"Indexed":"Not indexed"),1)]),_:2},1032,["variant"])]),meta:w(()=>[b("span",$d,[I(f(p5),{class:"h-3.5 w-3.5"}),U(N(i.files.toLocaleString())+" files ",1)]),b("span",Wd,[I(f(V4),{class:"h-3.5 w-3.5"}),U(N(i.knowledge.toLocaleString())+" recorded ",1)])]),actions:w(()=>[I(f(C1),{as:"a",href:"/graph",variant:"ghost",size:"sm"},{default:w(()=>[...a[0]||(a[0]=[U("Graph",-1)])]),_:1})]),_:2},1032,["title","subtitle"]))),128))]),a[1]||(a[1]=b("p",{class:"mt-4 text-xs text-muted-foreground"}," Reviews are not here. A review reads a pull request, and nothing on this machine produces one. ",-1))],64)):P("",!0)]))}};function Pd(){const e=z(null),t=z(!1),n=z(null);async function l(o,r,s={}){t.value=!0;try{e.value=await B1.graph(`${o}/${r}`,s),n.value=null}catch(a){e.value=null,n.value=a}finally{t.value=!1}}return{graph:e,loading:t,fetchCodeGraph:l,failureFor:()=>n.value}}function Hd(){const e=z(null);async function t(){return e.value={nodes:[],links:[]},e.value}return{fetchGraph:t,failureFor:()=>null}}const Td={key:0},Yd={class:"inline-flex w-full rounded-md border bg-muted/40 p-0.5"},Vd=["onClick"],Ud={class:"mt-1.5 text-[11px] text-muted-foreground"},Jd={key:1},zd={class:"relative"},jd={key:2},Xd={class:"space-y-0.5"},qd=["onClick"],ef={class:"flex-1 truncate text-foreground"},tf={class:"tabular-nums text-muted-foreground"},nf={key:3},lf={class:"flex flex-wrap gap-1.5"},of=["onClick"],rf={key:4},sf={class:"flex cursor-pointer items-center gap-2 text-[11px] text-muted-foreground"},af={key:5},cf={key:6},uf={class:"mb-1.5 flex items-center justify-between"},df=["disabled"],ff={key:0,class:"mt-1 text-[11px] text-muted-foreground"},Af={key:1,class:"mt-1.5 space-y-1.5"},hf={class:"flex items-start gap-1.5 text-[11px]"},pf={class:"min-w-0 break-words"},mf={class:"font-medium"},gf={class:"min-w-0"},vf={class:"min-w-0"},yf={class:"overflow-hidden rounded-lg border bg-card"},bf={class:"space-y-1"},kf={class:"mx-auto max-w-sm text-xs text-muted-foreground"},Cf={key:0,class:"mt-2 text-xs text-warning"},wf={key:1,class:"mt-2 text-xs text-muted-foreground"},Fn=$1({__name:"GraphWorkbench",props:{repository:{},sources:{default:()=>["knowledge","code"]},controls:{default:()=>["filter","kinds","parts","layouts","depth","retired"]},height:{default:"640px"}},emits:["select"],setup(e,{expose:t,emit:n}){const l=e,o=n,{fetchGraph:r,failureFor:s}=Hd(),{legend:a}=K0(),{graph:i,loading:c,fetchCodeGraph:d,failureFor:u}=Pd(),A=z(l.sources[0]??"knowledge"),m=z(null),p=z(!1),y=t1(()=>A.value==="code"?i.value:m.value),k=t1(()=>A.value==="code"?c.value:p.value),F=t1(()=>A.value==="code"?u("code-graph"):s("graph")),M=t1(()=>l.repository.split("/").pop()??l.repository),E=t1(()=>!!y.value&&y.value.nodes.length>0);function _(q){return l.controls.includes(q)}const R=z(""),$=z(2),D=z([]),x=z(""),Q=z("2d"),B=z([]),X=z(!1),Y=t1(()=>!!R.value),m1=t1(()=>{var S;const q=(S=y.value)==null?void 0:S.nodes.find(o1=>o1.id===R.value);return(q==null?void 0:q.name)??R.value.replace(/^(file|symbol):/,"")}),w1=t1(()=>{var q;return((q=y.value)==null?void 0:q.communities)??[]}),r1=[{id:"2d",label:"2D"},{id:"3d",label:"3D"},{id:"tree",label:"Tree"},{id:"radial",label:"Radial"},{id:"layered",label:"Layered"},{id:"web",label:"Force"}],l1={knowledge:"Knowledge",code:"Code"},b1=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];async function y1(){const[q,S]=l.repository.split("/");if(!q||!S){m.value=null;return}if(A.value==="code"){await d(q,S,{focus:R.value||void 0,depth:Y.value?$.value:void 0,q:x.value.trim()||void 0});return}p.value=!0;try{m.value=await r(q,S,{focus:R.value||void 0,depth:Y.value?$.value:void 0,kind:D.value,q:x.value.trim()||void 0,status:X.value?"all":void 0})}finally{p.value=!1}}let k1=null;function c1(){k1&&clearTimeout(k1),k1=setTimeout(y1,250)}t2([$,D,x,X],c1,{deep:!0}),t2(R,y1),t2(A,()=>{R.value="",B.value=[],y1()}),t2(()=>l.repository,()=>{R.value="",B.value=[],y1()},{immediate:!0});function L1(q){o("select",q),_("depth")&&(R.value=R.value===q?"":q)}function S1(){R.value=""}function Y1(q){D.value=D.value.includes(q)?D.value.filter(S=>S!==q):[...D.value,q]}function q1(q){B.value=B.value.includes(q)?B.value.filter(S=>S!==q):[...B.value,q]}const s1=t1(()=>l.sources.length>1||_("filter")||_("kinds")||_("parts")||_("layouts")||_("depth")||_("retired"));return t({reload:y1}),(q,S)=>{var A1,x1,g;const o1=Ve("UiLoadFailure"),J=Ve("UiLoadingState");return h(),C("div",{class:f1(["grid gap-4 lg:items-start",s1.value?"lg:grid-cols-[16rem_1fr]":""])},[s1.value?(h(),C("aside",{key:0,class:"space-y-4 overflow-y-auto rounded-lg border bg-card p-3",style:S2({height:e.height})},[e.sources.length>1?(h(),C("div",Td,[S[5]||(S[5]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Draw",-1)),b("div",Yd,[(h(!0),C(n1,null,_1(e.sources,v=>(h(),C("button",{key:v,type:"button",class:f1(["flex-1 rounded px-2 py-1 text-xs font-medium transition-colors",A.value===v?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:Z=>A.value=v},N(l1[v]),11,Vd))),128))]),b("p",Ud,N(A.value==="code"?"What is defined and what calls what, read from the code.":"What your team decided, and the files it covers."),1)])):P("",!0),_("filter")?(h(),C("div",Jd,[S[6]||(S[6]=b("label",{class:"mb-1.5 block text-[11px] font-medium uppercase tracking-wide text-muted-foreground"}," Only what mentions ",-1)),b("div",zd,[I(f(wn),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),Ne(b("input",{"onUpdate:modelValue":S[0]||(S[0]=v=>x.value=v),type:"search",placeholder:"a word",class:"w-full rounded-md border bg-background py-1.5 pl-8 pr-2 text-sm"},null,512),[[S6,x.value]])])])):P("",!0),_("parts")&&A.value==="code"&&w1.value.length?(h(),C("div",jd,[S[7]||(S[7]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Parts",-1)),b("ul",Xd,[(h(!0),C(n1,null,_1(w1.value,v=>(h(),C("li",{key:v.id},[b("button",{type:"button",class:f1(["flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] transition-colors hover:bg-muted",B.value.includes(v.id)?"opacity-40":""]),onClick:Z=>q1(v.id)},[b("span",{class:"h-2.5 w-2.5 shrink-0 rounded-full",style:S2({backgroundColor:b1[v.id%b1.length]})},null,4),b("span",ef,N(v.name),1),b("span",tf,N(v.size),1)],10,qd)]))),128))]),S[8]||(S[8]=b("p",{class:"mt-1.5 text-[11px] text-muted-foreground"}," Grouped by what calls what. Click one to hide it. ",-1))])):P("",!0),_("kinds")&&A.value==="knowledge"?(h(),C("div",nf,[S[9]||(S[9]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Kinds",-1)),b("div",lf,[(h(!0),C(n1,null,_1(f(a),v=>(h(),C("button",{key:v.label,type:"button",class:f1(["inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] transition-colors",D.value.includes(v.label.toLowerCase())?"border-primary/40 bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"]),onClick:Z=>Y1(v.label.toLowerCase())},[b("span",{class:"h-2 w-2 rounded-sm",style:S2({backgroundColor:v.color})},null,4),U(" "+N(v.label),1)],10,of))),128)),D.value.length?(h(),C("button",{key:0,type:"button",class:"text-[11px] text-muted-foreground underline-offset-2 hover:underline",onClick:S[1]||(S[1]=v=>D.value=[])},"Any")):P("",!0)])])):P("",!0),_("retired")&&A.value==="knowledge"?(h(),C("div",rf,[b("label",sf,[Ne(b("input",{"onUpdate:modelValue":S[2]||(S[2]=v=>X.value=v),type:"checkbox",class:"h-3 w-3 rounded border"},null,512),[[a0,X.value]]),S[10]||(S[10]=U(" Include retired records ",-1))])])):P("",!0),_("layouts")?(h(),C("div",af,[S[11]||(S[11]=b("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Shape",-1)),I(f(ge),{modelValue:Q.value,"onUpdate:modelValue":S[3]||(S[3]=v=>Q.value=v),tabs:r1,label:"Shape",class:"grid w-full grid-cols-2"},null,8,["modelValue"])])):P("",!0),_("depth")?(h(),C("div",cf,[b("div",uf,[b("span",{class:f1(["text-[11px] font-medium uppercase tracking-wide",Y.value?"text-muted-foreground":"text-muted-foreground/50"])}," Steps out ",2),b("span",{class:f1(["font-mono text-xs",Y.value?"":"opacity-50"])},N($.value),3)]),Ne(b("input",{"onUpdate:modelValue":S[4]||(S[4]=v=>$.value=v),type:"range",min:"1",max:"5",disabled:!Y.value,class:"w-full"},null,8,df),[[S6,$.value,void 0,{number:!0}]]),Y.value?(h(),C("div",Af,[b("p",hf,[I(f(mu),{class:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),b("span",pf,[S[12]||(S[12]=U("From ",-1)),b("span",mf,N(m1.value),1)])]),b("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-1 rounded-md border px-2 py-1 text-[11px] hover:bg-muted",onClick:S1},[I(f(In),{class:"h-3 w-3"}),S[13]||(S[13]=U(" Draw everything ",-1))])])):(h(),C("p",ff," Click anything on the graph to walk out from it. "))])):P("",!0)],4)):P("",!0),b("div",gf,[b("div",{class:f1(["grid gap-4",q.$slots.inspector?"lg:grid-cols-[1fr_20rem]":""])},[b("div",vf,[b("div",yf,[F.value?(h(),G(o1,{key:0,what:"this graph",message:F.value,onRetry:y1},null,8,["message"])):k.value?(h(),C("div",{key:1,style:S2({height:e.height})},[I(J,{label:A.value==="code"?"Reading the code":"Reading the knowledge graph",compact:""},null,8,["label"])],4)):E.value?(h(),G(f(ma),{key:3,repo:M.value,mode:Q.value,data:y.value,hidden:B.value,height:e.height,onSelect:L1},null,8,["repo","mode","data","hidden","height"])):(h(),C("div",{key:2,class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:S2({height:e.height})},[I(f(g5),{class:"h-7 w-7 text-muted-foreground"}),b("div",bf,[S[14]||(S[14]=b("p",{class:"text-sm font-medium"},"Nothing to draw",-1)),b("p",kf,N(A.value==="code"?"This repository has not been read yet, so there is no code map for it.":"Initialize this repository and approve what it proposes, and its decisions appear here."),1)])],4))]),(A1=y.value)!=null&&A1.truncated?(h(),C("p",Cf," More than fits in one drawing, so this is the most connected part of it. Narrow it"+N(s1.value?" on the left":"")+", or click something to walk out from it. ",1)):E.value?(h(),C("p",wf,N((x1=y.value)==null?void 0:x1.nodes.length)+" symbols, "+N((g=y.value)==null?void 0:g.links.length)+" connections. ",1)):P("",!0)]),q.$slots.inspector?(h(),C("div",{key:0,class:"overflow-y-auto rounded-lg border bg-card",style:S2({height:e.height})},[K1(q.$slots,"inspector")],4)):P("",!0)],2)])],2)}}}),xf={class:"flex h-full min-h-0 flex-col"},_f=["value"],If={__name:"Graph",setup(e){const{repositories:t,chosen:n,error:l,fetchRepositories:o}=g3();return d2(o),(r,s)=>(h(),C("div",xf,[I(f(m3),{title:"Graphs",sub:"Your code, and how it holds together."},{icon:w(()=>[I(f(g5),{class:"h-6 w-6"})]),actions:w(()=>[f(t).length>1?(h(),G(f(j2),{key:0,modelValue:f(n),"onUpdate:modelValue":s[0]||(s[0]=a=>n2(n)?n.value=a:null),size:"sm","aria-label":"Repository"},{default:w(()=>[(h(!0),C(n1,null,_1(f(t),a=>(h(),C("option",{key:a.name,value:a.name},N(a.name),9,_f))),128))]),_:1},8,["modelValue"])):P("",!0)]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(l)),1)]),_:1})):P("",!0),f(t).length===0?(h(),G(p4,{key:1})):(h(),G(Fn,{key:f(n),repository:f(n),sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 15rem)"},null,8,["repository"]))]))}},Mf=["value"],Ef=["value"],Df=["value"],Zf={key:4,class:"grid gap-3"},Ff={class:"text-sm text-muted-foreground"},Bf={key:0,class:"mt-2 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"},Sf={class:"break-all font-mono"},Rf={class:"text-lg font-semibold mb-4"},Qf={class:"space-y-4"},Nf={class:"flex items-center gap-2 pt-2"},Kf={__name:"Knowledge",setup(e){const t=["decision","convention","constraint","pattern","workaround","requirement"],{repositories:n,chosen:l,error:o,mixed:r,fetchRepositories:s}=g3({all:!0});async function a(D){D&&(l.value=D)}const i=z([]),c=z(null),d=z({id:"",kind:"decision",summary:"",why:""}),u=z(""),A=z(!1),m=z(!1),p=z(!1),y=z(null),k=z(!1);async function F(){try{const D=await B1.settings(),x=D.find(B=>B.key==="model.name"),Q=D.find(B=>B.key==="model.api_key");k.value=!!(x!=null&&x.value)&&!!(Q!=null&&Q.is_set)}catch{k.value=!1}}async function M(D=!1){const x=D?p:m;x.value=!0,y.value=null;try{const Q=await B1.initialize(l.value,{useModel:D});y.value=Q.recorded,o.value="",await E()}catch(Q){o.value=Q.message}finally{x.value=!1}}async function E(){if(l.value)try{const D=await B1.knowledge(l.value);i.value=D.items,o.value=""}catch(D){i.value=[],o.value=D.message}}function _(D){var x;c.value=D??{fresh:!0},d.value=D?{id:D.id,kind:D.kind,summary:D.summary,why:((x=D.properties)==null?void 0:x.why)??""}:{id:"",kind:"decision",summary:"",why:""},u.value=""}async function R(){var D,x,Q;if(!d.value.id.trim()||!d.value.summary.trim()){u.value="A name and what is true are both needed.";return}A.value=!0;try{await B1.recordKnowledge({repository:l.value,id:d.value.id.trim(),kind:d.value.kind,status:((D=c.value)==null?void 0:D.status)??"accepted",summary:d.value.summary.trim(),properties:d.value.why.trim()?{...((x=c.value)==null?void 0:x.properties)??{},why:d.value.why.trim()}:((Q=c.value)==null?void 0:Q.properties)??{}}),c.value=null,await E()}catch(B){u.value=B.message}finally{A.value=!1}}async function $(D){if(confirm(`Forget ${D.id}?`)){try{await B1.forgetKnowledge(l.value,D.id)}catch(x){o.value=x.message}await E()}}return t2(l,E),d2(async()=>{await s(),await Promise.all([E(),F()])}),(D,x)=>{const Q=Ve("X");return h(),C("div",null,[I(f(m3),{pillar:"memory",title:"Knowledge",sub:"The decisions, conventions and constraints behind this code."},{icon:w(()=>[I(f(V4),{class:"h-6 w-6"})]),actions:w(()=>[f(n).length>1?(h(),G(f(j2),{key:0,modelValue:f(l),"onUpdate:modelValue":x[0]||(x[0]=B=>n2(l)?l.value=B:null),size:"sm","aria-label":"Repository"},{default:w(()=>[b("option",{value:f(Vt)},"All repositories",8,Mf),(h(!0),C(n1,null,_1(f(n),B=>(h(),C("option",{key:B.name,value:B.name},N(B.name),9,Ef))),128))]),_:1},8,["modelValue"])):P("",!0),f(n).length&&f(l)?(h(),G(f(C1),{key:1,size:"sm",variant:"outline",disabled:m.value,onClick:M},{default:w(()=>[m.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(gt),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(m.value?"Finding…":"Find in what the repo states"),1)]),_:1},8,["disabled"])):P("",!0),f(n).length&&k.value&&f(l)?(h(),G(f(C1),{key:2,size:"sm",variant:"outline",disabled:p.value,onClick:x[1]||(x[1]=B=>M(!0))},{default:w(()=>[p.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(_n),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(p.value?"Finding…":"Find more with a model"),1)]),_:1},8,["disabled"])):P("",!0),f(n).length&&f(l)?(h(),G(f(C1),{key:3,size:"sm",variant:"glow",onClick:x[2]||(x[2]=B=>_(null))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),x[10]||(x[10]=U(" Record something ",-1))]),_:1})):f(n).length?(h(),G(f(j2),{key:4,"model-value":"",size:"sm","aria-label":"Choose a repository","onUpdate:modelValue":a},{default:w(()=>[x[11]||(x[11]=b("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,_1(f(n),B=>(h(),C("option",{key:B.name,value:B.name},N(B.name),9,Df))),128))]),_:1})):P("",!0)]),_:1}),f(o)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(o)),1)]),_:1})):P("",!0),y.value!==null?(h(),G(f(u2),{key:1,tone:"info",class:"mb-4"},{default:w(()=>[y.value?(h(),C(n1,{key:0},[U(" Read "+N(y.value)+" thing"+N(y.value===1?"":"s")+" this repository already states. Nobody has agreed to any of it, so it is all proposed. ",1)],64)):(h(),C(n1,{key:1},[U(" This repository does not state anything in the places projects usually write these down: a decision record, or a conventions section in a contributing guide. ")],64))]),_:1})):P("",!0),f(n).length===0?(h(),G(p4,{key:2})):i.value.length===0?(h(),G(f(We),{key:3,title:"Nothing recorded yet"},{actions:w(()=>[I(f(C1),{variant:"glow",onClick:x[3]||(x[3]=B=>_(null))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),x[12]||(x[12]=U(" Record something ",-1))]),_:1}),I(f(C1),{variant:"outline",disabled:m.value,onClick:M},{default:w(()=>[m.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(gt),{key:1,class:"mr-2 h-4 w-4"})),x[13]||(x[13]=U(" Read what the repo states ",-1))]),_:1},8,["disabled"])]),default:w(()=>[x[14]||(x[14]=U(" Why a thing is the way it is outlives the code that does it. Write one down and every agent reading this repository over MCP gets it too. ",-1))]),_:1})):(h(),C("div",Zf,[(h(!0),C(n1,null,_1(i.value,B=>(h(),G(f(z3),{key:`${B.repository??""}${B.id}`,title:B.id,pillar:"memory"},{icon:w(()=>[I(f(V4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:"secondary"},{default:w(()=>[U(N(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:w(()=>[U(N(B.status),1)]),_:2},1024)):P("",!0),f(r)&&B.repository?(h(),G(f(gn),{key:1,name:B.repository},{icon:w(()=>[I(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):P("",!0)]),actions:w(()=>[B.status===D.PROPOSED?(h(),C(n1,{key:0},[I(f(C1),{variant:"outline",size:"sm",disabled:D.deciding===B.id,"aria-label":`Accept ${B.id}`,onClick:X=>D.decide(B,D.ACCEPTED)},{default:w(()=>[D.deciding===B.id?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(he),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),x[16]||(x[16]=U(" Accept ",-1))]),_:2},1032,["disabled","aria-label","onClick"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":`Throw out ${B.id}`,onClick:X=>D.decide(B,null)},{default:w(()=>[I(Q,{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])],64)):(h(),C(n1,{key:1},[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Edit",onClick:X=>_(B)},{default:w(()=>[I(f(bu),{class:"h-4 w-4"})]),_:1},8,["onClick"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":"Remove",onClick:X=>$(B)},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1},8,["onClick"])],64))]),default:w(()=>{var X;return[b("p",Ff,N(B.summary),1),(X=B.properties)!=null&&X.why?(h(),C("dl",Bf,[x[15]||(x[15]=b("dt",{class:"text-muted-foreground"},"why",-1)),b("dd",Sf,N(B.properties.why),1)])):P("",!0)]}),_:2},1032,["title"]))),128))])),I(f(Tt),{open:!!c.value,"max-width":"xl",onClose:x[9]||(x[9]=B=>c.value=null)},{default:w(()=>{var B;return[b("h2",Rf,N((B=c.value)!=null&&B.fresh?"Record something":"Edit"),1),b("div",Qf,[I(f(R2),{label:"Name",hint:"What this will be called, and how it is found again."},{default:w(()=>{var X;return[I(f(J3),{modelValue:d.value.id,"onUpdate:modelValue":x[4]||(x[4]=Y=>d.value.id=Y),readonly:!((X=c.value)!=null&&X.fresh),placeholder:"retry-limit"},null,8,["modelValue","readonly"])]}),_:1}),I(f(R2),{label:"Kind"},{default:w(()=>[I(f(j2),{modelValue:d.value.kind,"onUpdate:modelValue":x[5]||(x[5]=X=>d.value.kind=X),class:"w-full"},{default:w(()=>[(h(),C(n1,null,_1(t,X=>b("option",{key:X},N(X),1)),64))]),_:1},8,["modelValue"])]),_:1}),I(f(R2),{label:"What is true"},{default:w(()=>[I(f(dt),{modelValue:d.value.summary,"onUpdate:modelValue":x[6]||(x[6]=X=>d.value.summary=X),placeholder:"Charges retry three times, then stop."},null,8,["modelValue"])]),_:1}),I(f(R2),{label:"Why",hint:"What stops somebody undoing it next year."},{default:w(()=>[I(f(dt),{modelValue:d.value.why,"onUpdate:modelValue":x[7]||(x[7]=X=>d.value.why=X),placeholder:"The provider rate limits after four."},null,8,["modelValue"])]),_:1}),u.value?(h(),G(f(u2),{key:0,tone:"danger"},{default:w(()=>[U(N(u.value),1)]),_:1})):P("",!0),b("div",Nf,[I(f(C1),{disabled:A.value,onClick:R},{default:w(()=>[I(f(he),{class:"mr-1.5 h-3.5 w-3.5"}),x[17]||(x[17]=U(" Save ",-1))]),_:1},8,["disabled"]),I(f(C1),{variant:"outline",onClick:x[8]||(x[8]=X=>c.value=null)},{default:w(()=>[...x[18]||(x[18]=[U("Cancel",-1)])]),_:1})])])]}),_:1},8,["open"])])}}},Gf={key:2,class:"grid gap-3"},Of={class:"flex items-center gap-1.5"},$f={class:"flex items-center gap-1.5"},Wf={key:1},Lf={key:2},Pf={key:3,class:"text-primary"},Hf={__name:"Repositories",setup(e){const t=me(),{repositories:n,error:l,fetchRepositories:o}=g3(),r=z({}),s=z(""),a=z(!1),i=z({});async function c(){for(const p of n.value){const y=await B1.graph(p.name).catch(()=>null);r.value={...r.value,[p.name]:y?{files:y.nodes.filter(k=>k.kind==="file").length,links:y.links.length}:null}}}async function d(){await o(),await c()}async function u(p){s.value=p;try{const[y]=await B1.index(p);i.value={...i.value,[p]:y},l.value=""}catch(y){l.value=y.message}s.value="",await c()}function A(p){return p?p.indexed?`Read ${p.indexed.toLocaleString()} files just now.`:"Nothing had changed.":""}async function m(p){if(confirm(`Stop covering ${p.path}? + */const En=D1("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function N2(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function Iu(e){var t,n,l,o,r,s,a;const i=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,d=(l=e.meta)===null||l===void 0?void 0:l.source,u=(r=(o=e.meta)===null||o===void 0?void 0:o.license)===null||r===void 0?void 0:r.url,A=Mu(e);return!i&&!c&&!d&&!u&&!A?"":''+(i?`${N2(i)}`:"")+(c?`${N2(c)}`:"")+(d?`${N2((a=(s=e.meta)===null||s===void 0?void 0:s.source)!==null&&a!==void 0?a:"")}`:"")+(u?`${N2(u)}`:"")+(A?`${N2(A)}`:"")+""}function Mu(e){var t,n,l,o,r,s,a,i,c,d,u,A,p,m,k;let D=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",F=`„${(o=(l=e.meta)===null||l===void 0?void 0:l.creator)!==null&&o!==void 0?o:"Unknown"}”`;!((r=e.meta)===null||r===void 0)&&r.source&&(D+=` (${e.meta.source})`);let C="";return((a=(s=e.meta)===null||s===void 0?void 0:s.license)===null||a===void 0?void 0:a.name)!=="MIT"&&((i=e.meta)===null||i===void 0?void 0:i.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(C+="Remix of "),C+=`${D} by ${F}`,!((u=(d=e.meta)===null||d===void 0?void 0:d.license)===null||u===void 0)&&u.name&&(C+=`, licensed under „${(p=(A=e.meta)===null||A===void 0?void 0:A.license)===null||p===void 0?void 0:p.name}”`,!((k=(m=e.meta)===null||m===void 0?void 0:m.license)===null||k===void 0)&&k.url&&(C+=` (${e.meta.license.url})`)),C}const G7=-2147483648,Eu=2147483647,Du=1024;function Dn(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function Zu(e){let t=0;for(let n=0;nt=Dn(t),l=(o,r)=>Math.floor((n()-G7)/(Eu-G7)*(r+1-o)+o);return{seed:e,next:n,bool(o=50){return l(1,100)<=o},integer(o,r){return l(o,r)},pick(o,r){var s;return o.length===0?(n(),r):(s=o[l(0,o.length-1)])!==null&&s!==void 0?s:r},shuffle(o){const r=V4(n().toString()),s=[...o];for(let a=s.length-1;a>0;a--){const i=r.integer(0,a);[s[a],s[i]]=[s[i],s[a]]}return s},string(o,r="abcdefghijklmnopqrstuvwxyz1234567890"){const s=V4(n().toString());let a="";for(let i=0;i`;switch(l){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function Bu(e,t){let{width:n,height:l,x:o,y:r}=be(e),s=t?(t-100)/100:0,a=(n/2+o)*s*-1,i=(l/2+r)*s*-1;return`${e.body}`}function Su(e,t,n){let l=be(e),o=(l.width+l.x*2)*((t??0)/100),r=(l.height+l.y*2)*((n??0)/100);return`${e.body}`}function Ru(e,t){let{width:n,height:l,x:o,y:r}=be(e);return`${e.body}`}function Qu(e){let{width:t,x:n}=be(e);return`${e.body}`}function Nu(e,t){let{width:n,height:l,x:o,y:r}=be(e),s=t?n*t/100:0,a=t?l*t/100:0;return`${e.body}`}function Ku(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${N2(n)}="${N2(t[n])}"`).join(" ")}function Gu(e){const t=V4(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,o,r,s)=>(n[r]=n[r]||t.string(8),`${o}${n[r]}${s}`))}const Ou={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function O7(e){var t;let n={},l=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(l).forEach(o=>{let r=l[o];typeof r=="object"&&r.default!==void 0&&(Array.isArray(r.default)?n[o]=[...r.default]:typeof r.default=="object"?n[o]={...r.default}:n[o]=r.default)}),n}function $u(e,t){var n;let l={...O7(Ou),...O7((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(l))}function $7(e){return e==="transparent"?e:`#${e}`}function Wu(e,t,n){var l;let o=e.shuffle(t);o.length<=1||t.length==2&&n=="gradientLinear"?(o=t,e.next()):o=e.shuffle(t),o.length===0&&(o=["transparent"]);const r=o[0],s=(l=o[1])!==null&&l!==void 0?l:o[0];return{primary:$7(r),secondary:$7(s)}}function Lu(e,t={}){var n,l,o,r,s;t=$u(e,t);const a=V4(t.seed),i=e.create({prng:a,options:t}),c=a.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:d,secondary:u}=Wu(a,(l=t.backgroundColor)!==null&&l!==void 0?l:[],c),A=a.integer(!((o=t.backgroundRotation)===null||o===void 0)&&o.length?Math.min(...t.backgroundRotation):0,!((r=t.backgroundRotation)===null||r===void 0)&&r.length?Math.max(...t.backgroundRotation):0);t.size&&(i.attributes.width=t.size.toString(),i.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(i.body=Bu(i,t.scale)),t.flip&&(i.body=Qu(i)),t.rotate&&(i.body=Ru(i,t.rotate)),(t.translateX||t.translateY)&&(i.body=Su(i,t.translateX,t.translateY)),d!=="transparent"&&u!=="transparent"&&(i.body=Fu(i,d,u,c,A)),(t.radius||t.clip)&&(i.body=Nu(i,(s=t.radius)!==null&&s!==void 0?s:0)),t.randomizeIds&&(i.body=Gu(i));const p=Ku(i),m=Iu(e),k=`${m}${i.body}`;return{toString:()=>k,toJson:()=>{var D;return{svg:k,extra:{primaryBackgroundColor:d,secondaryBackgroundColor:u,backgroundType:c,backgroundRotation:A,...(D=i.extra)===null||D===void 0?void 0:D.call(i)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(k)}`}}const Pu={variant01:(e,t)=>''},Tu={variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant09:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant08:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant07:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant06:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant05:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant04:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant03:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant02:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant01:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`}},Hu={variant63:(e,t)=>'',variant62:(e,t)=>'',variant61:(e,t)=>'',variant60:(e,t)=>'',variant59:(e,t)=>'',variant58:(e,t)=>'',variant57:(e,t)=>'',variant56:(e,t)=>'',variant55:(e,t)=>'',variant54:(e,t)=>'',variant53:(e,t)=>'',variant52:(e,t)=>'',variant51:(e,t)=>'',variant50:(e,t)=>'',variant49:(e,t)=>'',variant48:(e,t)=>'',variant47:(e,t)=>'',variant46:(e,t)=>'',variant45:(e,t)=>'',variant44:(e,t)=>'',variant43:(e,t)=>'',variant42:(e,t)=>'',variant41:(e,t)=>'',variant40:(e,t)=>'',variant39:(e,t)=>'',variant38:(e,t)=>'',variant37:(e,t)=>'',variant36:(e,t)=>'',variant35:(e,t)=>'',variant34:(e,t)=>'',variant33:(e,t)=>'',variant32:(e,t)=>'',variant31:(e,t)=>'',variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>'',hat:(e,t)=>''},Yu={variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Vu={variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Uu={variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Ju={variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},zu={variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},ju={variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Xu={wavePointLongArms:(e,t)=>'',waveOkLongArms:(e,t)=>'',waveLongArms:(e,t)=>'',waveLongArm:(e,t)=>'',pointLongArm:(e,t)=>'',okLongArm:(e,t)=>'',point:(e,t)=>'',ok:(e,t)=>'',hand:(e,t)=>'',handPhone:(e,t)=>''},qu={electric:(e,t)=>'',saturn:(e,t)=>'',galaxy:(e,t)=>''},ed=Object.freeze(Object.defineProperty({__proto__:null,base:Pu,beard:Vu,body:Tu,bodyIcon:qu,brows:ju,eyes:Ju,gesture:Xu,glasses:zu,hair:Hu,lips:Yu,nose:Uu},Symbol.toStringTag,{value:"Module"}));function B2({prng:e,group:t,values:n=[]}){const l=ed,o=e.pick(n);if(o&&l[t][o])return{name:o,value:l[t][o]}}function td({prng:e,options:t}){const n=B2({prng:e,group:"base",values:t.base}),l=B2({prng:e,group:"body",values:t.body}),o=B2({prng:e,group:"hair",values:t.hair}),r=B2({prng:e,group:"lips",values:t.lips}),s=B2({prng:e,group:"beard",values:t.beard}),a=B2({prng:e,group:"nose",values:t.nose}),i=B2({prng:e,group:"eyes",values:t.eyes}),c=B2({prng:e,group:"glasses",values:t.glasses}),d=B2({prng:e,group:"brows",values:t.brows}),u=B2({prng:e,group:"gesture",values:t.gesture}),A=B2({prng:e,group:"bodyIcon",values:t.bodyIcon});return{base:n,body:l,hair:o,lips:r,beard:e.bool(t.beardProbability)?s:void 0,nose:a,eyes:i,glasses:e.bool(t.glassesProbability)?c:void 0,brows:d,gesture:e.bool(t.gestureProbability)?u:void 0,bodyIcon:e.bool(t.bodyIconProbability)?A:void 0}}function nd({prng:e,options:t}){return{}}const ld={$schema:"http://json-schema.org/draft-07/schema#",properties:{base:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},beard:{type:"array",items:{type:"string",enum:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:10},body:{type:"array",items:{type:"string",enum:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},bodyIcon:{type:"array",items:{type:"string",enum:["electric","saturn","galaxy"]},default:["electric","saturn","galaxy"]},bodyIconProbability:{type:"integer",minimum:0,maximum:100,default:75},brows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant05","variant04","variant03","variant02","variant01"]},default:["variant05","variant04","variant03","variant02","variant01"]},gesture:{type:"array",items:{type:"string",enum:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},default:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},gestureProbability:{type:"integer",minimum:0,maximum:100,default:10},glasses:{type:"array",items:{type:"string",enum:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hair:{type:"array",items:{type:"string",enum:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},default:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},lips:{type:"array",items:{type:"string",enum:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},nose:{type:"array",items:{type:"string",enum:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]}}},od={title:"Notionists",creator:"Zoish",source:"https://heyzoish.gumroad.com/l/notionists",homepage:"https://bio.link/heyzoish",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},rd=({prng:e,options:t})=>{var n,l,o,r,s,a,i,c,d,u,A,p,m,k,D,F,C,I,v,S;const L=td({prng:e,options:t}),Z=nd({prng:e,options:t});return{attributes:{viewBox:"0 0 1744 1744",fill:"none","shape-rendering":"auto"},body:`${(l=(n=L.base)===null||n===void 0?void 0:n.value(L,Z))!==null&&l!==void 0?l:""}${(r=(o=L.body)===null||o===void 0?void 0:o.value(L,Z))!==null&&r!==void 0?r:""}${(a=(s=L.hair)===null||s===void 0?void 0:s.value(L,Z))!==null&&a!==void 0?a:""}${(c=(i=L.lips)===null||i===void 0?void 0:i.value(L,Z))!==null&&c!==void 0?c:""}${(u=(d=L.beard)===null||d===void 0?void 0:d.value(L,Z))!==null&&u!==void 0?u:""}${(p=(A=L.nose)===null||A===void 0?void 0:A.value(L,Z))!==null&&p!==void 0?p:""}${(k=(m=L.eyes)===null||m===void 0?void 0:m.value(L,Z))!==null&&k!==void 0?k:""}${(F=(D=L.glasses)===null||D===void 0?void 0:D.value(L,Z))!==null&&F!==void 0?F:""}${(I=(C=L.brows)===null||C===void 0?void 0:C.value(L,Z))!==null&&I!==void 0?I:""}${(S=(v=L.gesture)===null||v===void 0?void 0:v.value(L,Z))!==null&&S!==void 0?S:""}`,extra:()=>({...Object.entries(L).reduce((_,[R,B])=>(_[R]=B==null?void 0:B.name,_),{}),...Object.entries(Z).reduce((_,[R,B])=>(_[`${R}Color`]=B,_),{})})}},sd=Object.freeze(Object.defineProperty({__proto__:null,create:rd,meta:od,schema:ld},Symbol.toStringTag,{value:"Module"})),gt=j(!0);function W7(e){gt.value=e,document.documentElement.classList.toggle("dark",e),document.documentElement.classList.toggle("light",!e);try{localStorage.setItem("sourceant-theme",e?"dark":"light")}catch{}}function Zn(){return{isDark:gt,toggleTheme:()=>W7(!gt.value),restoreTheme:()=>{let e=null;try{e=localStorage.getItem("sourceant-theme")}catch{e=null}W7(e!=="light")}}}async function j1(e,t={}){const n=await fetch(e,{...t,headers:t.body?{"Content-Type":"application/json"}:void 0}),l=await n.text(),o=l?JSON.parse(l):null;if(!n.ok)throw new Error((o==null?void 0:o.error)||`the agent answered ${n.status}`);return o}const S2=e=>new URLSearchParams(Object.entries(e).filter(([,t])=>t!==""&&t!==!1)),Z1={status:()=>j1("/health"),repositories:()=>j1("/api/repositories"),addRepository:(e,t)=>j1("/api/repositories",{method:"POST",body:JSON.stringify({path:e,name:t})}),dropRepository:e=>j1(`/api/repositories?${S2({path:e})}`,{method:"DELETE"}),index:(e="",{everything:t=!1,update:n=!1}={})=>j1("/api/index",{method:"POST",body:JSON.stringify({repository:e,everything:t,update:n})}),attention:e=>j1(`/api/attention?${S2({repository:e})}`),graph:(e,{includeTests:t=!1,pathPrefix:n=""}={})=>j1(`/api/graph?${S2({repository:e,include_tests:t,path_prefix:n})}`),knowledge:e=>j1(`/api/knowledge?${S2({repository:e,limit:100})}`),recordKnowledge:e=>j1("/api/knowledge",{method:"PUT",body:JSON.stringify(e)}),forgetKnowledge:(e,t)=>j1(`/api/knowledge?${S2({repository:e,id:t})}`,{method:"DELETE"}),browse:(e="")=>j1(`/api/browse?${S2({path:e})}`),initialize:(e,{dryRun:t=!1,useModel:n=!1}={})=>j1("/api/knowledge/initialize",{method:"POST",body:JSON.stringify({repository:e,dry_run:t,use_model:n})}),skills:(e="")=>j1(`/api/skills?${S2({repository:e})}`),skill:(e,t="")=>j1(`/api/skills/${e}?${S2({repository:t})}`),recordSkill:e=>j1("/api/skills",{method:"PUT",body:JSON.stringify({scope:"repository",paths:[],reviews:null,...e})}),forgetSkill:(e,t,n)=>j1(`/api/skills?${S2({repository:e,scope:t,id:n})}`,{method:"DELETE"}),startReview:(e,{against:t="",title:n="",description:l="",skills:o=[],useModel:r=!0}={})=>j1("/api/reviews",{method:"POST",body:JSON.stringify({repository:e,against:t,title:n,description:l,skills:o,use_model:r})}),reviewed:e=>j1(`/api/reviews/${e}`),reviews:(e="")=>j1(`/api/reviews?${S2({repository:e})}`),settings:()=>j1("/api/settings"),setSetting:(e,t)=>j1("/api/settings",{method:"PUT",body:JSON.stringify({key:e,value:t})}),resetSetting:e=>j1(`/api/settings?${S2({key:e})}`,{method:"DELETE"})},ad={class:"space-y-4"},id={key:0,class:"flex items-center gap-2 py-6 text-sm text-muted-foreground"},cd=["onClick"],ud=["value"],dd={key:1,class:"flex items-center gap-2 text-sm"},fd=["id","onUpdate:modelValue"],Ad={class:"text-muted-foreground"},hd={key:0,class:"py-6 text-sm text-muted-foreground"},pd={key:2,class:"flex items-center gap-3"},md={key:0,class:"text-xs text-success"},Fn={__name:"SettingsPanel",props:{group:{type:String,required:!0}},emits:["saved"],setup(e,{emit:t}){const n=e,l=t,o=j([]),r=j({}),s=j(!1),a=j(!0),i=j(""),c=j(!1),d=t1(()=>o.value.filter(I=>I.group===n.group));function u(I){return I.secret?"":I.listed?String(I.value??"").split(` +`).map(v=>v.trim()).filter(Boolean):I.value??""}const A=(I,v)=>I.listed?(v??[]).join(` +`):v,p=(I,v)=>String(A(I,v)??"")===String(I.value??""),m=t1(()=>d.value.some(I=>{const v=r.value[I.key];return I.secret?!!v:!p(I,v)}));async function k(){a.value=!0;try{o.value=await Z1.settings(),r.value=Object.fromEntries(d.value.map(I=>[I.key,u(I)])),i.value=""}catch(I){i.value=I.message}finally{a.value=!1}}async function D(){s.value=!0,c.value=!1,i.value="";try{for(const I of d.value){const v=r.value[I.key];I.secret&&!v||!I.secret&&p(I,v)||await Z1.setSetting(I.key,A(I,v))}await k(),c.value=!0,l("saved")}catch(I){i.value=I.message}finally{s.value=!1}}async function F(I){i.value="";try{await Z1.resetSetting(I.key),await k()}catch(v){i.value=v.message}}function C(I){return I.secret?I.is_set:String(I.value??"")!==String(I.default??"")}return q1(()=>n.group,k),d2(k),(I,v)=>(h(),w("div",ad,[a.value?(h(),w("p",id,[M(f(_2),{class:"h-4 w-4 animate-spin"}),v[0]||(v[0]=U(" Reading what this machine can be told. ",-1))])):(h(),w(n1,{key:1},[(h(!0),w(n1,null,_1(d.value,S=>(h(),G(f(Q2),{key:S.key,label:S.label,for:S.key,hint:S.description},{label:x(()=>[S.secret&&S.is_set?(h(),G(f(c2),{key:0,variant:"success"},{default:x(()=>[...v[1]||(v[1]=[U("set",-1)])]),_:1})):W("",!0),C(S)?(h(),w("button",{key:1,type:"button",class:"inline-flex items-center gap-1 text-[11px] font-normal normal-case tracking-normal text-muted-foreground hover:text-foreground",onClick:L=>F(S)},[M(f(xu),{class:"h-3 w-3"}),v[2]||(v[2]=U(" put back ",-1))],8,cd)):W("",!0)]),default:x(()=>{var L;return[(L=S.choices)!=null&&L.length?(h(),G(f(X2),{key:0,id:S.key,modelValue:r.value[S.key],"onUpdate:modelValue":Z=>r.value[S.key]=Z,class:"w-full"},{default:x(()=>[(h(!0),w(n1,null,_1(S.choices,Z=>(h(),w("option",{key:Z,value:Z},Q(Z),9,ud))),128))]),_:2},1032,["id","modelValue","onUpdate:modelValue"])):S.type==="bool"?(h(),w("label",dd,[Ke(y("input",{id:S.key,"onUpdate:modelValue":Z=>r.value[S.key]=Z,type:"checkbox",class:"h-3.5 w-3.5 rounded border"},null,8,fd),[[i0,r.value[S.key]]]),y("span",Ad,Q(r.value[S.key]?"On":"Off"),1)])):S.listed?(h(),G(f($0),{key:2,modelValue:r.value[S.key],"onUpdate:modelValue":Z=>r.value[S.key]=Z,mono:"",noun:"a folder",placeholder:"/home/you/work/knowledgebase/skills"},null,8,["modelValue","onUpdate:modelValue"])):(h(),G(f(J3),{key:3,id:S.key,modelValue:r.value[S.key],"onUpdate:modelValue":Z=>r.value[S.key]=Z,type:S.secret?"password":S.type==="int"||S.type==="float"?"number":"text",autocomplete:S.secret?"off":void 0,placeholder:S.secret&&S.is_set?"Leave empty to keep what is set":String(S.default??"")},null,8,["id","modelValue","onUpdate:modelValue","type","autocomplete","placeholder"]))]}),_:2},1032,["label","for","hint"]))),128)),d.value.length?W("",!0):(h(),w("p",hd," Nothing in this group is configurable here. ")),i.value?(h(),G(f(u2),{key:1,tone:"danger"},{default:x(()=>[U(Q(i.value),1)]),_:1})):W("",!0),d.value.length?(h(),w("div",pd,[M(f(b1),{disabled:s.value||!m.value,onClick:D},{default:x(()=>[s.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(pe),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),v[3]||(v[3]=U(" Save ",-1))]),_:1},8,["disabled"]),c.value&&!m.value?(h(),w("span",md,"Saved.")):W("",!0),K1(I.$slots,"after")])):W("",!0)],64))]))}},gd={class:"mb-2 text-xs font-mono text-muted-foreground break-all"},vd={class:"h-64 overflow-y-auto rounded-md border bg-muted/30"},yd=["onClick"],bd={class:"truncate"},kd={key:1,class:"px-3 py-6 text-center text-sm text-muted-foreground"},Cd={class:"mt-2 text-xs text-muted-foreground"},wd={class:"font-mono"},xd={key:1,role:"status",class:"mt-3 text-sm text-muted-foreground"},_d={class:"flex items-center gap-2 pt-5"},Bn={__name:"FolderPicker",props:{open:Boolean},emits:["close","added"],setup(e,{emit:t}){const n=e,l=t,o=j(null),r=j(""),s=j(!1),a=j("");async function i(d){try{o.value=await Z1.browse(d),a.value=""}catch(u){a.value=u.message}}q1(()=>n.open,d=>{d&&(r.value="",a.value="",s.value=!1,i(""))});async function c(){if(o.value){s.value=!0,a.value="";try{await Z1.addRepository(o.value.path,r.value.trim()),l("added"),l("close")}catch(d){a.value=d.message}finally{s.value=!1}}}return(d,u)=>(h(),G(f(Ht),{open:e.open,"max-width":"lg",onClose:u[3]||(u[3]=A=>l("close"))},{default:x(()=>{var A,p,m,k;return[u[8]||(u[8]=y("h2",{class:"text-lg font-semibold mb-3"},"Add a folder",-1)),y("p",gd,Q((A=o.value)==null?void 0:A.path),1),y("div",vd,[(p=o.value)!=null&&p.parent?(h(),w("button",{key:0,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:u[0]||(u[0]=D=>i(o.value.parent))},[M(f(mu),{class:"h-3.5 w-3.5"}),u[4]||(u[4]=y("span",{class:"text-muted-foreground"},"Up one",-1))])):W("",!0),(h(!0),w(n1,null,_1(((m=o.value)==null?void 0:m.entries)??[],D=>(h(),w("button",{key:D.path,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:F=>i(D.path)},[M(f(p5),{class:"h-3.5 w-3.5 text-muted-foreground"}),y("span",bd,Q(D.name),1),D.repository?(h(),G(f(c2),{key:0,variant:"glow",class:"ml-auto shrink-0"},{default:x(()=>[...u[5]||(u[5]=[U("git",-1)])]),_:1})):W("",!0)],8,yd))),128)),o.value&&o.value.entries.length===0?(h(),w("p",kd," Nothing inside. ")):W("",!0)]),M(f(Q2),{label:"Name it (optional)",for:"repo-name",class:"mt-4"},{default:x(()=>[M(f(J3),{id:"repo-name",modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=D=>r.value=D),placeholder:"Taken from the git remote, or the folder name"},null,8,["modelValue"])]),_:1}),y("p",Cd,[u[6]||(u[6]=U(" Adding ",-1)),y("code",wd,Q((k=o.value)==null?void 0:k.path),1)]),a.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mt-3"},{default:x(()=>[U(Q(a.value),1)]),_:1})):W("",!0),s.value?(h(),w("p",xd," Reading this repository. Large repositories can take several minutes. ")):W("",!0),y("div",_d,[M(f(b1),{disabled:s.value||!o.value,onClick:c},{default:x(()=>[s.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(p3),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(s.value?"Reading…":"Add and index"),1)]),_:1},8,["disabled"]),M(f(b1),{variant:"outline",onClick:u[2]||(u[2]=D=>l("close"))},{default:x(()=>[...u[7]||(u[7]=[U("Cancel",-1)])]),_:1})])]}),_:1},8,["open"]))}},ee=j([]),De=j(""),L5=j(""),P5=j(!1),Vt="";function v3({all:e=!1}={}){const t=t1(()=>e&&!De.value&&ee.value.length>1);async function n(){var l;P5.value=!0;try{ee.value=await Z1.repositories(),L5.value=""}catch(o){ee.value=[],L5.value=`${o.message}. Is sourceant-agent running?`}finally{P5.value=!1}De.value===Vt&&e||ee.value.some(o=>o.name===De.value)||(De.value=((l=ee.value[0])==null?void 0:l.name)??"")}return{repositories:ee,chosen:De,error:L5,loading:P5,mixed:t,fetchRepositories:n}}const Id={class:"flex items-center gap-2"},L7="sourceant-onboarded",Md={__name:"Onboarding",setup(e){const{repositories:t,fetchRepositories:n}=v3(),l=j(!1),o=j("folder"),r=j(!1),s=t1(()=>t.value.length>0);function a(){try{localStorage.setItem(L7,"yes")}catch{}l.value=!1}return d2(async()=>{let i=null;try{i=localStorage.getItem(L7)}catch{i=null}i||(await n(),o.value=t.value.length?"model":"folder",l.value=!0)}),(i,c)=>(h(),G(f(Ht),{open:l.value,"max-width":"xl",onClose:a},{default:x(()=>[o.value==="folder"?(h(),w(n1,{key:0},[c[4]||(c[4]=y("h2",{class:"text-lg font-semibold mb-1"},"Point it at some code",-1)),c[5]||(c[5]=y("p",{class:"text-sm text-muted-foreground mb-5"}," SourceAnt reads a folder on this machine into a graph, and keeps what you record about it beside the code it belongs to. Nothing leaves this machine. ",-1)),y("div",Id,[M(f(b1),{onClick:c[0]||(c[0]=d=>r.value=!0)},{default:x(()=>[M(f(p3),{class:"mr-1.5 h-3.5 w-3.5"}),c[3]||(c[3]=U(" Add a folder ",-1))]),_:1}),M(f(b1),{variant:"outline",onClick:c[1]||(c[1]=d=>o.value="model")},{default:x(()=>[s.value?(h(),w(n1,{key:0},[U("Next")],64)):(h(),w(n1,{key:1},[U("Skip for now")],64)),M(f(hu),{class:"ml-1.5 h-3.5 w-3.5"})]),_:1})]),M(Bn,{open:r.value,onClose:c[2]||(c[2]=d=>r.value=!1),onAdded:f(n)},null,8,["open","onAdded"])],64)):(h(),w(n1,{key:1},[c[7]||(c[7]=y("h2",{class:"text-lg font-semibold mb-1"},"Add a model and API key",-1)),c[8]||(c[8]=y("p",{class:"text-sm text-muted-foreground mb-5"}," Reading your code and reading what it already states about itself need no model at all. Proposing what nobody wrote down does. Your key stays on this machine and goes to that provider and nowhere else. ",-1)),M(Fn,{group:"Model",onSaved:a}),M(f(b1),{variant:"ghost",class:"mt-4",onClick:a},{default:x(()=>[...c[6]||(c[6]=[U("Skip for now",-1)])]),_:1})],64))]),_:1},8,["open"]))}},Ed={class:"flex h-screen flex-col bg-background"},Dd={class:"z-40 h-12 shrink-0 border-b bg-card/80 backdrop-blur-sm"},Zd={class:"flex items-center h-full min-w-0 px-3 gap-1 sm:px-4"},Fd={class:"hidden lg:flex items-center gap-0.5 min-w-0"},Bd={class:"hidden xl:inline"},Sd={class:"relative shrink-0","data-dropdown":"user"},Rd={key:0,class:"absolute top-full right-0 mt-1 w-52 bg-card border rounded-lg shadow-lg py-1 z-50"},Qd=["aria-label"],Nd={key:0,class:"lg:hidden shrink-0 border-b bg-card px-4 py-2 space-y-0.5"},Kd={class:"min-h-0 flex-1 overflow-y-auto"},Gd={class:"container mx-auto flex h-full flex-col px-4 pb-4 pt-3 lg:px-6 lg:pb-6 lg:pt-4"},Od={__name:"App",setup(e){const{isDark:t,toggleTheme:n,restoreTheme:l}=Zn(),o=u5(),r=j(!1),s=j(!1),a=[{name:"Overview",href:"/",icon:kn},{name:"Knowledge",href:"/knowledge",icon:B4},{name:"Graphs",href:"/graph",icon:m5},{name:"Reviews",href:"/reviews",icon:Pe},{name:"Skills",href:"/skills",icon:bn},{name:"Repositories",href:"/repositories",icon:i4},{name:"Settings",href:"/settings",icon:pt}],i=t1(()=>Lu(sd,{seed:location.hostname||"sourceant",radius:50}).toDataUri());function c(d){d.target.closest('[data-dropdown="user"]')||(s.value=!1)}return d2(()=>{l(),document.addEventListener("click",c)}),ge(()=>document.removeEventListener("click",c)),(d,u)=>{const A=q5("RouterLink"),p=q5("RouterView");return h(),w("div",Ed,[y("header",Dd,[y("div",Zd,[M(A,{to:"/",class:"shrink-0 mr-1 sm:mr-3"},{default:x(()=>[M(f(U9),{size:"sm","show-text":!1})]),_:1}),u[7]||(u[7]=y("span",{class:"hidden lg:block h-4 w-px bg-border mx-1 shrink-0"},null,-1)),y("nav",Fd,[(h(),w(n1,null,_1(a,m=>M(A,{key:m.href,to:m.href,title:m.name,class:i1(["flex shrink-0 items-center gap-1.5 px-2 py-1 rounded-md text-sm transition-colors 2xl:px-2.5",f(o).path===m.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:x(()=>[(h(),G(k2(m.icon),{class:"h-3.5 w-3.5 shrink-0"})),y("span",Bd,Q(m.name),1)]),_:2},1032,["to","title","class"])),64))]),u[8]||(u[8]=y("div",{class:"flex-1 min-w-0"},null,-1)),y("div",Sd,[y("button",{class:"flex items-center gap-1.5 p-1 rounded-md hover:bg-muted transition-colors","aria-label":"Account",onClick:u[0]||(u[0]=qe(m=>s.value=!s.value,["stop"]))},[M(f(ha),{src:i.value,size:"sm",class:"h-6 w-6"},null,8,["src"])]),M(s0,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:x(()=>[s.value?(h(),w("div",Rd,[u[6]||(u[6]=y("div",{class:"px-3 py-2 border-b"},[y("p",{class:"text-sm font-medium truncate"},"This machine"),y("p",{class:"text-xs text-muted-foreground truncate"},"Nothing here has been shared.")],-1)),M(A,{to:"/settings",class:"flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[1]||(u[1]=m=>s.value=!1)},{default:x(()=>[M(f(pt),{class:"h-3.5 w-3.5 text-muted-foreground"}),u[5]||(u[5]=U(" Settings ",-1))]),_:1}),y("button",{class:"flex items-center gap-2 w-full px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[2]||(u[2]=(...m)=>f(n)&&f(n)(...m))},[(h(),G(k2(f(t)?f(In):f(wn)),{class:"h-3.5 w-3.5 text-muted-foreground"})),y("span",null,Q(f(t)?"Light mode":"Dark mode"),1)])])):W("",!0)]),_:1})]),y("button",{class:"lg:hidden shrink-0 p-1 rounded-md hover:bg-muted transition-colors","aria-label":r.value?"Close menu":"Open menu",onClick:u[3]||(u[3]=m=>r.value=!r.value)},[r.value?(h(),G(f(En),{key:1,class:"h-5 w-5"})):(h(),G(f(ku),{key:0,class:"h-5 w-5"}))],8,Qd)])]),r.value?(h(),w("div",Nd,[(h(),w(n1,null,_1(a,m=>M(A,{key:m.href,to:m.href,class:i1(["flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",f(o).path===m.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"]),onClick:u[4]||(u[4]=k=>r.value=!1)},{default:x(()=>[(h(),G(k2(m.icon),{class:"h-4 w-4"})),U(" "+Q(m.name),1)]),_:2},1032,["to","class"])),64))])):W("",!0),y("main",Kd,[y("div",Gd,[M(p)])]),M(Md)])}}},h4={__name:"EmptyMachine",setup(e){return(t,n)=>(h(),G(f(z1),{class:"text-center py-16 px-6"},{default:x(()=>[n[1]||(n[1]=y("h2",{class:"text-lg font-semibold mb-1"},"Nothing indexed yet",-1)),n[2]||(n[2]=y("p",{class:"text-muted-foreground text-sm mb-4 max-w-lg mx-auto"}," Point SourceAnt at a folder on this machine and it reads the code into a graph you can look at and record against. ",-1)),M(f(b1),{as:"a",href:"/repositories",variant:"glow"},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),n[0]||(n[0]=U(" Add a repository ",-1))]),_:1})]),_:1}))}},$d={class:"grid gap-3 mb-6 sm:grid-cols-2 lg:grid-cols-4"},Wd={class:"text-xs text-muted-foreground capitalize"},Ld={class:"mt-1 text-2xl font-semibold tabular-nums"},Pd={class:"grid gap-3"},Td={class:"flex items-center gap-1.5"},Hd={class:"flex items-center gap-1.5"},Yd={__name:"Overview",setup(e){const{repositories:t,error:n,fetchRepositories:l}=v3(),o=j([]),r=t1(()=>({repositories:t.value.length,files:o.value.reduce((s,a)=>s+a.files,0),nodes:o.value.reduce((s,a)=>s+a.nodes,0),knowledge:o.value.reduce((s,a)=>s+a.knowledge,0)}));return d2(async()=>{await l(),o.value=await Promise.all(t.value.map(async s=>{const[a,i]=await Promise.all([Z1.graph(s.name).catch(()=>null),Z1.knowledge(s.name).catch(()=>null)]);return{repository:s,files:a?a.nodes.filter(c=>c.kind==="file").length:0,nodes:a?a.nodes.length:0,knowledge:i?i.total:0}}))}),(s,a)=>(h(),w("div",null,[M(f(g3),{pillar:"memory",title:"Overview",sub:"What SourceAnt has on this machine."},{icon:x(()=>[M(f(kn),{class:"h-6 w-6"})]),_:1}),f(n)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(n)),1)]),_:1})):W("",!0),!f(n)&&f(t).length===0?(h(),G(h4,{key:1})):f(t).length?(h(),w(n1,{key:2},[y("div",$d,[(h(!0),w(n1,null,_1(r.value,(i,c)=>(h(),G(f(z1),{key:c,class:"p-5"},{default:x(()=>[y("p",Wd,Q(c),1),y("p",Ld,Q(i.toLocaleString()),1)]),_:2},1024))),128))]),y("div",Pd,[(h(!0),w(n1,null,_1(o.value,i=>(h(),G(f(z3),{key:i.repository.name,title:i.repository.name,subtitle:i.repository.path,hover:""},{icon:x(()=>[M(f(p5),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:i.files?"success":"warning"},{default:x(()=>[U(Q(i.files?"Indexed":"Not indexed"),1)]),_:2},1032,["variant"])]),meta:x(()=>[y("span",Td,[M(f(h5),{class:"h-3.5 w-3.5"}),U(Q(i.files.toLocaleString())+" files ",1)]),y("span",Hd,[M(f(Y4),{class:"h-3.5 w-3.5"}),U(Q(i.knowledge.toLocaleString())+" recorded ",1)])]),actions:x(()=>[M(f(b1),{as:"a",href:"/graph",variant:"ghost",size:"sm"},{default:x(()=>[...a[0]||(a[0]=[U("Graph",-1)])]),_:1})]),_:2},1032,["title","subtitle"]))),128))]),a[1]||(a[1]=y("p",{class:"mt-4 text-xs text-muted-foreground"}," Reviews are not here. A review reads a pull request, and nothing on this machine produces one. ",-1))],64)):W("",!0)]))}};function Vd(){const e=j(null),t=j(!1),n=j(null);async function l(o,r,s={}){t.value=!0,n.value=null;try{e.value=await Z1.graph(`${o}/${r}`,s),n.value=null}catch(a){e.value=null,n.value=a}finally{t.value=!1}}return{graph:e,loading:t,fetchCodeGraph:l,failureFor:()=>n.value}}function Ud(){const e=j(null);async function t(){return e.value={nodes:[],links:[]},e.value}return{fetchGraph:t,failureFor:()=>null}}const Jd={key:0},zd={class:"inline-flex w-full rounded-md border bg-muted/40 p-0.5"},jd=["onClick"],Xd={class:"mt-1.5 text-[11px] text-muted-foreground"},qd={key:1},ef={class:"relative"},tf={key:2},nf={class:"space-y-0.5"},lf=["onClick"],of={class:"flex-1 truncate text-foreground"},rf={class:"tabular-nums text-muted-foreground"},sf={key:3},af={class:"flex flex-wrap gap-1.5"},cf=["onClick"],uf={key:4},df={class:"flex cursor-pointer items-center gap-2 text-[11px] text-muted-foreground"},ff={key:5},Af={key:6},hf={class:"mb-1.5 flex items-center justify-between"},pf=["disabled"],mf={key:0,class:"mt-1 text-[11px] text-muted-foreground"},gf={key:1,class:"mt-1.5 space-y-1.5"},vf={class:"flex items-start gap-1.5 text-[11px]"},yf={class:"min-w-0 break-words"},bf={class:"font-medium"},kf={class:"min-w-0"},Cf={class:"min-w-0"},wf={class:"overflow-hidden rounded-lg border bg-card"},xf={class:"text-xs text-muted-foreground"},_f={class:"space-y-1"},If={class:"mx-auto max-w-sm text-xs text-muted-foreground"},Mf={key:0,class:"mt-2 text-xs text-warning"},Ef={key:1,class:"mt-2 text-xs text-muted-foreground"},Df={key:2,class:"mt-2 text-xs text-muted-foreground"},Sn=W1({__name:"GraphWorkbench",props:{repository:{},sources:{default:()=>["knowledge","code"]},controls:{default:()=>["filter","kinds","parts","layouts","depth","retired"]},height:{default:"640px"}},emits:["select"],setup(e,{expose:t,emit:n}){const l=e,o=n,{fetchGraph:r,failureFor:s}=Ud(),{legend:a}=G0(),{graph:i,loading:c,fetchCodeGraph:d,failureFor:u}=Vd(),A=j(l.sources[0]??"knowledge"),p=j(null),m=j(!1),k=t1(()=>A.value==="code"?i.value:p.value),D=t1(()=>A.value==="code"?c.value:m.value),F=t1(()=>A.value==="code"?u("code-graph"):s("graph")),C=t1(()=>l.repository.split("/").pop()??l.repository),I=t1(()=>!!k.value&&k.value.nodes.length>0);function v(z){return l.controls.includes(z)}const S=j(""),L=j(2),Z=j([]),_=j(""),R=j("2d"),B=j([]),q=j(!1),V=t1(()=>!!S.value),m1=t1(()=>{var K;const z=(K=k.value)==null?void 0:K.nodes.find(f1=>f1.id===S.value);return(z==null?void 0:z.name)??S.value.replace(/^(file|symbol):/,"")}),y1=t1(()=>{var z;return((z=k.value)==null?void 0:z.communities)??[]}),l1=j(50),o1=t1(()=>y1.value.slice(0,l1.value));q1(y1,()=>{l1.value=50});const v1=[{id:"2d",label:"2D"},{id:"3d",label:"3D"},{id:"tree",label:"Tree"},{id:"radial",label:"Radial"},{id:"layered",label:"Layered"},{id:"web",label:"Force"}],C1={knowledge:"Knowledge",code:"Code"},k1=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];async function s1(){const[z,K]=l.repository.split("/");if(!z||!K){p.value=null;return}if(A.value==="code"){await d(z,K,{focus:S.value||void 0,depth:V.value?L.value:void 0,q:_.value.trim()||void 0});return}m.value=!0;try{p.value=await r(z,K,{focus:S.value||void 0,depth:V.value?L.value:void 0,kind:Z.value,q:_.value.trim()||void 0,status:q.value?"all":void 0})}finally{m.value=!1}}let O1=null;function F1(){O1&&clearTimeout(O1),O1=setTimeout(s1,250)}q1([L,Z,_,q],F1,{deep:!0}),q1(S,s1),q1(A,()=>{S.value="",B.value=[],s1()}),q1(()=>l.repository,()=>{S.value="",B.value=[],s1()},{immediate:!0});function V1(z){o("select",z),v("depth")&&(S.value=S.value===z?"":z)}function e2(){S.value=""}function a1(z){Z.value=Z.value.includes(z)?Z.value.filter(K=>K!==z):[...Z.value,z]}function h1(z){B.value=B.value.includes(z)?B.value.filter(K=>K!==z):[...B.value,z]}const $=t1(()=>l.sources.length>1||v("filter")||v("kinds")||v("parts")||v("layouts")||v("depth")||v("retired"));return t({reload:s1}),(z,K)=>{var f1,x1,g,b;return h(),w("div",{class:i1(["grid gap-4 lg:items-start",$.value?"lg:grid-cols-[16rem_1fr]":""])},[$.value?(h(),w("aside",{key:0,class:"space-y-4 overflow-y-auto rounded-lg border bg-card p-3",style:M2({height:e.height})},[e.sources.length>1?(h(),w("div",Jd,[K[6]||(K[6]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Draw",-1)),y("div",zd,[(h(!0),w(n1,null,_1(e.sources,E=>(h(),w("button",{key:E,type:"button",class:i1(["flex-1 rounded px-2 py-1 text-xs font-medium transition-colors",A.value===E?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:P=>A.value=E},Q(C1[E]),11,jd))),128))]),y("p",Xd,Q(A.value==="code"?"What is defined and what calls what, read from the code.":"What your team decided, and the files it covers."),1)])):W("",!0),v("filter")?(h(),w("div",qd,[K[7]||(K[7]=y("label",{class:"mb-1.5 block text-[11px] font-medium uppercase tracking-wide text-muted-foreground"}," Only what mentions ",-1)),y("div",ef,[M(f(_n),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),Ke(y("input",{"onUpdate:modelValue":K[0]||(K[0]=E=>_.value=E),type:"search",placeholder:"a word",class:"w-full rounded-md border bg-background py-1.5 pl-8 pr-2 text-sm"},null,512),[[R6,_.value]])])])):W("",!0),v("parts")&&A.value==="code"&&y1.value.length?(h(),w("div",tf,[K[8]||(K[8]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Parts",-1)),y("ul",nf,[(h(!0),w(n1,null,_1(o1.value,E=>(h(),w("li",{key:E.id},[y("button",{type:"button",class:i1(["flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] transition-colors hover:bg-muted",B.value.includes(E.id)?"opacity-40":""]),onClick:P=>h1(E.id)},[y("span",{class:"h-2.5 w-2.5 shrink-0 rounded-full",style:M2({backgroundColor:k1[E.id%k1.length]})},null,4),y("span",of,Q(E.name),1),y("span",rf,Q(E.size),1)],10,lf)]))),128))]),l1.valuel1.value+=50)},{default:x(()=>[U("Show more parts ("+Q(l1.value)+" of "+Q(y1.value.length)+")",1)]),_:1})):W("",!0),K[9]||(K[9]=y("p",{class:"mt-1.5 text-[11px] text-muted-foreground"}," Grouped by what calls what. Click one to hide it. ",-1))])):W("",!0),v("kinds")&&A.value==="knowledge"?(h(),w("div",sf,[K[10]||(K[10]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Kinds",-1)),y("div",af,[(h(!0),w(n1,null,_1(f(a),E=>(h(),w("button",{key:E.label,type:"button",class:i1(["inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] transition-colors",Z.value.includes(E.label.toLowerCase())?"border-primary/40 bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"]),onClick:P=>a1(E.label.toLowerCase())},[y("span",{class:"h-2 w-2 rounded-sm",style:M2({backgroundColor:E.color})},null,4),U(" "+Q(E.label),1)],10,cf))),128)),Z.value.length?(h(),w("button",{key:0,type:"button",class:"text-[11px] text-muted-foreground underline-offset-2 hover:underline",onClick:K[2]||(K[2]=E=>Z.value=[])},"Any")):W("",!0)])])):W("",!0),v("retired")&&A.value==="knowledge"?(h(),w("div",uf,[y("label",df,[Ke(y("input",{"onUpdate:modelValue":K[3]||(K[3]=E=>q.value=E),type:"checkbox",class:"h-3 w-3 rounded border"},null,512),[[i0,q.value]]),K[11]||(K[11]=U(" Include retired records ",-1))])])):W("",!0),v("layouts")?(h(),w("div",ff,[K[12]||(K[12]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Shape",-1)),M(f(ye),{modelValue:R.value,"onUpdate:modelValue":K[4]||(K[4]=E=>R.value=E),tabs:v1,label:"Shape",class:"grid w-full grid-cols-2"},null,8,["modelValue"])])):W("",!0),v("depth")?(h(),w("div",Af,[y("div",hf,[y("span",{class:i1(["text-[11px] font-medium uppercase tracking-wide",V.value?"text-muted-foreground":"text-muted-foreground/50"])}," Steps out ",2),y("span",{class:i1(["font-mono text-xs",V.value?"":"opacity-50"])},Q(L.value),3)]),Ke(y("input",{"onUpdate:modelValue":K[5]||(K[5]=E=>L.value=E),type:"range",min:"1",max:"5",disabled:!V.value,class:"w-full"},null,8,pf),[[R6,L.value,void 0,{number:!0}]]),V.value?(h(),w("div",gf,[y("p",vf,[M(f(yu),{class:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),y("span",yf,[K[13]||(K[13]=U("From ",-1)),y("span",bf,Q(m1.value),1)])]),y("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-1 rounded-md border px-2 py-1 text-[11px] hover:bg-muted",onClick:e2},[M(f(En),{class:"h-3 w-3"}),K[14]||(K[14]=U(" Draw everything ",-1))])])):(h(),w("p",mf," Click anything on the graph to walk out from it. "))])):W("",!0)],4)):W("",!0),y("div",kf,[y("div",{class:i1(["grid gap-4",z.$slots.inspector?"lg:grid-cols-[1fr_20rem]":""])},[y("div",Cf,[y("div",wf,[D.value?(h(),w("div",{key:0,class:"flex",style:M2({height:e.height})},[M(f(vn),{label:A.value==="code"?"Reading the code":"Reading the knowledge graph",note:"Large repositories can take longer to load.",size:"sm"},null,8,["label"])],4)):F.value?(h(),w("div",{key:1,role:"alert",class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:M2({height:e.height})},[K[16]||(K[16]=y("p",{class:"text-sm font-medium"},"Could not load this graph",-1)),y("p",xf,Q(F.value.message),1),M(f(b1),{variant:"outline",size:"sm",onClick:s1},{default:x(()=>[...K[15]||(K[15]=[U("Try again",-1)])]),_:1})],4)):I.value?(h(),G(f(ba),{key:3,repo:C.value,mode:R.value,data:k.value,hidden:B.value,height:e.height,onSelect:V1},null,8,["repo","mode","data","hidden","height"])):(h(),w("div",{key:2,class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:M2({height:e.height})},[M(f(m5),{class:"h-7 w-7 text-muted-foreground"}),y("div",_f,[K[17]||(K[17]=y("p",{class:"text-sm font-medium"},"Nothing to draw",-1)),y("p",If,Q(A.value==="code"?"This repository has not been read yet, so there is no code map for it.":"Initialize this repository and approve what it proposes, and its decisions appear here."),1)])],4))]),(f1=k.value)!=null&&f1.truncated?(h(),w("p",Mf," More than fits in one drawing, so this is the most connected part of it. Narrow it"+Q($.value?" on the left":"")+", or click something to walk out from it. ",1)):W("",!0),I.value?(h(),w("p",Ef,Q((x1=k.value)==null?void 0:x1.nodes.length)+" symbols, "+Q((g=k.value)==null?void 0:g.links.length)+" connections. ",1)):W("",!0),I.value&&!((b=k.value)!=null&&b.links.length)?(h(),w("p",Df," No connections were found between these files. ")):W("",!0)]),z.$slots.inspector?(h(),w("div",{key:0,class:"overflow-y-auto rounded-lg border bg-card",style:M2({height:e.height})},[K1(z.$slots,"inspector")],4)):W("",!0)],2)])],2)}}}),Zf={class:"flex h-full min-h-0 flex-col"},Ff=["value"],Bf={__name:"Graph",setup(e){const{repositories:t,chosen:n,error:l,fetchRepositories:o}=v3();return d2(o),(r,s)=>(h(),w("div",Zf,[M(f(g3),{title:"Graphs",sub:"Your code, and how it holds together."},{icon:x(()=>[M(f(m5),{class:"h-6 w-6"})]),actions:x(()=>[f(t).length>1?(h(),G(f(X2),{key:0,modelValue:f(n),"onUpdate:modelValue":s[0]||(s[0]=a=>n2(n)?n.value=a:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),w(n1,null,_1(f(t),a=>(h(),w("option",{key:a.name,value:a.name},Q(a.name),9,Ff))),128))]),_:1},8,["modelValue"])):W("",!0)]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(l)),1)]),_:1})):W("",!0),f(t).length===0?(h(),G(h4,{key:1})):(h(),G(Sn,{key:f(n),repository:f(n),sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 15rem)"},null,8,["repository"]))]))}},Sf=["value"],Rf=["value"],Qf=["value"],Nf={key:4,class:"grid gap-3"},Kf={class:"text-sm text-muted-foreground"},Gf={key:0,class:"mt-2 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"},Of={class:"break-all font-mono"},$f={class:"text-lg font-semibold mb-4"},Wf={class:"space-y-4"},Lf={class:"flex items-center gap-2 pt-2"},Pf={__name:"Knowledge",setup(e){const t=["decision","convention","constraint","pattern","workaround","requirement"],{repositories:n,chosen:l,error:o,mixed:r,fetchRepositories:s}=v3({all:!0});async function a(Z){Z&&(l.value=Z)}const i=j([]),c=j(null),d=j({id:"",kind:"decision",summary:"",why:""}),u=j(""),A=j(!1),p=j(!1),m=j(!1),k=j(null),D=j(!1);async function F(){try{const Z=await Z1.settings(),_=Z.find(B=>B.key==="model.name"),R=Z.find(B=>B.key==="model.api_key");D.value=!!(_!=null&&_.value)&&!!(R!=null&&R.is_set)}catch{D.value=!1}}async function C(Z=!1){const _=Z?m:p;_.value=!0,k.value=null;try{const R=await Z1.initialize(l.value,{useModel:Z});k.value=R.recorded,o.value="",await I()}catch(R){o.value=R.message}finally{_.value=!1}}async function I(){if(l.value)try{const Z=await Z1.knowledge(l.value);i.value=Z.items,o.value=""}catch(Z){i.value=[],o.value=Z.message}}function v(Z){var _;c.value=Z??{fresh:!0},d.value=Z?{id:Z.id,kind:Z.kind,summary:Z.summary,why:((_=Z.properties)==null?void 0:_.why)??""}:{id:"",kind:"decision",summary:"",why:""},u.value=""}async function S(){var Z,_,R;if(!d.value.id.trim()||!d.value.summary.trim()){u.value="A name and what is true are both needed.";return}A.value=!0;try{await Z1.recordKnowledge({repository:l.value,id:d.value.id.trim(),kind:d.value.kind,status:((Z=c.value)==null?void 0:Z.status)??"accepted",summary:d.value.summary.trim(),properties:d.value.why.trim()?{...((_=c.value)==null?void 0:_.properties)??{},why:d.value.why.trim()}:((R=c.value)==null?void 0:R.properties)??{}}),c.value=null,await I()}catch(B){u.value=B.message}finally{A.value=!1}}async function L(Z){if(confirm(`Forget ${Z.id}?`)){try{await Z1.forgetKnowledge(l.value,Z.id)}catch(_){o.value=_.message}await I()}}return q1(l,I),d2(async()=>{await s(),await Promise.all([I(),F()])}),(Z,_)=>{const R=q5("X");return h(),w("div",null,[M(f(g3),{pillar:"memory",title:"Knowledge",sub:"The decisions, conventions and constraints behind this code."},{icon:x(()=>[M(f(Y4),{class:"h-6 w-6"})]),actions:x(()=>[f(n).length>1?(h(),G(f(X2),{key:0,modelValue:f(l),"onUpdate:modelValue":_[0]||(_[0]=B=>n2(l)?l.value=B:null),size:"sm","aria-label":"Repository"},{default:x(()=>[y("option",{value:f(Vt)},"All repositories",8,Sf),(h(!0),w(n1,null,_1(f(n),B=>(h(),w("option",{key:B.name,value:B.name},Q(B.name),9,Rf))),128))]),_:1},8,["modelValue"])):W("",!0),f(n).length&&f(l)?(h(),G(f(b1),{key:1,size:"sm",variant:"outline",disabled:p.value,onClick:C},{default:x(()=>[p.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(mt),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(p.value?"Finding…":"Find in what the repo states"),1)]),_:1},8,["disabled"])):W("",!0),f(n).length&&D.value&&f(l)?(h(),G(f(b1),{key:2,size:"sm",variant:"outline",disabled:m.value,onClick:_[1]||(_[1]=B=>C(!0))},{default:x(()=>[m.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(Mn),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(m.value?"Finding…":"Find more with a model"),1)]),_:1},8,["disabled"])):W("",!0),f(n).length&&f(l)?(h(),G(f(b1),{key:3,size:"sm",variant:"glow",onClick:_[2]||(_[2]=B=>v(null))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),_[10]||(_[10]=U(" Record something ",-1))]),_:1})):f(n).length?(h(),G(f(X2),{key:4,"model-value":"",size:"sm","aria-label":"Choose a repository","onUpdate:modelValue":a},{default:x(()=>[_[11]||(_[11]=y("option",{value:""},"Choose a repository…",-1)),(h(!0),w(n1,null,_1(f(n),B=>(h(),w("option",{key:B.name,value:B.name},Q(B.name),9,Qf))),128))]),_:1})):W("",!0)]),_:1}),f(o)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(o)),1)]),_:1})):W("",!0),k.value!==null?(h(),G(f(u2),{key:1,tone:"info",class:"mb-4"},{default:x(()=>[k.value?(h(),w(n1,{key:0},[U(" Read "+Q(k.value)+" thing"+Q(k.value===1?"":"s")+" this repository already states. Nobody has agreed to any of it, so it is all proposed. ",1)],64)):(h(),w(n1,{key:1},[U(" This repository does not state anything in the places projects usually write these down: a decision record, or a conventions section in a contributing guide. ")],64))]),_:1})):W("",!0),f(n).length===0?(h(),G(h4,{key:2})):i.value.length===0?(h(),G(f(Le),{key:3,title:"Nothing recorded yet"},{actions:x(()=>[M(f(b1),{variant:"glow",onClick:_[3]||(_[3]=B=>v(null))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),_[12]||(_[12]=U(" Record something ",-1))]),_:1}),M(f(b1),{variant:"outline",disabled:p.value,onClick:C},{default:x(()=>[p.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(mt),{key:1,class:"mr-2 h-4 w-4"})),_[13]||(_[13]=U(" Read what the repo states ",-1))]),_:1},8,["disabled"])]),default:x(()=>[_[14]||(_[14]=U(" Why a thing is the way it is outlives the code that does it. Write one down and every agent reading this repository over MCP gets it too. ",-1))]),_:1})):(h(),w("div",Nf,[(h(!0),w(n1,null,_1(i.value,B=>(h(),G(f(z3),{key:`${B.repository??""}${B.id}`,title:B.id,pillar:"memory"},{icon:x(()=>[M(f(Y4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:"secondary"},{default:x(()=>[U(Q(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:x(()=>[U(Q(B.status),1)]),_:2},1024)):W("",!0),f(r)&&B.repository?(h(),G(f(yn),{key:1,name:B.repository},{icon:x(()=>[M(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):W("",!0)]),actions:x(()=>[B.status===Z.PROPOSED?(h(),w(n1,{key:0},[M(f(b1),{variant:"outline",size:"sm",disabled:Z.deciding===B.id,"aria-label":`Accept ${B.id}`,onClick:q=>Z.decide(B,Z.ACCEPTED)},{default:x(()=>[Z.deciding===B.id?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(pe),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),_[16]||(_[16]=U(" Accept ",-1))]),_:2},1032,["disabled","aria-label","onClick"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":`Throw out ${B.id}`,onClick:q=>Z.decide(B,null)},{default:x(()=>[M(R,{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])],64)):(h(),w(n1,{key:1},[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Edit",onClick:q=>v(B)},{default:x(()=>[M(f(wu),{class:"h-4 w-4"})]),_:1},8,["onClick"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":"Remove",onClick:q=>L(B)},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1},8,["onClick"])],64))]),default:x(()=>{var q;return[y("p",Kf,Q(B.summary),1),(q=B.properties)!=null&&q.why?(h(),w("dl",Gf,[_[15]||(_[15]=y("dt",{class:"text-muted-foreground"},"why",-1)),y("dd",Of,Q(B.properties.why),1)])):W("",!0)]}),_:2},1032,["title"]))),128))])),M(f(Ht),{open:!!c.value,"max-width":"xl",onClose:_[9]||(_[9]=B=>c.value=null)},{default:x(()=>{var B;return[y("h2",$f,Q((B=c.value)!=null&&B.fresh?"Record something":"Edit"),1),y("div",Wf,[M(f(Q2),{label:"Name",hint:"What this will be called, and how it is found again."},{default:x(()=>{var q;return[M(f(J3),{modelValue:d.value.id,"onUpdate:modelValue":_[4]||(_[4]=V=>d.value.id=V),readonly:!((q=c.value)!=null&&q.fresh),placeholder:"retry-limit"},null,8,["modelValue","readonly"])]}),_:1}),M(f(Q2),{label:"Kind"},{default:x(()=>[M(f(X2),{modelValue:d.value.kind,"onUpdate:modelValue":_[5]||(_[5]=q=>d.value.kind=q),class:"w-full"},{default:x(()=>[(h(),w(n1,null,_1(t,q=>y("option",{key:q},Q(q),1)),64))]),_:1},8,["modelValue"])]),_:1}),M(f(Q2),{label:"What is true"},{default:x(()=>[M(f(ut),{modelValue:d.value.summary,"onUpdate:modelValue":_[6]||(_[6]=q=>d.value.summary=q),placeholder:"Charges retry three times, then stop."},null,8,["modelValue"])]),_:1}),M(f(Q2),{label:"Why",hint:"What stops somebody undoing it next year."},{default:x(()=>[M(f(ut),{modelValue:d.value.why,"onUpdate:modelValue":_[7]||(_[7]=q=>d.value.why=q),placeholder:"The provider rate limits after four."},null,8,["modelValue"])]),_:1}),u.value?(h(),G(f(u2),{key:0,tone:"danger"},{default:x(()=>[U(Q(u.value),1)]),_:1})):W("",!0),y("div",Lf,[M(f(b1),{disabled:A.value,onClick:S},{default:x(()=>[M(f(pe),{class:"mr-1.5 h-3.5 w-3.5"}),_[17]||(_[17]=U(" Save ",-1))]),_:1},8,["disabled"]),M(f(b1),{variant:"outline",onClick:_[8]||(_[8]=q=>c.value=null)},{default:x(()=>[..._[18]||(_[18]=[U("Cancel",-1)])]),_:1})])])]}),_:1},8,["open"])])}}};function vt(e){if(!e)return"";const t=new Date(e),n=Math.round((Date.now()-t.getTime())/6e4);if(n<1)return"just now";if(n<60)return`${n} minute${n===1?"":"s"} ago`;const l=Math.round(n/60);return l<24?`${l} hour${l===1?"":"s"} ago`:t.toLocaleDateString()}const Tf={key:2,class:"grid gap-3"},Hf={class:"flex items-center gap-1.5"},Yf={class:"flex items-center gap-1.5"},Vf={class:"flex items-center gap-1.5"},Uf={key:1,class:"text-primary"},Jf={__name:"Repositories",setup(e){const t=ve(),{repositories:n,error:l,fetchRepositories:o}=v3(),r=j({}),s=j(""),a=j(!1),i=j({}),c=t1(()=>n.value.some(C=>C.reading));let d=null;async function u(){for(const C of n.value){const I=await Z1.graph(C.name).catch(()=>null);r.value={...r.value,[C.name]:I?{files:I.nodes.filter(v=>v.kind==="file").length,links:I.links.length}:null}}}async function A(){await o(),await u(),p()}function p(){clearTimeout(d),c.value&&(d=setTimeout(async()=>{await o(),c.value||await u(),p()},2e3))}async function m(C){s.value=C;try{const[I]=await Z1.index(C);i.value={...i.value,[C]:I},l.value=""}catch(I){l.value=I.message}s.value="",await A()}function k(C){return C?C.indexed?`Read ${C.indexed.toLocaleString()} files just now.`:"Nothing had changed.":""}function D(C){return C.reading?"Reading…":C.indexed_at?`Read ${vt(C.indexed_at)}`:"Not read yet"}async function F(C){if(confirm(`Stop covering ${C.path}? -What was already indexed is left alone.`)){try{await B1.dropRepository(p.path)}catch(y){l.value=y.message}await d()}}return d2(d),(p,y)=>(h(),C("div",null,[I(f(m3),{title:"Repositories",sub:"The folders SourceAnt reads on this machine."},{icon:w(()=>[I(f(i4),{class:"h-6 w-6"})]),actions:w(()=>[I(f(C1),{variant:"glow",onClick:y[0]||(y[0]=k=>a.value=!0)},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),y[3]||(y[3]=U(" Add a folder ",-1))]),_:1})]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(l)),1)]),_:1})):P("",!0),f(n).length===0?(h(),G(f(We),{key:1,title:"No folders yet"},{actions:w(()=>[I(f(C1),{variant:"glow",onClick:y[1]||(y[1]=k=>a.value=!0)},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),y[4]||(y[4]=U(" Add a folder ",-1))]),_:1})]),default:w(()=>[y[5]||(y[5]=U(" Point SourceAnt at a repository and it reads the files into a graph. ",-1))]),_:1})):(h(),C("div",Gf,[(h(!0),C(n1,null,_1(f(n),k=>(h(),G(f(z3),{key:k.path,title:k.name,subtitle:k.path,hover:"",class:"cursor-pointer",onClick:F=>f(t).push(`/repositories/${k.name}`)},{icon:w(()=>[I(f(m5),{class:"h-5 w-5"})]),meta:w(()=>[r.value[k.name]?(h(),C(n1,{key:0},[b("span",Of,[I(f(p5),{class:"h-3.5 w-3.5"}),U(N(r.value[k.name].files.toLocaleString())+" files ",1)]),b("span",$f,[I(f(bn),{class:"h-3.5 w-3.5"}),U(N(r.value[k.name].links.toLocaleString())+" links ",1)])],64)):r.value[k.name]===null?(h(),C("span",Wf,"Not read yet. Re-index to read it.")):(h(),C("span",Lf,"Reading…")),i.value[k.name]?(h(),C("span",Pf,N(A(i.value[k.name])),1)):P("",!0)]),actions:w(()=>[I(f(C1),{variant:"outline",size:"sm",disabled:s.value===k.name,onClick:qe(F=>u(k.name),["stop"])},{default:w(()=>[s.value===k.name?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(Cn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(s.value===k.name?"Reading…":"Re-index"),1)]),_:2},1032,["disabled","onClick"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":`Remove ${k.name}`,onClick:qe(F=>m(k),["stop"])},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])]),_:2},1032,["title","subtitle","onClick"]))),128))])),I(Zn,{open:a.value,onClose:y[2]||(y[2]=k=>a.value=!1),onAdded:d},null,8,["open"])]))}};function Ut(){const e=me();return t=>e.push(t)}const Tf={class:"flex h-full min-h-0 flex-col"},Yf={key:1,class:"space-y-3"},Vf={class:"flex flex-wrap gap-x-8 gap-y-3"},Uf={class:"flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted-foreground"},Jf={class:"mt-0.5 text-lg font-semibold"},zf={key:0,class:"mt-4 text-sm text-primary"},jf={key:1,class:"mt-4 text-sm text-muted-foreground"},Xf={class:"mt-4 flex flex-wrap gap-2"},qf={class:"mb-4 mt-0.5 text-sm text-muted-foreground"},eA={class:"space-y-2"},tA=["title"],nA={class:"hidden h-1.5 w-24 shrink-0 overflow-hidden rounded-full bg-muted sm:block"},lA={class:"w-28 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},oA={class:"w-24 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},rA={key:2,class:"space-y-3"},sA={class:"text-sm text-muted-foreground"},aA={key:3,class:"space-y-3"},iA={class:"text-sm text-muted-foreground"},cA={__name:"Repository",setup(e){const t=d5(),n=me(),l=Ut(),{repositories:o,chosen:r,fetchRepositories:s}=g3(),a=t1(()=>String(t.params.name??"")),i=t1(()=>o.value.find(D=>D.name===a.value)),c=z("overview"),d=z(null),u=z([]),A=z([]),m=z({files:[],since:""}),p=z(!1),y=z(null),k=z(""),F=t1(()=>{var D,x,Q;return[{label:"Files",value:((D=d.value)==null?void 0:D.files)??0,icon:p5},{label:"Connections",value:((x=d.value)==null?void 0:x.links)??0,icon:bn},{label:"Parts",value:((Q=d.value)==null?void 0:Q.parts)??0,icon:g5},{label:"Recorded",value:u.value.length,icon:S4},{label:"Rules",value:A.value.length,icon:c4}]}),M=t1(()=>{var D;return((D=m.value.files[0])==null?void 0:D.changes)||1}),E=t1(()=>[{id:"overview",label:"Overview"},{id:"knowledge",label:`Knowledge${u.value.length?` ${u.value.length}`:""}`},{id:"skills",label:`Skills${A.value.length?` ${A.value.length}`:""}`},{id:"graph",label:"Graph"}]);async function _(){if(!a.value)return;r.value=a.value;const[D,x,Q,B]=await Promise.all([B1.graph(a.value).catch(()=>null),B1.knowledge(a.value).catch(()=>({items:[]})),B1.skills(a.value).catch(()=>({skills:[]})),B1.attention(a.value).catch(()=>({files:[],since:""}))]);d.value=D?{files:D.nodes.filter(X=>X.kind==="file").length,links:D.links.length,parts:(D.communities??[]).length}:null,u.value=x.items??[],A.value=Q.skills??[],m.value=B}async function R(){p.value=!0;try{const[D]=await B1.index(a.value);y.value=D,k.value=""}catch(D){k.value=D.message}p.value=!1,await _()}async function $(){if(confirm(`Stop covering ${i.value.path}? +What was already indexed is left alone.`)){try{await Z1.dropRepository(C.path)}catch(I){l.value=I.message}await A()}}return d2(A),ge(()=>clearTimeout(d)),(C,I)=>(h(),w("div",null,[M(f(g3),{title:"Repositories",sub:"The folders SourceAnt reads on this machine."},{icon:x(()=>[M(f(i4),{class:"h-6 w-6"})]),actions:x(()=>[M(f(b1),{variant:"glow",onClick:I[0]||(I[0]=v=>a.value=!0)},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),I[3]||(I[3]=U(" Add a folder ",-1))]),_:1})]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(l)),1)]),_:1})):W("",!0),f(n).length===0?(h(),G(f(Le),{key:1,title:"No folders yet"},{actions:x(()=>[M(f(b1),{variant:"glow",onClick:I[1]||(I[1]=v=>a.value=!0)},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),I[4]||(I[4]=U(" Add a folder ",-1))]),_:1})]),default:x(()=>[I[5]||(I[5]=U(" Point SourceAnt at a repository and it reads the files into a graph. ",-1))]),_:1})):(h(),w("div",Tf,[(h(!0),w(n1,null,_1(f(n),v=>(h(),G(f(z3),{key:v.path,title:v.name,subtitle:v.path,hover:"",class:"cursor-pointer",onClick:S=>f(t).push(`/repositories/${v.name}`)},{icon:x(()=>[M(f(p5),{class:"h-5 w-5"})]),meta:x(()=>[r.value[v.name]?(h(),w(n1,{key:0},[y("span",Hf,[M(f(h5),{class:"h-3.5 w-3.5"}),U(Q(r.value[v.name].files.toLocaleString())+" files ",1)]),y("span",Yf,[M(f(Cn),{class:"h-3.5 w-3.5"}),U(Q(r.value[v.name].links.toLocaleString())+" links ",1)])],64)):W("",!0),y("span",Vf,[v.reading?(h(),G(f(_2),{key:0,class:"h-3.5 w-3.5 animate-spin"})):W("",!0),U(" "+Q(D(v)),1)]),i.value[v.name]?(h(),w("span",Uf,Q(k(i.value[v.name])),1)):W("",!0)]),actions:x(()=>[M(f(b1),{variant:"outline",size:"sm",disabled:s.value===v.name||v.reading,onClick:qe(S=>m(v.name),["stop"])},{default:x(()=>[s.value===v.name?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(xn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(s.value===v.name?"Reading…":"Re-index"),1)]),_:2},1032,["disabled","onClick"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":`Remove ${v.name}`,onClick:qe(S=>F(v),["stop"])},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])]),_:2},1032,["title","subtitle","onClick"]))),128))])),M(Bn,{open:a.value,onClose:I[2]||(I[2]=v=>a.value=!1),onAdded:A},null,8,["open"])]))}};function Ut(){const e=ve();return t=>e.push(t)}const zf={class:"flex h-full min-h-0 flex-col"},jf={key:1,class:"space-y-3"},Xf={class:"flex flex-wrap gap-x-8 gap-y-3"},qf={class:"flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted-foreground"},eA={class:"mt-0.5 text-lg font-semibold"},tA={key:0,class:"mt-4 text-sm text-primary"},nA={key:1,class:"mt-4 text-sm text-muted-foreground"},lA={class:"mt-4 flex flex-wrap gap-2"},oA={class:"mb-4 mt-0.5 text-sm text-muted-foreground"},rA={class:"space-y-2"},sA=["title"],aA={class:"hidden h-1.5 w-24 shrink-0 overflow-hidden rounded-full bg-muted sm:block"},iA={class:"w-28 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},cA={class:"w-24 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},uA={key:2,class:"space-y-3"},dA={class:"text-sm text-muted-foreground"},fA={key:3,class:"space-y-3"},AA={class:"text-sm text-muted-foreground"},hA={__name:"Repository",setup(e){const t=u5(),n=ve(),l=Ut(),{repositories:o,chosen:r,fetchRepositories:s}=v3(),a=t1(()=>String(t.params.name??"")),i=t1(()=>o.value.find(Z=>Z.name===a.value)),c=j("overview"),d=j(null),u=j([]),A=j([]),p=j({files:[],since:""}),m=j(!1),k=j(null),D=j(""),F=t1(()=>{var Z,_,R;return[{label:"Files",value:((Z=d.value)==null?void 0:Z.files)??0,icon:h5},{label:"Connections",value:((_=d.value)==null?void 0:_.links)??0,icon:Cn},{label:"Parts",value:((R=d.value)==null?void 0:R.parts)??0,icon:m5},{label:"Recorded",value:u.value.length,icon:B4},{label:"Rules",value:A.value.length,icon:c4}]}),C=t1(()=>{var Z;return((Z=p.value.files[0])==null?void 0:Z.changes)||1}),I=t1(()=>[{id:"overview",label:"Overview"},{id:"knowledge",label:`Knowledge${u.value.length?` ${u.value.length}`:""}`},{id:"skills",label:`Skills${A.value.length?` ${A.value.length}`:""}`},{id:"graph",label:"Graph"}]);async function v(){if(!a.value)return;r.value=a.value;const[Z,_,R,B]=await Promise.all([Z1.graph(a.value).catch(()=>null),Z1.knowledge(a.value).catch(()=>({items:[]})),Z1.skills(a.value).catch(()=>({skills:[]})),Z1.attention(a.value).catch(()=>({files:[],since:""}))]);d.value=Z?{files:Z.nodes.filter(q=>q.kind==="file").length,links:Z.links.length,parts:(Z.communities??[]).length}:null,u.value=_.items??[],A.value=R.skills??[],p.value=B}async function S(){m.value=!0;try{const[Z]=await Z1.index(a.value);k.value=Z,D.value=""}catch(Z){D.value=Z.message}m.value=!1,await v()}async function L(){if(confirm(`Stop covering ${i.value.path}? -What was already indexed is left alone.`))try{await B1.dropRepository(i.value.path),await s(),n.push("/repositories")}catch(D){k.value=D.message}}return t2(a,_),d2(async()=>{await s(),await _()}),(D,x)=>{var Q;return h(),C("div",Tf,[I(f(m3),{title:a.value,sub:(Q=i.value)==null?void 0:Q.path,mono:""},{back:w(()=>[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Back to repositories",onClick:x[0]||(x[0]=B=>f(l)("/repositories"))},{default:w(()=>[I(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:w(()=>[I(f(m5),{class:"h-5 w-5"})]),badges:w(()=>{var B;return[I(f(c2),{variant:(B=d.value)!=null&&B.files?"success":"warning"},{default:w(()=>{var X;return[U(N((X=d.value)!=null&&X.files?"Indexed":"Not indexed"),1)]}),_:1},8,["variant"])]}),actions:w(()=>[I(f(C1),{variant:"outline",disabled:p.value,onClick:R},{default:w(()=>[p.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(Cn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(p.value?"Reading…":"Re-index"),1)]),_:1},8,["disabled"]),I(f(C1),{variant:"ghost",size:"icon","aria-label":"Stop covering this folder",onClick:$},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1})]),_:1},8,["title","sub"]),k.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(k.value),1)]),_:1})):P("",!0),I(f(ge),{modelValue:c.value,"onUpdate:modelValue":x[1]||(x[1]=B=>c.value=B),tabs:E.value,label:"What to look at",class:"mb-4 w-fit"},null,8,["modelValue","tabs"]),c.value==="overview"?(h(),C("div",Yf,[I(f(z1),{class:"p-5"},{default:w(()=>[b("dl",Vf,[(h(!0),C(n1,null,_1(F.value,B=>(h(),C("div",{key:B.label},[b("dt",Uf,[(h(),G(k2(B.icon),{class:"h-3.5 w-3.5"})),U(N(B.label),1)]),b("dd",Jf,N(B.value.toLocaleString()),1)]))),128))]),y.value?(h(),C("p",zf,[y.value.indexed?(h(),C(n1,{key:0},[U("Read "+N(y.value.indexed.toLocaleString())+" files just now.",1)],64)):(h(),C(n1,{key:1},[U("Nothing had changed.")],64))])):d.value===null?(h(),C("p",jf," Not read yet. Re-index to read it. ")):P("",!0),b("div",Xf,[I(f(C1),{variant:"outline",size:"sm",onClick:x[2]||(x[2]=B=>f(n).push("/reviews"))},{default:w(()=>[I(f(Le),{class:"mr-1.5 h-3.5 w-3.5"}),x[6]||(x[6]=U(" Review what has changed ",-1))]),_:1}),I(f(C1),{variant:"outline",size:"sm",onClick:x[3]||(x[3]=B=>f(n).push("/knowledge"))},{default:w(()=>[I(f(S4),{class:"mr-1.5 h-3.5 w-3.5"}),x[7]||(x[7]=U(" Record something ",-1))]),_:1})])]),_:1}),m.value.files.length?(h(),G(f(z1),{key:0,class:"p-5"},{default:w(()=>[x[8]||(x[8]=b("h2",{class:"font-semibold"},"Where to look first",-1)),b("p",qf," Files that have been changing in the last "+N(m.value.since)+" and that the rest of the code leans on. Either on its own says little: something everything imports and nobody touches is settled, and something nothing imports that changes daily is a scratch pad. Where they meet is where a change is most likely to catch somebody out, and is the shortest list worth reading first. ",1),b("ul",eA,[(h(!0),C(n1,null,_1(m.value.files,B=>(h(),C("li",{key:B.path,class:"flex items-center gap-3"},[b("span",{class:"min-w-0 flex-1 truncate font-mono text-sm",title:B.path},N(B.path),9,tA),b("span",nA,[b("span",{class:"block h-full rounded-full bg-pillar-graph",style:S2({width:`${Math.max(4,B.changes/M.value*100)}%`})},null,4)]),b("span",lA,N(B.changes)+" change"+N(B.changes===1?"":"s"),1),b("span",oA,N(B.dependants)+" depend"+N(B.dependants===1?"s":""),1)]))),128))])]),_:1})):P("",!0)])):c.value==="knowledge"?(h(),C("div",rA,[(h(!0),C(n1,null,_1(u.value,B=>(h(),G(f(z3),{key:B.id,title:B.id,pillar:"memory"},{icon:w(()=>[I(f(S4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:"secondary"},{default:w(()=>[U(N(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:w(()=>[U(N(B.status),1)]),_:2},1024)):P("",!0)]),default:w(()=>[b("p",sA,N(B.summary),1)]),_:2},1032,["title"]))),128)),u.value.length?P("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:w(()=>[x[10]||(x[10]=b("p",{class:"font-medium"},"Nothing recorded about this repository yet.",-1)),I(f(C1),{class:"mt-3",variant:"outline",onClick:x[4]||(x[4]=B=>f(n).push("/knowledge"))},{default:w(()=>[...x[9]||(x[9]=[U("Record something",-1)])]),_:1})]),_:1}))])):c.value==="skills"?(h(),C("div",aA,[(h(!0),C(n1,null,_1(A.value,B=>(h(),G(f(z3),{key:B.id,title:B.name,subtitle:B.path,pillar:"review"},{icon:w(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:B.origin==="repository"?"success":"outline"},{default:w(()=>[U(N(B.origin==="repository"?"this repository":B.origin),1)]),_:2},1032,["variant"])]),default:w(()=>[b("p",iA,N(B.description),1)]),_:2},1032,["title","subtitle"]))),128)),A.value.length?P("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:w(()=>[x[12]||(x[12]=b("p",{class:"font-medium"},"Nothing written down for this repository yet.",-1)),I(f(C1),{class:"mt-3",variant:"outline",onClick:x[5]||(x[5]=B=>f(n).push("/skills/new"))},{default:w(()=>[...x[11]||(x[11]=[U("Write one down",-1)])]),_:1})]),_:1}))])):(h(),G(Fn,{key:a.value,repository:a.value,sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 19rem)"},null,8,["repository"]))])}}},uA={class:"flex h-full min-h-0 flex-col"},dA={key:0},fA=["value"],AA=["value"],hA=["value"],pA={class:"space-y-2"},mA={key:1,class:"font-mono"},gA={class:"mb-3 flex flex-wrap items-center gap-x-3 gap-y-2"},vA={class:"ml-auto flex flex-wrap items-center gap-1.5"},yA=["value"],bA={key:1,class:"min-h-0 flex-1 overflow-y-auto"},kA={class:"min-w-0 flex-1 truncate font-medium"},CA={class:"shrink-0 font-mono text-xs text-muted-foreground"},wA={class:"shrink-0 text-xs text-muted-foreground"},xA={class:"shrink-0 text-xs text-muted-foreground"},_A={key:0,class:"mt-2 whitespace-pre-wrap pl-5 text-sm text-muted-foreground"},IA={key:2,class:"min-h-0 flex-1 overflow-y-auto"},MA={class:"divide-y"},EA={class:"flex cursor-pointer items-center gap-2 text-sm"},DA={class:"font-medium"},ZA={class:"min-w-0 flex-1 truncate text-muted-foreground"},FA={class:"flex cursor-pointer items-center gap-2 text-sm"},BA={class:"font-medium"},SA={class:"min-w-0 flex-1 truncate text-muted-foreground"},RA={class:"space-y-2"},QA={class:"space-y-2"},NA={class:"space-y-2"},KA={class:"space-y-1.5 text-sm"},GA=["onClick"],OA={class:"font-mono text-xs"},$A={key:3,class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[18rem_1fr]"},WA={class:"min-h-0 flex-1 overflow-y-auto py-1"},LA=["onClick"],PA=["title"],HA={class:"shrink-0 text-[10px] uppercase text-muted-foreground"},TA={class:"min-h-0 overflow-y-auto"},YA={class:"mb-2 flex flex-wrap items-center gap-2"},VA={class:"break-all font-mono text-sm"},UA=1500,L7={__name:"Reviews",setup(e){const t=d5(),n=me(),l=Ut(),{repositories:o,chosen:r,error:s,mixed:a,fetchRepositories:i}=g3({all:!0}),c=z(!1),d=z(!1),u=z(null),A=z(null),m=z(!1),p=z(""),y=z([]),k=z(""),F=z([]),M=z([]),E=z("overview"),_=t1(()=>{var K;return((K=u.value)==null?void 0:K.changed)??[]}),R=t1(()=>String(t.params.id??"")),$=t1(()=>F.value.filter(K=>!y.value.includes(K.id))),D=t1(()=>Object.fromEntries(F.value.map(K=>[K.id,K]))),x=K=>{var O;return((O=D.value[K])==null?void 0:O.name)??K},Q=K=>{var O;return(O=m1.value.find(p1=>p1.skill===K))==null?void 0:O.passed};function B(K){y.value=y.value.filter(O=>O!==K)}function X(K){K&&!y.value.includes(K)&&(y.value=[...y.value,K]),k.value=""}const Y=t1(()=>{var K;return((K=u.value)==null?void 0:K.where)??null}),m1=t1(()=>{var K;return((K=u.value)==null?void 0:K.verdicts)??[]}),w1=t1(()=>m1.value.flatMap(K=>K.findings.map(O=>({...O,skill:K.skill})))),r1=t1(()=>w1.value.filter(K=>K.severity==="blocking")),l1=t1(()=>w1.value.filter(K=>K.severity!=="blocking")),b1=t1(()=>{const K={};for(const O of w1.value)O.path&&(K[O.path]=(K[O.path]??0)+(O.severity==="blocking"?10:1));for(const O of Y1.value)K[O.path]=(K[O.path]??0)+1;return K}),y1=t1(()=>[..._.value].sort((K,O)=>(b1.value[O.path]??0)-(b1.value[K.path]??0))),k1=t1(()=>_.value.find(K=>K.path===p.value)??y1.value[0]??null),c1=t1(()=>w1.value.filter(K=>!K.path)),L1=t1(()=>{var K;return((K=u.value)==null?void 0:K.review)??null}),S1=t1(()=>{var K;return((K=L1.value)==null?void 0:K.summary)??null}),Y1=t1(()=>{var K;return((K=L1.value)==null?void 0:K.suggestions)??[]}),q1=t1(()=>m1.value.filter(K=>!K.passed)),s1=t1(()=>{var K;return((K=u.value)==null?void 0:K.commits)??[]}),q=t1(()=>{var K,O;return!!((K=S1.value)!=null&&K.overview)||q1.value.length>0||c1.value.length>0||Y1.value.length>0||Object.keys(((O=L1.value)==null?void 0:O.notes)??{}).length>0}),S=t1(()=>{const K=[{id:"overview",label:"Overview"},{id:"details",label:`Files${_.value.length?` ${_.value.length}`:""}`}];return K.push({id:"commits",label:`Commits${s1.value.length?` ${s1.value.length}`:""}`}),K}),o1={APPROVE:{label:"Approved",tone:"success"},REQUEST_CHANGES:{label:"Changes requested",tone:"danger"},COMMENT:{label:"Commented",tone:"warning"}},J=t1(()=>{var O;if(r1.value.length)return{label:"Changes requested",tone:"danger",count:r1.value.length};const K=(O=L1.value)==null?void 0:O.verdict;return K&&o1[K]?{...o1[K],count:Y1.value.length||null}:!m1.value.length&&!L1.value?{label:"Not reviewed",tone:"neutral",count:null}:{label:"Commented",tone:"warning",count:l1.value.length||null}}),A1={success:hu,danger:Q7,warning:yu,neutral:Le},x1=t1(()=>u.value?A1[J.value.tone]:Le),g={BUG:"danger",SECURITY:"danger",PERFORMANCE:"warning",REFACTOR:"info",STYLE:"neutral",CLARITY:"neutral",TEST:"info",DOCUMENTATION:"neutral"},v=K=>g[String(K||"").toUpperCase()]??"info",Z=K=>[...w1.value.filter(O=>O.path===K).map(O=>({...O,from:O.skill,tone:O.severity==="blocking"?"danger":"warning"})),...Y1.value.filter(O=>O.path===K).map(O=>({line:O.start_line,severity:"suggestion",detail:O.comment,code:O.suggested_code,replacing:O.existing_code,from:O.category||"review",tone:v(O.category)}))];async function L(K){K&&(r.value=K,await Promise.all([e1(),T()]))}async function T(){try{M.value=await B1.reviews(r.value)}catch{M.value=[]}}function W(K){if(!K)return"";const O=new Date(K),p1=Math.round((Date.now()-O.getTime())/6e4);if(p1<1)return"just now";if(p1<60)return`${p1} minute${p1===1?"":"s"} ago`;const H=Math.round(p1/60);return H<24?`${H} hour${H===1?"":"s"} ago`:O.toLocaleDateString()}async function a1(){try{const K=await B1.settings(),O=K.find(H=>H.key==="model.name"),p1=K.find(H=>H.key==="model.api_key");m.value=!!(O!=null&&O.value)&&!!(p1!=null&&p1.is_set)}catch{m.value=!1}}async function e1(){try{F.value=(await B1.skills(r.value)).skills}catch{F.value=[]}}let j=null;function V(){j&&clearTimeout(j),j=null}async function g1(K){V();const O=K?d:c;O.value=!0,s.value="";try{const p1=await B1.startReview(r.value,{useModel:K,skills:[...y.value]});n.replace(`/reviews/${p1.id}`),await i1(p1.id,K)}catch(p1){s.value=p1.message,O.value=!1}}async function i1(K,O=!0){const p1=O?d:c;let H;try{H=await B1.reviewed(K)}catch(D1){s.value=D1.message,p1.value=!1;return}if(A.value=H,H.status==="running"){p1.value=!0,j=setTimeout(()=>i1(K,O),UA);return}if(p1.value=!1,H.status==="failed"){s.value=H.error;return}H.repository&&H.repository!==r.value&&(r.value=H.repository),u.value=H.review,p.value="",E.value="overview",T(),H.repository&&(r.value=H.repository),y.value=(H.review.skills??[]).map(D1=>D1.id)}return t2(r,()=>{V(),e1(),T()}),t2(R,K=>{if(V(),!K){u.value=null,A.value=null,T();return}i1(K)}),f4(V),d2(async()=>{await i(),await Promise.all([a1(),e1(),T()]),R.value&&await i1(R.value)}),(K,O)=>{var p1;return h(),C("div",uA,[I(f(m3),{pillar:"review",title:Y.value?`${Y.value.branch||"no branch"} → ${Y.value.against}`:"Reviews",sub:Y.value?Y.value.path:"Your work read here, before anybody else is asked to read it.",mono:!!Y.value,tone:u.value?J.value.tone:void 0},a6({icon:w(()=>[(h(),G(k2(x1.value),{class:"h-6 w-6"}))]),actions:w(()=>[f(o).length>1?(h(),G(f(j2),{key:0,modelValue:f(r),"onUpdate:modelValue":O[1]||(O[1]=H=>n2(r)?r.value=H:null),size:"sm","aria-label":"Repository"},{default:w(()=>[b("option",{value:f(Vt)},"All repositories",8,fA),(h(!0),C(n1,null,_1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},N(H.name),9,AA))),128))]),_:1},8,["modelValue"])):P("",!0),f(o).length&&f(r)?(h(),G(f(C1),{key:1,size:"sm",variant:"outline",disabled:c.value,onClick:O[2]||(O[2]=H=>g1(!1))},{default:w(()=>[c.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(p5),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(c.value?"Reading…":"Read what changed"),1)]),_:1},8,["disabled"])):P("",!0),f(o).length&&m.value&&f(r)?(h(),G(f(C1),{key:2,size:"sm",variant:"glow",disabled:d.value,onClick:O[3]||(O[3]=H=>g1(!0))},{default:w(()=>[d.value?(h(),G(f(M2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(_n),{key:1,class:"mr-2 h-4 w-4"})),U(" "+N(d.value?"Reviewing…":"Review it"),1)]),_:1},8,["disabled"])):f(o).length&&m.value?(h(),G(f(j2),{key:3,"model-value":"",size:"sm","aria-label":"Choose a repository to review","onUpdate:modelValue":L},{default:w(()=>[O[5]||(O[5]=b("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,_1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},N(H.name),9,hA))),128))]),_:1})):P("",!0)]),_:2},[R.value?{name:"back",fn:w(()=>[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Back to reviews",onClick:O[0]||(O[0]=H=>f(l)("/reviews"))},{default:w(()=>[I(f(Yt),{class:"h-4 w-4"})]),_:1})]),key:"0"}:void 0,u.value?{name:"meta",fn:w(()=>[I(f(mn),{label:J.value.label,tone:J.value.tone,count:J.value.count},null,8,["label","tone","count"]),Y.value?(h(),C("span",dA,N(Y.value.commits)+" commit"+N(Y.value.commits===1?"":"s")+" ahead",1)):P("",!0),b("span",null,N(_.value.length)+" file"+N(_.value.length===1?"":"s"),1)]),key:"1"}:void 0]),1032,["title","sub","mono","tone"]),f(s)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(s)),1)]),_:1})):P("",!0),f(o).length===0?(h(),G(p4,{key:1})):(h(),C(n1,{key:2},[!m.value&&f(r)?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:w(()=>[...O[6]||(O[6]=[U(" No model is configured, so nothing here can be judged. Reading what changed needs nothing. Choose a model in Settings to have the work read against your skills. ",-1)])]),_:1})):P("",!0),u.value?(h(),C(n1,{key:2},[b("div",gA,[I(f(ge),{modelValue:E.value,"onUpdate:modelValue":O[4]||(O[4]=H=>E.value=H),tabs:S.value,label:"What to look at",class:"w-fit"},null,8,["modelValue","tabs"]),b("div",vA,[O[11]||(O[11]=b("span",{class:"text-xs uppercase tracking-wider text-muted-foreground"}," Skills applied ",-1)),(h(!0),C(n1,null,_1(y.value,H=>(h(),G(f(u7),{key:H,label:x(H),tone:Q(H)===void 0?"default":Q(H)?"success":"danger",removable:"",onRemove:D1=>B(H)},{default:w(()=>[U(N(x(H)),1)]),_:2},1032,["label","tone","onRemove"]))),128)),y.value.length?P("",!0):(h(),G(f(u7),{key:0,tone:"muted"},{default:w(()=>[...O[9]||(O[9]=[U("Whatever applies",-1)])]),_:1})),$.value.length?(h(),G(f(j2),{key:1,"model-value":k.value,size:"sm","aria-label":"Add a skill","onUpdate:modelValue":X},{default:w(()=>[O[10]||(O[10]=b("option",{value:""},"Add…",-1)),(h(!0),C(n1,null,_1($.value,H=>(h(),C("option",{key:H.id,value:H.id},N(H.name),9,yA))),128))]),_:1},8,["model-value"])):P("",!0)])]),u.value.note&&!L1.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-3"},{default:w(()=>[U(N(u.value.note),1)]),_:1})):P("",!0),E.value==="commits"?(h(),C("div",bA,[s1.value.length?(h(),G(f(z1),{key:1,class:"divide-y px-4 py-1"},{default:w(()=>[(h(!0),C(n1,null,_1(s1.value,H=>(h(),C("div",{key:H.sha,class:"py-2.5"},[(h(),G(k2(H.body?"details":"div"),{class:f1(H.body&&"group")},{default:w(()=>[(h(),G(k2(H.body?"summary":"div"),{class:f1(["flex items-baseline gap-2 text-sm",H.body&&"cursor-pointer list-none"])},{default:w(()=>[I(f(gu),{class:"h-3.5 w-3.5 shrink-0 self-center text-muted-foreground"}),b("span",kA,N(H.subject),1),b("span",CA,N(H.sha.slice(0,8)),1),b("span",wA,N(H.author),1),b("span",xA,N(W(H.at)),1)]),_:2},1032,["class"])),H.body?(h(),C("p",_A,N(H.body),1)):P("",!0)]),_:2},1032,["class"]))]))),128))]),_:1})):(h(),G(f(We),{key:0,title:"Nothing committed on this branch",compact:""},{default:w(()=>[...O[12]||(O[12]=[U(" Everything here is uncommitted work, which is in the diff rather than in a commit. ",-1)])]),_:1}))])):E.value==="overview"?(h(),C("div",IA,[q.value?(h(),G(f(z1),{key:1,class:"divide-y px-5 py-1"},{default:w(()=>{var H,D1,V1,e2,C2,w2,v3,ye;return[(H=S1.value)!=null&&H.overview?(h(),G(f(O3),{key:0,title:"What this change does",tone:"info"},{icon:w(()=>[I(f(N7),{class:"h-4 w-4"})]),default:w(()=>[I(f(B2),{source:S1.value.overview},null,8,["source"])]),_:1})):P("",!0),q1.value.length||c1.value.length?(h(),G(f(O3),{key:1,title:"Against what this team wrote down",tone:"warning",count:q1.value.length+c1.value.length,collapsible:"",closed:""},{icon:w(()=>[I(f(Cu),{class:"h-4 w-4"})]),default:w(()=>[b("ul",MA,[(h(!0),C(n1,null,_1(q1.value,M1=>(h(),C("li",{key:M1.skill,class:"py-2 first:pt-0"},[b("details",null,[b("summary",EA,[I(f($e),{tone:"danger",title:`${M1.skill} is not met`},null,8,["title"]),b("span",DA,N(M1.skill),1),b("span",ZA,N((M1.note||"").split(` -`)[0]),1)]),M1.note?(h(),G(f(B2),{key:0,source:M1.note,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])):P("",!0)])]))),128)),(h(!0),C(n1,null,_1(c1.value,(M1,U1)=>(h(),C("li",{key:`o${U1}`,class:"py-2 first:pt-0"},[b("details",null,[b("summary",FA,[I(f($e),{tone:M1.severity==="blocking"?"danger":"warning",title:M1.skill||"A skill"},null,8,["tone","title"]),b("span",BA,N(M1.skill),1),b("span",SA,N((M1.detail||"").split(` -`)[0]),1)]),I(f(B2),{source:M1.detail,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])])]))),128))])]),_:1},8,["count"])):P("",!0),(V1=(D1=S1.value)==null?void 0:D1.critical_issues)!=null&&V1.length?(h(),G(f(O3),{key:2,title:"Worth stopping for",tone:"danger",count:S1.value.critical_issues.length,collapsible:""},{icon:w(()=>[I(f(Q7),{class:"h-4 w-4"})]),default:w(()=>[b("ul",RA,[(h(!0),C(n1,null,_1(S1.value.critical_issues,(M1,U1)=>(h(),C("li",{key:U1},[I(f(B2),{source:M1},null,8,["source"])]))),128))])]),_:1},8,["count"])):P("",!0),(C2=(e2=S1.value)==null?void 0:e2.key_improvements)!=null&&C2.length?(h(),G(f(O3),{key:3,title:"Worth changing",tone:"warning",count:S1.value.key_improvements.length,collapsible:""},{icon:w(()=>[I(f(V4),{class:"h-4 w-4"})]),default:w(()=>[b("ul",QA,[(h(!0),C(n1,null,_1(S1.value.key_improvements,(M1,U1)=>(h(),C("li",{key:U1},[I(f(B2),{source:M1},null,8,["source"])]))),128))])]),_:1},8,["count"])):P("",!0),(v3=(w2=S1.value)==null?void 0:w2.minor_suggestions)!=null&&v3.length?(h(),G(f(O3),{key:4,title:"Nice to have",count:S1.value.minor_suggestions.length,collapsible:"",closed:""},{icon:w(()=>[I(f(gt),{class:"h-4 w-4"})]),default:w(()=>[b("ul",NA,[(h(!0),C(n1,null,_1(S1.value.minor_suggestions,(M1,U1)=>(h(),C("li",{key:U1},[I(f(B2),{source:M1},null,8,["source"])]))),128))])]),_:1},8,["count"])):P("",!0),Y1.value.length?(h(),G(f(O3),{key:5,title:"Suggestions",tone:"info",count:Y1.value.length,collapsible:""},{icon:w(()=>[I(f(fu),{class:"h-4 w-4"})]),default:w(()=>[O[13]||(O[13]=b("p",{class:"mb-3 text-sm text-muted-foreground"}," Each one is drawn against the line it is about, under Files. ",-1)),b("ul",KA,[(h(!0),C(n1,null,_1(Y1.value,(M1,U1)=>(h(),C("li",{key:U1,class:"flex gap-2"},[M1.category?(h(),G(f($e),{key:0,tone:v(M1.category),title:M1.category,label:M1.category.toLowerCase(),class:"mt-0.5 shrink-0"},null,8,["tone","title","label"])):P("",!0),b("button",{type:"button",class:"min-w-0 text-left hover:underline",onClick:v5=>{p.value=M1.path,E.value="details"}},[b("span",OA,N(M1.path)+":"+N(M1.start_line),1),I(f(B2),{source:M1.comment,class:"text-muted-foreground"},null,8,["source"])],8,GA)]))),128))])]),_:1},8,["count"])):P("",!0),(h(!0),C(n1,null,_1(((ye=L1.value)==null?void 0:ye.notes)??{},(M1,U1)=>(h(),G(f(O3),{key:U1,title:String(U1).replace(/_/g," "),collapsible:"",closed:"",class:"capitalize"},{icon:w(()=>[I(f(N7),{class:"h-4 w-4"})]),default:w(()=>[I(f(B2),{source:M1,class:"normal-case"},null,8,["source"])]),_:2},1032,["title"]))),128))]}),_:1})):(h(),G(f(We),{key:0,title:"Read, not judged",compact:""},{default:w(()=>[U(N(u.value.note||"Ask for a review to have it read properly."),1)]),_:1}))])):(h(),C("div",$A,[I(f(z1),{class:"flex min-h-0 flex-col overflow-hidden"},{default:w(()=>[O[14]||(O[14]=b("div",{class:"border-b px-3 py-2 text-xs uppercase tracking-wider text-muted-foreground"}," Changed ",-1)),b("ul",WA,[(h(!0),C(n1,null,_1(y1.value,H=>{var D1;return h(),C("li",{key:H.path},[b("button",{type:"button",class:f1(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition-colors",((D1=k1.value)==null?void 0:D1.path)===H.path?"bg-primary/10 text-primary":"hover:bg-muted"]),onClick:V1=>p.value=H.path},[b("span",{class:"min-w-0 flex-1 truncate font-mono text-xs",title:H.path},N(H.path),9,PA),Z(H.path).length?(h(),G(f(c2),{key:0,variant:b1.value[H.path]>=10?"destructive":"secondary"},{default:w(()=>[U(N(Z(H.path).length),1)]),_:2},1032,["variant"])):P("",!0),b("span",HA,N(H.change.slice(0,3)),1)],10,LA)])}),128))])]),_:1}),b("div",TA,[k1.value?(h(),C(n1,{key:0},[b("div",YA,[b("span",VA,N(k1.value.path),1),I(f(c2),{variant:"secondary"},{default:w(()=>[U(N(k1.value.change),1)]),_:1})]),I(f(L9),{patch:k1.value.patch,notes:Z(k1.value.path)},null,8,["patch","notes"])],64)):(h(),G(f(z1),{key:1,class:"p-10 text-center text-sm text-muted-foreground"},{default:w(()=>[...O[15]||(O[15]=[U(" Nothing has changed in this checkout. ",-1)])]),_:1}))])]))],64)):(h(),C(n1,{key:1},[((p1=A.value)==null?void 0:p1.status)==="running"?(h(),G(f(tu),{key:0,label:"Reading it",note:"This keeps going whether or not anybody is watching, and the link to it keeps working."})):(h(),C(n1,{key:1},[M.value.length?P("",!0):(h(),G(f(We),{key:0,title:"Nothing read here yet"},a6({icon:w(()=>[I(f(Le),{class:"h-8 w-8"})]),default:w(()=>[O[7]||(O[7]=U(" Everything comes off the checkout, so work you have not pushed, or not committed, still gets a review. ",-1))]),_:2},[f(r)?void 0:{name:"actions",fn:w(()=>[(h(!0),C(n1,null,_1(f(o),H=>(h(),G(f(C1),{key:H.name,size:"sm",variant:"outline",onClick:D1=>L(H.name)},{default:w(()=>[I(f(i4),{class:"mr-2 h-4 w-4"}),U(" "+N(H.name),1)]),_:2},1032,["onClick"]))),128))]),key:"0"}]),1024)),M.value.length?(h(),C(n1,{key:1},[O[8]||(O[8]=b("p",{class:"mb-2 text-xs uppercase tracking-wider text-muted-foreground"},"Earlier",-1)),b("div",pA,[(h(!0),C(n1,null,_1(M.value,H=>(h(),G(f(z3),{key:H.id,title:H.title||H.repository,subtitle:H.id,pillar:"review",hover:"",class:"cursor-pointer",onClick:D1=>f(n).push(`/reviews/${H.id}`)},{icon:w(()=>[I(f(pu),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:H.status==="done"?"success":H.status==="failed"?"destructive":"secondary"},{default:w(()=>[U(N(H.status),1)]),_:2},1032,["variant"])]),meta:w(()=>[b("span",null,N(W(H.started)),1),f(a)?(h(),G(f(gn),{key:0,name:H.repository},{icon:w(()=>[I(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):(h(),C("span",mA,N(H.repository),1))]),_:2},1032,["title","subtitle","onClick"]))),128))])],64)):P("",!0)],64))],64))],64))])}}},JA={class:"flex h-full min-h-0 flex-col"},zA={key:0,class:"text-xs text-success"},jA={key:2,class:"py-10 text-center text-sm text-muted-foreground"},XA=["value"],qA={class:"flex flex-wrap gap-1.5"},eh={class:"mt-2 text-xs text-muted-foreground"},th={class:"mb-2 flex items-center justify-between gap-3"},nh={class:"text-xs text-muted-foreground"},lh={class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-2"},oh={key:1,class:"text-sm text-muted-foreground"},rh="new",E4="repository",P2="global",sh={__name:"Skill",setup(e){const t=[E4,P2],n=d5(),l=me(),o=Ut(),{repositories:r,chosen:s,fetchRepositories:a}=g3(),i=t1(()=>String(n.params.id??"")),c=t1(()=>i.value===rh),d=z(null),u=z({id:"",name:"",description:"",body:"",paths:[],reviews:null}),A=z(P2),m=z("write"),p=z(!1),y=z(!1),k=z(""),F=z(!0),M=[{id:"write",label:"Write"},{id:"preview",label:"Preview"}],E=[{id:null,label:"When it looks relevant"},{id:!0,label:"Always"},{id:!1,label:"Never"}],_=t1(()=>u.value.reviews===!0?"Read against every change here.":u.value.reviews===!1?"Left out of reviews entirely.":"Picked when what it says matches what a change touches."),R=t1(()=>D.value?"Kept on this machine and read for every repository you work in.":`Kept on this machine and read for ${A.value}. Nothing is written into the checkout.`),$=t1(()=>[{id:P2,label:"Everywhere"},...r.value.map(r1=>({id:r1.name,label:r1.name}))]),D=t1(()=>A.value===P2),x=t1(()=>!!d.value&&!t.includes(d.value.origin)),Q=t1(()=>x.value),B=t1(()=>c.value?!!(u.value.id||u.value.description||u.value.body):d.value?u.value.name!==d.value.name||u.value.description!==d.value.description||u.value.body!==(d.value.body??"")||u.value.paths.join(` +What was already indexed is left alone.`))try{await Z1.dropRepository(i.value.path),await s(),n.push("/repositories")}catch(Z){D.value=Z.message}}return q1(a,v),d2(async()=>{await s(),await v()}),(Z,_)=>{var R;return h(),w("div",zf,[M(f(g3),{title:a.value,sub:(R=i.value)==null?void 0:R.path,mono:""},{back:x(()=>[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to repositories",onClick:_[0]||(_[0]=B=>f(l)("/repositories"))},{default:x(()=>[M(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[M(f(p5),{class:"h-5 w-5"})]),badges:x(()=>{var B;return[M(f(c2),{variant:(B=d.value)!=null&&B.files?"success":"warning"},{default:x(()=>{var q;return[U(Q((q=d.value)!=null&&q.files?"Indexed":"Not indexed"),1)]}),_:1},8,["variant"])]}),actions:x(()=>[M(f(b1),{variant:"outline",disabled:m.value,onClick:S},{default:x(()=>[m.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(xn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(m.value?"Reading…":"Re-index"),1)]),_:1},8,["disabled"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":"Stop covering this folder",onClick:L},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1})]),_:1},8,["title","sub"]),D.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(D.value),1)]),_:1})):W("",!0),M(f(ye),{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=B=>c.value=B),tabs:I.value,label:"What to look at",class:"mb-4 w-fit"},null,8,["modelValue","tabs"]),c.value==="overview"?(h(),w("div",jf,[M(f(z1),{class:"p-5"},{default:x(()=>[y("dl",Xf,[(h(!0),w(n1,null,_1(F.value,B=>(h(),w("div",{key:B.label},[y("dt",qf,[(h(),G(k2(B.icon),{class:"h-3.5 w-3.5"})),U(Q(B.label),1)]),y("dd",eA,Q(B.value.toLocaleString()),1)]))),128))]),k.value?(h(),w("p",tA,[k.value.indexed?(h(),w(n1,{key:0},[U("Read "+Q(k.value.indexed.toLocaleString())+" files just now.",1)],64)):(h(),w(n1,{key:1},[U("Nothing had changed.")],64))])):d.value===null?(h(),w("p",nA," Not read yet. Re-index to read it. ")):W("",!0),y("div",lA,[M(f(b1),{variant:"outline",size:"sm",onClick:_[2]||(_[2]=B=>f(n).push("/reviews"))},{default:x(()=>[M(f(Pe),{class:"mr-1.5 h-3.5 w-3.5"}),_[6]||(_[6]=U(" Review what has changed ",-1))]),_:1}),M(f(b1),{variant:"outline",size:"sm",onClick:_[3]||(_[3]=B=>f(n).push("/knowledge"))},{default:x(()=>[M(f(B4),{class:"mr-1.5 h-3.5 w-3.5"}),_[7]||(_[7]=U(" Record something ",-1))]),_:1})])]),_:1}),p.value.files.length?(h(),G(f(z1),{key:0,class:"p-5"},{default:x(()=>[_[8]||(_[8]=y("h2",{class:"font-semibold"},"Where to look first",-1)),y("p",oA," Files that have been changing in the last "+Q(p.value.since)+" and that the rest of the code leans on. Either on its own says little: something everything imports and nobody touches is settled, and something nothing imports that changes daily is a scratch pad. Where they meet is where a change is most likely to catch somebody out, and is the shortest list worth reading first. ",1),y("ul",rA,[(h(!0),w(n1,null,_1(p.value.files,B=>(h(),w("li",{key:B.path,class:"flex items-center gap-3"},[y("span",{class:"min-w-0 flex-1 truncate font-mono text-sm",title:B.path},Q(B.path),9,sA),y("span",aA,[y("span",{class:"block h-full rounded-full bg-pillar-graph",style:M2({width:`${Math.max(4,B.changes/C.value*100)}%`})},null,4)]),y("span",iA,Q(B.changes)+" change"+Q(B.changes===1?"":"s"),1),y("span",cA,Q(B.dependants)+" depend"+Q(B.dependants===1?"s":""),1)]))),128))])]),_:1})):W("",!0)])):c.value==="knowledge"?(h(),w("div",uA,[(h(!0),w(n1,null,_1(u.value,B=>(h(),G(f(z3),{key:B.id,title:B.id,pillar:"memory"},{icon:x(()=>[M(f(B4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:"secondary"},{default:x(()=>[U(Q(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:x(()=>[U(Q(B.status),1)]),_:2},1024)):W("",!0)]),default:x(()=>[y("p",dA,Q(B.summary),1)]),_:2},1032,["title"]))),128)),u.value.length?W("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:x(()=>[_[10]||(_[10]=y("p",{class:"font-medium"},"Nothing recorded about this repository yet.",-1)),M(f(b1),{class:"mt-3",variant:"outline",onClick:_[4]||(_[4]=B=>f(n).push("/knowledge"))},{default:x(()=>[..._[9]||(_[9]=[U("Record something",-1)])]),_:1})]),_:1}))])):c.value==="skills"?(h(),w("div",fA,[(h(!0),w(n1,null,_1(A.value,B=>(h(),G(f(z3),{key:B.id,title:B.name,subtitle:B.path,pillar:"review"},{icon:x(()=>[M(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:B.origin==="repository"?"success":"outline"},{default:x(()=>[U(Q(B.origin==="repository"?"this repository":B.origin),1)]),_:2},1032,["variant"])]),default:x(()=>[y("p",AA,Q(B.description),1)]),_:2},1032,["title","subtitle"]))),128)),A.value.length?W("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:x(()=>[_[12]||(_[12]=y("p",{class:"font-medium"},"Nothing written down for this repository yet.",-1)),M(f(b1),{class:"mt-3",variant:"outline",onClick:_[5]||(_[5]=B=>f(n).push("/skills/new"))},{default:x(()=>[..._[11]||(_[11]=[U("Write one down",-1)])]),_:1})]),_:1}))])):(h(),G(Sn,{key:a.value,repository:a.value,sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 19rem)"},null,8,["repository"]))])}}},pA={class:"flex h-full min-h-0 flex-col"},mA={key:0},gA=["value"],vA=["value"],yA=["value"],bA={class:"space-y-2"},kA={key:1,class:"font-mono"},CA={class:"mb-3 flex flex-wrap items-center gap-x-3 gap-y-2"},wA={class:"ml-auto flex flex-wrap items-center gap-1.5"},xA=["value"],_A={key:1,class:"min-h-0 flex-1 overflow-y-auto"},IA={class:"min-w-0 flex-1 truncate font-medium"},MA={class:"shrink-0 font-mono text-xs text-muted-foreground"},EA={class:"shrink-0 text-xs text-muted-foreground"},DA={class:"shrink-0 text-xs text-muted-foreground"},ZA={key:0,class:"mt-2 whitespace-pre-wrap pl-5 text-sm text-muted-foreground"},FA={key:2,class:"min-h-0 flex-1 overflow-y-auto"},BA={class:"divide-y"},SA={class:"flex cursor-pointer items-center gap-2 text-sm"},RA={class:"font-medium"},QA={class:"min-w-0 flex-1 truncate text-muted-foreground"},NA={class:"flex cursor-pointer items-center gap-2 text-sm"},KA={class:"font-medium"},GA={class:"min-w-0 flex-1 truncate text-muted-foreground"},OA={class:"space-y-2"},$A={class:"space-y-2"},WA={class:"space-y-2"},LA={class:"space-y-1.5 text-sm"},PA=["onClick"],TA={class:"font-mono text-xs"},HA={key:3,class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[18rem_1fr]"},YA={class:"min-h-0 flex-1 overflow-y-auto py-1"},VA=["onClick"],UA=["title"],JA={class:"shrink-0 text-[10px] uppercase text-muted-foreground"},zA={class:"min-h-0 overflow-y-auto"},jA={class:"mb-2 flex flex-wrap items-center gap-2"},XA={class:"break-all font-mono text-sm"},qA=1500,P7={__name:"Reviews",setup(e){const t=u5(),n=ve(),l=Ut(),{repositories:o,chosen:r,error:s,mixed:a,fetchRepositories:i}=v3({all:!0}),c=j(!1),d=j(!1),u=j(null),A=j(null),p=j(!1),m=j(""),k=j([]),D=j(""),F=j([]),C=j([]),I=j("overview"),v=t1(()=>{var N;return((N=u.value)==null?void 0:N.changed)??[]}),S=t1(()=>String(t.params.id??"")),L=t1(()=>F.value.filter(N=>!k.value.includes(N.id))),Z=t1(()=>Object.fromEntries(F.value.map(N=>[N.id,N]))),_=N=>{var O;return((O=Z.value[N])==null?void 0:O.name)??N},R=N=>{var O;return(O=m1.value.find(d1=>d1.skill===N))==null?void 0:O.passed};function B(N){k.value=k.value.filter(O=>O!==N)}function q(N){N&&!k.value.includes(N)&&(k.value=[...k.value,N]),D.value=""}const V=t1(()=>{var N;return((N=u.value)==null?void 0:N.where)??null}),m1=t1(()=>{var N;return((N=u.value)==null?void 0:N.verdicts)??[]}),y1=t1(()=>m1.value.flatMap(N=>N.findings.map(O=>({...O,skill:N.skill})))),l1=t1(()=>y1.value.filter(N=>N.severity==="blocking")),o1=t1(()=>y1.value.filter(N=>N.severity!=="blocking")),v1=t1(()=>{const N={};for(const O of y1.value)O.path&&(N[O.path]=(N[O.path]??0)+(O.severity==="blocking"?10:1));for(const O of V1.value)N[O.path]=(N[O.path]??0)+1;return N}),C1=t1(()=>[...v.value].sort((N,O)=>(v1.value[O.path]??0)-(v1.value[N.path]??0))),k1=t1(()=>v.value.find(N=>N.path===m.value)??C1.value[0]??null),s1=t1(()=>y1.value.filter(N=>!N.path)),O1=t1(()=>{var N;return((N=u.value)==null?void 0:N.review)??null}),F1=t1(()=>{var N;return((N=O1.value)==null?void 0:N.summary)??null}),V1=t1(()=>{var N;return((N=O1.value)==null?void 0:N.suggestions)??[]}),e2=t1(()=>m1.value.filter(N=>!N.passed)),a1=t1(()=>{var N;return((N=u.value)==null?void 0:N.commits)??[]}),h1=t1(()=>{var N,O;return!!((N=F1.value)!=null&&N.overview)||e2.value.length>0||s1.value.length>0||V1.value.length>0||Object.keys(((O=O1.value)==null?void 0:O.notes)??{}).length>0}),$=t1(()=>{const N=[{id:"overview",label:"Overview"},{id:"details",label:`Files${v.value.length?` ${v.value.length}`:""}`}];return N.push({id:"commits",label:`Commits${a1.value.length?` ${a1.value.length}`:""}`}),N}),z={APPROVE:{label:"Approved",tone:"success"},REQUEST_CHANGES:{label:"Changes requested",tone:"danger"},COMMENT:{label:"Commented",tone:"warning"}},K=t1(()=>{var O;if(l1.value.length)return{label:"Changes requested",tone:"danger",count:l1.value.length};const N=(O=O1.value)==null?void 0:O.verdict;return N&&z[N]?{...z[N],count:V1.value.length||null}:!m1.value.length&&!O1.value?{label:"Not reviewed",tone:"neutral",count:null}:{label:"Commented",tone:"warning",count:o1.value.length||null}}),f1={success:gu,danger:N7,warning:Cu,neutral:Pe},x1=t1(()=>u.value?f1[K.value.tone]:Pe),g={BUG:"danger",SECURITY:"danger",PERFORMANCE:"warning",REFACTOR:"info",STYLE:"neutral",CLARITY:"neutral",TEST:"info",DOCUMENTATION:"neutral"},b=N=>g[String(N||"").toUpperCase()]??"info",E=N=>[...y1.value.filter(O=>O.path===N).map(O=>({...O,from:O.skill,tone:O.severity==="blocking"?"danger":"warning"})),...V1.value.filter(O=>O.path===N).map(O=>({line:O.start_line,severity:"suggestion",detail:O.comment,code:O.suggested_code,replacing:O.existing_code,from:O.category||"review",tone:b(O.category)}))];async function P(N){N&&(r.value=N,await Promise.all([r1(),Y()]))}async function Y(){try{C.value=await Z1.reviews(r.value)}catch{C.value=[]}}async function T(){try{const N=await Z1.settings(),O=N.find(H=>H.key==="model.name"),d1=N.find(H=>H.key==="model.api_key");p.value=!!(O!=null&&O.value)&&!!(d1!=null&&d1.is_set)}catch{p.value=!1}}async function r1(){try{F.value=(await Z1.skills(r.value)).skills}catch{F.value=[]}}let e1=null;function X(){e1&&clearTimeout(e1),e1=null}async function J(N){X();const O=N?d:c;O.value=!0,s.value="";try{const d1=await Z1.startReview(r.value,{useModel:N,skills:[...k.value]});n.replace(`/reviews/${d1.id}`),await p1(d1.id,N)}catch(d1){s.value=d1.message,O.value=!1}}async function p1(N,O=!0){const d1=O?d:c;let H;try{H=await Z1.reviewed(N)}catch(M1){s.value=M1.message,d1.value=!1;return}if(A.value=H,H.status==="running"){d1.value=!0,e1=setTimeout(()=>p1(N,O),qA);return}if(d1.value=!1,H.status==="failed"){s.value=H.error;return}H.repository&&H.repository!==r.value&&(r.value=H.repository),u.value=H.review,m.value="",I.value="overview",Y(),H.repository&&(r.value=H.repository),k.value=(H.review.skills??[]).map(M1=>M1.id)}return q1(r,()=>{X(),r1(),Y()}),q1(S,N=>{if(X(),!N){u.value=null,A.value=null,Y();return}p1(N)}),ge(X),d2(async()=>{await i(),await Promise.all([T(),r1(),Y()]),S.value&&await p1(S.value)}),(N,O)=>{var d1;return h(),w("div",pA,[M(f(g3),{pillar:"review",title:V.value?`${V.value.branch||"no branch"} → ${V.value.against}`:"Reviews",sub:V.value?V.value.path:"Your work read here, before anybody else is asked to read it.",mono:!!V.value,tone:u.value?K.value.tone:void 0},i6({icon:x(()=>[(h(),G(k2(x1.value),{class:"h-6 w-6"}))]),actions:x(()=>[f(o).length>1?(h(),G(f(X2),{key:0,modelValue:f(r),"onUpdate:modelValue":O[1]||(O[1]=H=>n2(r)?r.value=H:null),size:"sm","aria-label":"Repository"},{default:x(()=>[y("option",{value:f(Vt)},"All repositories",8,gA),(h(!0),w(n1,null,_1(f(o),H=>(h(),w("option",{key:H.name,value:H.name},Q(H.name),9,vA))),128))]),_:1},8,["modelValue"])):W("",!0),f(o).length&&f(r)?(h(),G(f(b1),{key:1,size:"sm",variant:"outline",disabled:c.value,onClick:O[2]||(O[2]=H=>J(!1))},{default:x(()=>[c.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(h5),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(c.value?"Reading…":"Read what changed"),1)]),_:1},8,["disabled"])):W("",!0),f(o).length&&p.value&&f(r)?(h(),G(f(b1),{key:2,size:"sm",variant:"glow",disabled:d.value,onClick:O[3]||(O[3]=H=>J(!0))},{default:x(()=>[d.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(Mn),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(d.value?"Reviewing…":"Review it"),1)]),_:1},8,["disabled"])):f(o).length&&p.value?(h(),G(f(X2),{key:3,"model-value":"",size:"sm","aria-label":"Choose a repository to review","onUpdate:modelValue":P},{default:x(()=>[O[5]||(O[5]=y("option",{value:""},"Choose a repository…",-1)),(h(!0),w(n1,null,_1(f(o),H=>(h(),w("option",{key:H.name,value:H.name},Q(H.name),9,yA))),128))]),_:1})):W("",!0)]),_:2},[S.value?{name:"back",fn:x(()=>[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to reviews",onClick:O[0]||(O[0]=H=>f(l)("/reviews"))},{default:x(()=>[M(f(Yt),{class:"h-4 w-4"})]),_:1})]),key:"0"}:void 0,u.value?{name:"meta",fn:x(()=>[M(f(gn),{label:K.value.label,tone:K.value.tone,count:K.value.count},null,8,["label","tone","count"]),V.value?(h(),w("span",mA,Q(V.value.commits)+" commit"+Q(V.value.commits===1?"":"s")+" ahead",1)):W("",!0),y("span",null,Q(v.value.length)+" file"+Q(v.value.length===1?"":"s"),1)]),key:"1"}:void 0]),1032,["title","sub","mono","tone"]),f(s)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(s)),1)]),_:1})):W("",!0),f(o).length===0?(h(),G(h4,{key:1})):(h(),w(n1,{key:2},[!p.value&&f(r)?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...O[6]||(O[6]=[U(" No model is configured, so nothing here can be judged. Reading what changed needs nothing. Choose a model in Settings to have the work read against your skills. ",-1)])]),_:1})):W("",!0),u.value?(h(),w(n1,{key:2},[y("div",CA,[M(f(ye),{modelValue:I.value,"onUpdate:modelValue":O[4]||(O[4]=H=>I.value=H),tabs:$.value,label:"What to look at",class:"w-fit"},null,8,["modelValue","tabs"]),y("div",wA,[O[11]||(O[11]=y("span",{class:"text-xs uppercase tracking-wider text-muted-foreground"}," Skills applied ",-1)),(h(!0),w(n1,null,_1(k.value,H=>(h(),G(f(d7),{key:H,label:_(H),tone:R(H)===void 0?"default":R(H)?"success":"danger",removable:"",onRemove:M1=>B(H)},{default:x(()=>[U(Q(_(H)),1)]),_:2},1032,["label","tone","onRemove"]))),128)),k.value.length?W("",!0):(h(),G(f(d7),{key:0,tone:"muted"},{default:x(()=>[...O[9]||(O[9]=[U("Whatever applies",-1)])]),_:1})),L.value.length?(h(),G(f(X2),{key:1,"model-value":D.value,size:"sm","aria-label":"Add a skill","onUpdate:modelValue":q},{default:x(()=>[O[10]||(O[10]=y("option",{value:""},"Add…",-1)),(h(!0),w(n1,null,_1(L.value,H=>(h(),w("option",{key:H.id,value:H.id},Q(H.name),9,xA))),128))]),_:1},8,["model-value"])):W("",!0)])]),u.value.note&&!O1.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-3"},{default:x(()=>[U(Q(u.value.note),1)]),_:1})):W("",!0),I.value==="commits"?(h(),w("div",_A,[a1.value.length?(h(),G(f(z1),{key:1,class:"divide-y px-4 py-1"},{default:x(()=>[(h(!0),w(n1,null,_1(a1.value,H=>(h(),w("div",{key:H.sha,class:"py-2.5"},[(h(),G(k2(H.body?"details":"div"),{class:i1(H.body&&"group")},{default:x(()=>[(h(),G(k2(H.body?"summary":"div"),{class:i1(["flex items-baseline gap-2 text-sm",H.body&&"cursor-pointer list-none"])},{default:x(()=>[M(f(bu),{class:"h-3.5 w-3.5 shrink-0 self-center text-muted-foreground"}),y("span",IA,Q(H.subject),1),y("span",MA,Q(H.sha.slice(0,8)),1),y("span",EA,Q(H.author),1),y("span",DA,Q(f(vt)(H.at)),1)]),_:2},1032,["class"])),H.body?(h(),w("p",ZA,Q(H.body),1)):W("",!0)]),_:2},1032,["class"]))]))),128))]),_:1})):(h(),G(f(Le),{key:0,title:"Nothing committed on this branch",compact:""},{default:x(()=>[...O[12]||(O[12]=[U(" Everything here is uncommitted work, which is in the diff rather than in a commit. ",-1)])]),_:1}))])):I.value==="overview"?(h(),w("div",FA,[h1.value?(h(),G(f(z1),{key:1,class:"divide-y px-5 py-1"},{default:x(()=>{var H,M1,B1,U1,t2,C2,w2,y3;return[(H=F1.value)!=null&&H.overview?(h(),G(f(O3),{key:0,title:"What this change does",tone:"info"},{icon:x(()=>[M(f(K7),{class:"h-4 w-4"})]),default:x(()=>[M(f(R2),{source:F1.value.overview},null,8,["source"])]),_:1})):W("",!0),e2.value.length||s1.value.length?(h(),G(f(O3),{key:1,title:"Against what this team wrote down",tone:"warning",count:e2.value.length+s1.value.length,collapsible:"",closed:""},{icon:x(()=>[M(f(_u),{class:"h-4 w-4"})]),default:x(()=>[y("ul",BA,[(h(!0),w(n1,null,_1(e2.value,S1=>(h(),w("li",{key:S1.skill,class:"py-2 first:pt-0"},[y("details",null,[y("summary",SA,[M(f(We),{tone:"danger",title:`${S1.skill} is not met`},null,8,["title"]),y("span",RA,Q(S1.skill),1),y("span",QA,Q((S1.note||"").split(` +`)[0]),1)]),S1.note?(h(),G(f(R2),{key:0,source:S1.note,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])):W("",!0)])]))),128)),(h(!0),w(n1,null,_1(s1.value,(S1,P1)=>(h(),w("li",{key:`o${P1}`,class:"py-2 first:pt-0"},[y("details",null,[y("summary",NA,[M(f(We),{tone:S1.severity==="blocking"?"danger":"warning",title:S1.skill||"A skill"},null,8,["tone","title"]),y("span",KA,Q(S1.skill),1),y("span",GA,Q((S1.detail||"").split(` +`)[0]),1)]),M(f(R2),{source:S1.detail,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])])]))),128))])]),_:1},8,["count"])):W("",!0),(B1=(M1=F1.value)==null?void 0:M1.critical_issues)!=null&&B1.length?(h(),G(f(O3),{key:2,title:"Worth stopping for",tone:"danger",count:F1.value.critical_issues.length,collapsible:""},{icon:x(()=>[M(f(N7),{class:"h-4 w-4"})]),default:x(()=>[y("ul",OA,[(h(!0),w(n1,null,_1(F1.value.critical_issues,(S1,P1)=>(h(),w("li",{key:P1},[M(f(R2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):W("",!0),(t2=(U1=F1.value)==null?void 0:U1.key_improvements)!=null&&t2.length?(h(),G(f(O3),{key:3,title:"Worth changing",tone:"warning",count:F1.value.key_improvements.length,collapsible:""},{icon:x(()=>[M(f(Y4),{class:"h-4 w-4"})]),default:x(()=>[y("ul",$A,[(h(!0),w(n1,null,_1(F1.value.key_improvements,(S1,P1)=>(h(),w("li",{key:P1},[M(f(R2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):W("",!0),(w2=(C2=F1.value)==null?void 0:C2.minor_suggestions)!=null&&w2.length?(h(),G(f(O3),{key:4,title:"Nice to have",count:F1.value.minor_suggestions.length,collapsible:"",closed:""},{icon:x(()=>[M(f(mt),{class:"h-4 w-4"})]),default:x(()=>[y("ul",WA,[(h(!0),w(n1,null,_1(F1.value.minor_suggestions,(S1,P1)=>(h(),w("li",{key:P1},[M(f(R2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):W("",!0),V1.value.length?(h(),G(f(O3),{key:5,title:"Suggestions",tone:"info",count:V1.value.length,collapsible:""},{icon:x(()=>[M(f(pu),{class:"h-4 w-4"})]),default:x(()=>[O[13]||(O[13]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," Each one is drawn against the line it is about, under Files. ",-1)),y("ul",LA,[(h(!0),w(n1,null,_1(V1.value,(S1,P1)=>(h(),w("li",{key:P1,class:"flex gap-2"},[S1.category?(h(),G(f(We),{key:0,tone:b(S1.category),title:S1.category,label:S1.category.toLowerCase(),class:"mt-0.5 shrink-0"},null,8,["tone","title","label"])):W("",!0),y("button",{type:"button",class:"min-w-0 text-left hover:underline",onClick:F2=>{m.value=S1.path,I.value="details"}},[y("span",TA,Q(S1.path)+":"+Q(S1.start_line),1),M(f(R2),{source:S1.comment,class:"text-muted-foreground"},null,8,["source"])],8,PA)]))),128))])]),_:1},8,["count"])):W("",!0),(h(!0),w(n1,null,_1(((y3=O1.value)==null?void 0:y3.notes)??{},(S1,P1)=>(h(),G(f(O3),{key:P1,title:String(P1).replace(/_/g," "),collapsible:"",closed:"",class:"capitalize"},{icon:x(()=>[M(f(K7),{class:"h-4 w-4"})]),default:x(()=>[M(f(R2),{source:S1,class:"normal-case"},null,8,["source"])]),_:2},1032,["title"]))),128))]}),_:1})):(h(),G(f(Le),{key:0,title:"Read, not judged",compact:""},{default:x(()=>[U(Q(u.value.note||"Ask for a review to have it read properly."),1)]),_:1}))])):(h(),w("div",HA,[M(f(z1),{class:"flex min-h-0 flex-col overflow-hidden"},{default:x(()=>[O[14]||(O[14]=y("div",{class:"border-b px-3 py-2 text-xs uppercase tracking-wider text-muted-foreground"}," Changed ",-1)),y("ul",YA,[(h(!0),w(n1,null,_1(C1.value,H=>{var M1;return h(),w("li",{key:H.path},[y("button",{type:"button",class:i1(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition-colors",((M1=k1.value)==null?void 0:M1.path)===H.path?"bg-primary/10 text-primary":"hover:bg-muted"]),onClick:B1=>m.value=H.path},[y("span",{class:"min-w-0 flex-1 truncate font-mono text-xs",title:H.path},Q(H.path),9,UA),E(H.path).length?(h(),G(f(c2),{key:0,variant:v1.value[H.path]>=10?"destructive":"secondary"},{default:x(()=>[U(Q(E(H.path).length),1)]),_:2},1032,["variant"])):W("",!0),y("span",JA,Q(H.change.slice(0,3)),1)],10,VA)])}),128))])]),_:1}),y("div",zA,[k1.value?(h(),w(n1,{key:0},[y("div",jA,[y("span",XA,Q(k1.value.path),1),M(f(c2),{variant:"secondary"},{default:x(()=>[U(Q(k1.value.change),1)]),_:1})]),M(f(Y9),{patch:k1.value.patch,notes:E(k1.value.path)},null,8,["patch","notes"])],64)):(h(),G(f(z1),{key:1,class:"p-10 text-center text-sm text-muted-foreground"},{default:x(()=>[...O[15]||(O[15]=[U(" Nothing has changed in this checkout. ",-1)])]),_:1}))])]))],64)):(h(),w(n1,{key:1},[((d1=A.value)==null?void 0:d1.status)==="running"?(h(),G(f(vn),{key:0,label:"Reading it",note:"This keeps going whether or not anybody is watching, and the link to it keeps working."})):(h(),w(n1,{key:1},[C.value.length?W("",!0):(h(),G(f(Le),{key:0,title:"Nothing read here yet"},i6({icon:x(()=>[M(f(Pe),{class:"h-8 w-8"})]),default:x(()=>[O[7]||(O[7]=U(" Everything comes off the checkout, so work you have not pushed, or not committed, still gets a review. ",-1))]),_:2},[f(r)?void 0:{name:"actions",fn:x(()=>[(h(!0),w(n1,null,_1(f(o),H=>(h(),G(f(b1),{key:H.name,size:"sm",variant:"outline",onClick:M1=>P(H.name)},{default:x(()=>[M(f(i4),{class:"mr-2 h-4 w-4"}),U(" "+Q(H.name),1)]),_:2},1032,["onClick"]))),128))]),key:"0"}]),1024)),C.value.length?(h(),w(n1,{key:1},[O[8]||(O[8]=y("p",{class:"mb-2 text-xs uppercase tracking-wider text-muted-foreground"},"Earlier",-1)),y("div",bA,[(h(!0),w(n1,null,_1(C.value,H=>(h(),G(f(z3),{key:H.id,title:H.title||H.repository,subtitle:H.id,pillar:"review",hover:"",class:"cursor-pointer",onClick:M1=>f(n).push(`/reviews/${H.id}`)},{icon:x(()=>[M(f(vu),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:H.status==="done"?"success":H.status==="failed"?"destructive":"secondary"},{default:x(()=>[U(Q(H.status),1)]),_:2},1032,["variant"])]),meta:x(()=>[y("span",null,Q(f(vt)(H.started)),1),f(a)?(h(),G(f(yn),{key:0,name:H.repository},{icon:x(()=>[M(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):(h(),w("span",kA,Q(H.repository),1))]),_:2},1032,["title","subtitle","onClick"]))),128))])],64)):W("",!0)],64))],64))],64))])}}},eh={class:"flex h-full min-h-0 flex-col"},th={key:0,class:"text-xs text-success"},nh={key:2,class:"py-10 text-center text-sm text-muted-foreground"},lh=["value"],oh={class:"flex flex-wrap gap-1.5"},rh={class:"mt-2 text-xs text-muted-foreground"},sh={class:"mb-2 flex items-center justify-between gap-3"},ah={class:"text-xs text-muted-foreground"},ih={class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-2"},ch={key:1,class:"text-sm text-muted-foreground"},uh="new",M4="repository",T2="global",dh={__name:"Skill",setup(e){const t=[M4,T2],n=u5(),l=ve(),o=Ut(),{repositories:r,chosen:s,fetchRepositories:a}=v3(),i=t1(()=>String(n.params.id??"")),c=t1(()=>i.value===uh),d=j(null),u=j({id:"",name:"",description:"",body:"",paths:[],reviews:null}),A=j(T2),p=j("write"),m=j(!1),k=j(!1),D=j(""),F=j(!0),C=[{id:"write",label:"Write"},{id:"preview",label:"Preview"}],I=[{id:null,label:"When it looks relevant"},{id:!0,label:"Always"},{id:!1,label:"Never"}],v=t1(()=>u.value.reviews===!0?"Read against every change here.":u.value.reviews===!1?"Left out of reviews entirely.":"Picked when what it says matches what a change touches."),S=t1(()=>Z.value?"Kept on this machine and read for every repository you work in.":`Kept on this machine and read for ${A.value}. Nothing is written into the checkout.`),L=t1(()=>[{id:T2,label:"Everywhere"},...r.value.map(l1=>({id:l1.name,label:l1.name}))]),Z=t1(()=>A.value===T2),_=t1(()=>!!d.value&&!t.includes(d.value.origin)),R=t1(()=>_.value),B=t1(()=>c.value?!!(u.value.id||u.value.description||u.value.body):d.value?u.value.name!==d.value.name||u.value.description!==d.value.description||u.value.body!==(d.value.body??"")||u.value.paths.join(` `)!==(d.value.paths??[]).join(` -`)||u.value.reviews!==d.value.reviews:!1),X=t1(()=>u.value.body?u.value.body.split(` -`).length:0);async function Y(){if(F.value=!0,k.value="",c.value){d.value=null,u.value={id:"",name:"",description:"",body:"",paths:[],reviews:null},A.value=n.query.for||s.value||P2,F.value=!1;return}try{const r1=await B1.skill(i.value,s.value);d.value=r1,A.value=r1.origin===E4?s.value:r1.origin===P2?P2:s.value||P2,u.value={id:r1.id.split("/").pop(),name:r1.name,description:r1.description,body:r1.body??"",paths:[...r1.paths??[]],reviews:r1.reviews}}catch(r1){k.value=r1.message}finally{F.value=!1}}async function m1(){p.value=!0,y.value=!1,k.value="";try{const r1=await B1.recordSkill({scope:D.value?P2:E4,repository:D.value?"":A.value,id:u.value.id||u.value.name,name:u.value.name||u.value.id,description:u.value.description,body:u.value.body,paths:u.value.paths,reviews:u.value.reviews});y.value=!0,c.value||r1.id!==i.value?l.replace(`/skills/${r1.id}`):await Y()}catch(r1){k.value=r1.message}finally{p.value=!1}}async function w1(){const r1=D.value?"everywhere":A.value;if(confirm(`Forget ${u.value.name}? +`)||u.value.reviews!==d.value.reviews:!1),q=t1(()=>u.value.body?u.value.body.split(` +`).length:0);async function V(){if(F.value=!0,D.value="",c.value){d.value=null,u.value={id:"",name:"",description:"",body:"",paths:[],reviews:null},A.value=n.query.for||s.value||T2,F.value=!1;return}try{const l1=await Z1.skill(i.value,s.value);d.value=l1,A.value=l1.origin===M4?s.value:l1.origin===T2?T2:s.value||T2,u.value={id:l1.id.split("/").pop(),name:l1.name,description:l1.description,body:l1.body??"",paths:[...l1.paths??[]],reviews:l1.reviews}}catch(l1){D.value=l1.message}finally{F.value=!1}}async function m1(){m.value=!0,k.value=!1,D.value="";try{const l1=await Z1.recordSkill({scope:Z.value?T2:M4,repository:Z.value?"":A.value,id:u.value.id||u.value.name,name:u.value.name||u.value.id,description:u.value.description,body:u.value.body,paths:u.value.paths,reviews:u.value.reviews});k.value=!0,c.value||l1.id!==i.value?l.replace(`/skills/${l1.id}`):await V()}catch(l1){D.value=l1.message}finally{m.value=!1}}async function y1(){const l1=Z.value?"everywhere":A.value;if(confirm(`Forget ${u.value.name}? -It stops being read for ${r1}.`))try{await B1.forgetSkill(D.value?"":A.value,D.value?P2:E4,i.value),l.push("/skills")}catch(l1){k.value=l1.message}}return t2(i,Y),d2(async()=>{await a(),await Y()}),(r1,l1)=>{var b1,y1;return h(),C("div",JA,[I(f(m3),{pillar:"review",title:c.value?"A new skill":u.value.name||i.value,sub:((b1=d.value)==null?void 0:b1.path)||R.value,mono:!!((y1=d.value)!=null&&y1.path)},{back:w(()=>[I(f(C1),{variant:"ghost",size:"icon","aria-label":"Back to skills",onClick:l1[0]||(l1[0]=k1=>f(o)("/skills"))},{default:w(()=>[I(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:w(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:w(()=>[d.value?(h(),G(f(c2),{key:0,variant:x.value?"outline":"success"},{default:w(()=>[U(N(x.value?d.value.origin:D.value?"everywhere":A.value),1)]),_:1},8,["variant"])):P("",!0)]),actions:w(()=>[y.value&&!B.value?(h(),C("span",zA,"Saved.")):P("",!0),d.value&&!x.value?(h(),G(f(C1),{key:1,variant:"ghost",size:"icon","aria-label":"Forget this skill",onClick:w1},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1})):P("",!0),I(f(C1),{size:"sm",disabled:p.value||!B.value,onClick:m1},{default:w(()=>[p.value?(h(),G(f(M2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(k2(Q.value?f(pt):f(he)),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+N(Q.value?"Save your own copy":"Save"),1)]),_:1},8,["disabled"])]),_:1},8,["title","sub","mono"]),Q.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:w(()=>[...l1[7]||(l1[7]=[U(" This one is not ours to change: it belongs to your coding agent, or your team committed it to the repository. Saving keeps a copy of our own, for whatever you choose below, and the copy is then the one that gets used. ",-1)])]),_:1})):P("",!0),k.value?(h(),G(f(u2),{key:1,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(k.value),1)]),_:1})):P("",!0),F.value?(h(),C("p",jA,"Reading it.")):(h(),C(n1,{key:3},[I(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-3"},{default:w(()=>[I(f(R2),{label:"Name",for:"skill-id",hint:"Lower case words joined by hyphens. It names the folder the skill is saved in."},{default:w(()=>[I(f(J3),{id:"skill-id",modelValue:u.value.id,"onUpdate:modelValue":l1[1]||(l1[1]=k1=>u.value.id=k1),readonly:!!d.value&&!x.value,placeholder:"retry-limit"},null,8,["modelValue","readonly"])]),_:1}),I(f(R2),{label:"Used for",for:"skill-belongs",hint:D.value?"Read for every repository you work in.":"Read only when reviewing that repository."},{default:w(()=>[I(f(j2),{id:"skill-belongs",modelValue:A.value,"onUpdate:modelValue":l1[2]||(l1[2]=k1=>A.value=k1),disabled:!!d.value&&!x.value,class:"w-full"},{default:w(()=>[(h(!0),C(n1,null,_1($.value,k1=>(h(),C("option",{key:k1.id,value:k1.id},N(k1.label),9,XA))),128))]),_:1},8,["modelValue","disabled"])]),_:1},8,["hint"]),I(f(R2),{label:"When it applies",for:"skill-description",hint:"One sentence. It decides whether a change gets read against this skill."},{default:w(()=>[I(f(J3),{id:"skill-description",modelValue:u.value.description,"onUpdate:modelValue":l1[3]||(l1[3]=k1=>u.value.description=k1),placeholder:"Use when a change adds or edits a database migration."},null,8,["modelValue"])]),_:1})]),_:1}),I(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-2"},{default:w(()=>[I(f(R2),{label:"Files it is about",for:"skill-paths",hint:`Globs, one to a line. Named here, a change is read against this only when it - touches one of them, whatever the wording says. Left empty, the wording decides.`},{default:w(()=>[I(f(O0),{modelValue:u.value.paths,"onUpdate:modelValue":l1[4]||(l1[4]=k1=>u.value.paths=k1),mono:"",size:"sm",noun:"a pattern",placeholder:"db/migrations/**"},null,8,["modelValue"])]),_:1}),I(f(R2),{label:"Use in reviews",hint:"Not everything you teach an agent is about judging a change."},{default:w(()=>[b("div",qA,[(h(),C(n1,null,_1(E,k1=>I(f(C1),{key:String(k1.id),size:"sm",variant:u.value.reviews===k1.id?"default":"outline",onClick:c1=>u.value.reviews=k1.id},{default:w(()=>[U(N(k1.label),1)]),_:2},1032,["variant","onClick"])),64))]),b("p",eh,N(_.value),1)]),_:1})]),_:1}),b("div",th,[I(f(ge),{modelValue:m.value,"onUpdate:modelValue":l1[5]||(l1[5]=k1=>m.value=k1),tabs:M,label:"Write or preview",class:"lg:hidden"},null,8,["modelValue"]),l1[8]||(l1[8]=b("p",{class:"hidden text-xs uppercase tracking-wider text-muted-foreground lg:block"}," What it says ",-1)),b("p",nh,N(X.value)+" line"+N(X.value===1?"":"s")+" · markdown ",1)]),b("div",lh,[I(f(dt),{modelValue:u.value.body,"onUpdate:modelValue":l1[6]||(l1[6]=k1=>u.value.body=k1),class:f1(["h-full min-h-[24rem] resize-none font-mono leading-relaxed",m.value==="write"?"":"hidden lg:block"]),placeholder:"Never edit a migration that has already run. Add a new one instead.","aria-label":"What the skill says"},null,8,["modelValue","class"]),I(f(z1),{class:f1(["h-full min-h-[24rem] overflow-auto p-5",m.value==="preview"?"":"hidden lg:block"])},{default:w(()=>[u.value.body?(h(),G(f(B2),{key:0,source:u.value.body},null,8,["source"])):(h(),C("p",oh," Nothing written yet. What appears here is what a person reads, and what a model is given when your work is checked against this skill. "))]),_:1},8,["class"])])],64))])}}},ah=["value"],ih={class:"relative"},ch={key:0,class:"space-y-3"},uh={class:"text-sm text-muted-foreground"},dh={key:0,class:"text-success"},fh={key:1},Ah={key:2},hh={key:3,class:"font-mono"},De="repository",ee="global",ph={__name:"Skills",setup(e){const t=[De,ee],n=me(),{repositories:l,chosen:o,error:r,fetchRepositories:s}=g3(),a=z([]),i=z(""),c=z("all"),d=[{id:"all",label:"All"},{id:De,label:"This repository"},{id:ee,label:"Everywhere"},{id:"agents",label:"Your coding agents"}],u=t1(()=>{const k=i.value.trim().toLowerCase();return a.value.filter(F=>c.value===De&&F.origin!==De||c.value===ee&&F.origin!==ee||c.value==="agents"&&t.includes(F.origin)?!1:k?F.name.toLowerCase().includes(k)||F.description.toLowerCase().includes(k):!0)}),A=k=>t.includes(k.origin),m=k=>k.origin===ee?"everywhere":k.origin===De?o.value:k.origin;async function p(){try{const k=await B1.skills(o.value);a.value=k.skills,r.value=""}catch(k){a.value=[],r.value=k.message}}async function y(k){if(confirm(`Forget ${k.name}? +It stops being read for ${l1}.`))try{await Z1.forgetSkill(Z.value?"":A.value,Z.value?T2:M4,i.value),l.push("/skills")}catch(o1){D.value=o1.message}}return q1(i,V),d2(async()=>{await a(),await V()}),(l1,o1)=>{var v1,C1;return h(),w("div",eh,[M(f(g3),{pillar:"review",title:c.value?"A new skill":u.value.name||i.value,sub:((v1=d.value)==null?void 0:v1.path)||S.value,mono:!!((C1=d.value)!=null&&C1.path)},{back:x(()=>[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to skills",onClick:o1[0]||(o1[0]=k1=>f(o)("/skills"))},{default:x(()=>[M(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[M(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[d.value?(h(),G(f(c2),{key:0,variant:_.value?"outline":"success"},{default:x(()=>[U(Q(_.value?d.value.origin:Z.value?"everywhere":A.value),1)]),_:1},8,["variant"])):W("",!0)]),actions:x(()=>[k.value&&!B.value?(h(),w("span",th,"Saved.")):W("",!0),d.value&&!_.value?(h(),G(f(b1),{key:1,variant:"ghost",size:"icon","aria-label":"Forget this skill",onClick:y1},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1})):W("",!0),M(f(b1),{size:"sm",disabled:m.value||!B.value,onClick:m1},{default:x(()=>[m.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(k2(R.value?f(ht):f(pe)),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(R.value?"Save your own copy":"Save"),1)]),_:1},8,["disabled"])]),_:1},8,["title","sub","mono"]),R.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...o1[7]||(o1[7]=[U(" This one is not ours to change: it belongs to your coding agent, or your team committed it to the repository. Saving keeps a copy of our own, for whatever you choose below, and the copy is then the one that gets used. ",-1)])]),_:1})):W("",!0),D.value?(h(),G(f(u2),{key:1,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(D.value),1)]),_:1})):W("",!0),F.value?(h(),w("p",nh,"Reading it.")):(h(),w(n1,{key:3},[M(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-3"},{default:x(()=>[M(f(Q2),{label:"Name",for:"skill-id",hint:"Lower case words joined by hyphens. It names the folder the skill is saved in."},{default:x(()=>[M(f(J3),{id:"skill-id",modelValue:u.value.id,"onUpdate:modelValue":o1[1]||(o1[1]=k1=>u.value.id=k1),readonly:!!d.value&&!_.value,placeholder:"retry-limit"},null,8,["modelValue","readonly"])]),_:1}),M(f(Q2),{label:"Used for",for:"skill-belongs",hint:Z.value?"Read for every repository you work in.":"Read only when reviewing that repository."},{default:x(()=>[M(f(X2),{id:"skill-belongs",modelValue:A.value,"onUpdate:modelValue":o1[2]||(o1[2]=k1=>A.value=k1),disabled:!!d.value&&!_.value,class:"w-full"},{default:x(()=>[(h(!0),w(n1,null,_1(L.value,k1=>(h(),w("option",{key:k1.id,value:k1.id},Q(k1.label),9,lh))),128))]),_:1},8,["modelValue","disabled"])]),_:1},8,["hint"]),M(f(Q2),{label:"When it applies",for:"skill-description",hint:"One sentence. It decides whether a change gets read against this skill."},{default:x(()=>[M(f(J3),{id:"skill-description",modelValue:u.value.description,"onUpdate:modelValue":o1[3]||(o1[3]=k1=>u.value.description=k1),placeholder:"Use when a change adds or edits a database migration."},null,8,["modelValue"])]),_:1})]),_:1}),M(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-2"},{default:x(()=>[M(f(Q2),{label:"Files it is about",for:"skill-paths",hint:`Globs, one to a line. Named here, a change is read against this only when it + touches one of them, whatever the wording says. Left empty, the wording decides.`},{default:x(()=>[M(f($0),{modelValue:u.value.paths,"onUpdate:modelValue":o1[4]||(o1[4]=k1=>u.value.paths=k1),mono:"",size:"sm",noun:"a pattern",placeholder:"db/migrations/**"},null,8,["modelValue"])]),_:1}),M(f(Q2),{label:"Use in reviews",hint:"Not everything you teach an agent is about judging a change."},{default:x(()=>[y("div",oh,[(h(),w(n1,null,_1(I,k1=>M(f(b1),{key:String(k1.id),size:"sm",variant:u.value.reviews===k1.id?"default":"outline",onClick:s1=>u.value.reviews=k1.id},{default:x(()=>[U(Q(k1.label),1)]),_:2},1032,["variant","onClick"])),64))]),y("p",rh,Q(v.value),1)]),_:1})]),_:1}),y("div",sh,[M(f(ye),{modelValue:p.value,"onUpdate:modelValue":o1[5]||(o1[5]=k1=>p.value=k1),tabs:C,label:"Write or preview",class:"lg:hidden"},null,8,["modelValue"]),o1[8]||(o1[8]=y("p",{class:"hidden text-xs uppercase tracking-wider text-muted-foreground lg:block"}," What it says ",-1)),y("p",ah,Q(q.value)+" line"+Q(q.value===1?"":"s")+" · markdown ",1)]),y("div",ih,[M(f(ut),{modelValue:u.value.body,"onUpdate:modelValue":o1[6]||(o1[6]=k1=>u.value.body=k1),class:i1(["h-full min-h-[24rem] resize-none font-mono leading-relaxed",p.value==="write"?"":"hidden lg:block"]),placeholder:"Never edit a migration that has already run. Add a new one instead.","aria-label":"What the skill says"},null,8,["modelValue","class"]),M(f(z1),{class:i1(["h-full min-h-[24rem] overflow-auto p-5",p.value==="preview"?"":"hidden lg:block"])},{default:x(()=>[u.value.body?(h(),G(f(R2),{key:0,source:u.value.body},null,8,["source"])):(h(),w("p",ch," Nothing written yet. What appears here is what a person reads, and what a model is given when your work is checked against this skill. "))]),_:1},8,["class"])])],64))])}}},fh=["value"],Ah={class:"relative"},hh={key:0,class:"space-y-3"},ph={class:"text-sm text-muted-foreground"},mh={key:0,class:"text-success"},gh={key:1},vh={key:2},yh={key:3,class:"font-mono"},Ze="repository",te="global",bh={__name:"Skills",setup(e){const t=[Ze,te],n=ve(),{repositories:l,chosen:o,error:r,fetchRepositories:s}=v3(),a=j([]),i=j(""),c=j("all"),d=[{id:"all",label:"All"},{id:Ze,label:"This repository"},{id:te,label:"Everywhere"},{id:"agents",label:"Your coding agents"}],u=t1(()=>{const D=i.value.trim().toLowerCase();return a.value.filter(F=>c.value===Ze&&F.origin!==Ze||c.value===te&&F.origin!==te||c.value==="agents"&&t.includes(F.origin)?!1:D?F.name.toLowerCase().includes(D)||F.description.toLowerCase().includes(D):!0)}),A=D=>t.includes(D.origin),p=D=>D.origin===te?"everywhere":D.origin===Ze?o.value:D.origin;async function m(){try{const D=await Z1.skills(o.value);a.value=D.skills,r.value=""}catch(D){a.value=[],r.value=D.message}}async function k(D){if(confirm(`Forget ${D.name}? -The file is removed from ${m(k)}.`))try{await B1.forgetSkill(k.origin===ee?"":o.value,k.origin,k.id),await p()}catch(F){r.value=F.message}}return t2(o,p),d2(async()=>{await s(),await p()}),(k,F)=>(h(),C("div",null,[I(f(m3),{pillar:"review",title:"Skills",sub:"What your work is read against: this repository's, this machine's, and your own."},{icon:w(()=>[I(f(vn),{class:"h-6 w-6"})]),actions:w(()=>[f(l).length>1?(h(),G(f(j2),{key:0,modelValue:f(o),"onUpdate:modelValue":F[0]||(F[0]=M=>n2(o)?o.value=M:null),size:"sm","aria-label":"Repository"},{default:w(()=>[(h(!0),C(n1,null,_1(f(l),M=>(h(),C("option",{key:M.name,value:M.name},N(M.name),9,ah))),128))]),_:1},8,["modelValue"])):P("",!0),b("div",ih,[I(f(wn),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),I(f(J3),{modelValue:i.value,"onUpdate:modelValue":F[1]||(F[1]=M=>i.value=M),size:"sm",placeholder:"Find a skill",class:"w-48 pl-8","aria-label":"Find a skill"},null,8,["modelValue"])]),f(l).length?(h(),G(f(C1),{key:1,size:"sm",variant:"glow",onClick:F[2]||(F[2]=M=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),F[5]||(F[5]=U(" Write one down ",-1))]),_:1})):P("",!0)]),_:1}),f(r)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(f(r)),1)]),_:1})):P("",!0),f(l).length===0?(h(),G(p4,{key:1})):(h(),C(n1,{key:2},[I(f(ge),{modelValue:c.value,"onUpdate:modelValue":F[3]||(F[3]=M=>c.value=M),tabs:d,label:"Where they are kept",class:"mb-4"},null,8,["modelValue"]),u.value.length?(h(),C("div",ch,[(h(!0),C(n1,null,_1(u.value,M=>(h(),G(f(z3),{key:M.id,title:M.name,subtitle:M.path,pillar:"review",hover:"",class:"cursor-pointer",onClick:E=>f(n).push(`/skills/${M.id}`)},{icon:w(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:w(()=>[I(f(c2),{variant:A(M)?"success":"outline"},{default:w(()=>[U(N(m(M)),1)]),_:2},1032,["variant"])]),meta:w(()=>{var E;return[M.reviews===!0?(h(),C("span",dh,"always in reviews")):M.reviews===!1?(h(),C("span",fh,"not used in reviews")):M.automatic?P("",!0):(h(),C("span",Ah,"only when you invoke it")),(E=M.paths)!=null&&E.length?(h(),C("span",hh,N(M.paths.join(" ")),1)):P("",!0)]}),actions:w(()=>[A(M)?(h(),G(f(C1),{key:0,variant:"ghost",size:"icon","aria-label":`Forget ${M.name}`,onClick:qe(E=>y(M),["stop"])},{default:w(()=>[I(f(h4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])):P("",!0)]),default:w(()=>[b("p",uh,N(M.description),1)]),_:2},1032,["title","subtitle","onClick"]))),128))])):(h(),G(f(z1),{key:1,class:"p-10 text-center"},{default:w(()=>[I(f(c4),{class:"mx-auto mb-3 h-8 w-8 text-muted-foreground"}),F[7]||(F[7]=b("p",{class:"font-medium"},"Nothing written down here yet.",-1)),F[8]||(F[8]=b("p",{class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"}," A skill says when it applies and what it says to do. Anything you have already taught Claude or Codex is read from their own folders, and anything your team committed is read from the repository. What you write here is kept beside the index rather than in anybody's checkout. ",-1)),I(f(C1),{class:"mt-4",variant:"glow",onClick:F[4]||(F[4]=M=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:w(()=>[I(f(h3),{class:"mr-2 h-4 w-4"}),F[6]||(F[6]=U(" Write one down ",-1))]),_:1})]),_:1}))],64))]))}},mh={class:"space-y-4"},gh={class:"mb-3 flex flex-wrap items-center justify-between gap-2"},vh={class:"font-mono text-sm text-muted-foreground"},yh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},bh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},kh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Ch={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},wh={__name:"McpPanel",setup(e){const t=z(""),n=z(null),l=z(""),o=t1(()=>window.location.origin),r=t1(()=>JSON.stringify({mcpServers:{sourceant:{command:"sourceant",args:["mcp"],env:{SOURCEANT_UI_URL:o.value}}}},null,2)),s=t1(()=>JSON.stringify({mcpServers:{sourceant:{type:"http",url:`${o.value}/mcp`}}},null,2));async function a(i,c){await navigator.clipboard.writeText(c),l.value=i,setTimeout(()=>l.value="",1500)}return d2(async()=>{t.value=`${o.value}/mcp`;try{const i=await fetch(t.value,{method:"GET"});n.value=i.status!==404}catch{n.value=!1}}),(i,c)=>(h(),C("div",mh,[I(f(z1),{class:"p-5"},{default:w(()=>[b("div",gh,[c[2]||(c[2]=b("h2",{class:"font-semibold"},"Endpoint",-1)),I(f(mn),{label:n.value===null?"Checking":n.value?"Serving":"Not mounted",tone:n.value===null?"neutral":n.value?"success":"warning",busy:n.value===null},null,8,["label","tone","busy"])]),b("p",vh,N(t.value),1),n.value===!1?(h(),G(f(u2),{key:0,tone:"info",class:"mt-3"},{default:w(()=>[...c[3]||(c[3]=[U(" Nothing is mounted there. The HTTP endpoint is served when this machine is running in local mode; over stdio it needs no endpoint at all. ",-1)])]),_:1})):P("",!0)]),_:1}),I(f(z1),{class:"p-5"},{default:w(()=>[b("div",yh,[c[4]||(c[4]=b("h2",{class:"font-semibold"},"Over stdio",-1)),I(f(C1),{size:"sm",variant:"outline",onClick:c[0]||(c[0]=d=>a("stdio",r.value))},{default:w(()=>[(h(),G(k2(l.value==="stdio"?f(he):f(pt)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+N(l.value==="stdio"?"Copied":"Copy"),1)]),_:1})]),c[5]||(c[5]=b("p",{class:"mb-3 text-sm text-muted-foreground"}," One process per client, started by the client. A review asked for this way is handed to this agent, so it finishes even after the client goes away. ",-1)),b("pre",bh,[b("code",null,N(r.value),1)])]),_:1}),I(f(z1),{class:"p-5"},{default:w(()=>[b("div",kh,[c[6]||(c[6]=b("h2",{class:"font-semibold"},"Over HTTP",-1)),I(f(C1),{size:"sm",variant:"outline",onClick:c[1]||(c[1]=d=>a("http",s.value))},{default:w(()=>[(h(),G(k2(l.value==="http"?f(he):f(pt)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+N(l.value==="http"?"Copied":"Copy"),1)]),_:1})]),c[7]||(c[7]=b("p",{class:"mb-3 text-sm text-muted-foreground"}," One server, several clients. Reachable from this machine only. ",-1)),b("pre",Ch,[b("code",null,N(s.value),1)])]),_:1})]))}},xh={key:0,class:"grid gap-x-4 gap-y-2 text-sm sm:grid-cols-[auto_1fr]"},_h={class:"font-mono"},Ih={class:"break-all font-mono"},Mh={class:"font-mono"},Eh={key:0,class:"ml-2 text-xs text-muted-foreground"},Dh={class:"break-all font-mono"},Zh={class:"font-mono"},Fh={class:"font-mono"},Bh={class:"mb-1 font-semibold"},Sh={key:0,class:"mb-4 text-sm text-muted-foreground"},Y5="overview",P7="mcp",Rh={__name:"Settings",setup(e){const{isDark:t,toggleTheme:n}=En(),l=z(null),o=z([]),r=z([]),s=z(""),a=z(Y5),i=t1(()=>[{id:Y5,label:"Overview"},...r.value.map(d=>({id:d,label:d})),{id:P7,label:"MCP"}]),c=t1(()=>{var u;return((u=l.value)==null?void 0:u.model)||"None chosen"});return d2(async()=>{var d,u;try{const[A,m,p]=await Promise.all([B1.status(),B1.settings(),B1.repositories().catch(()=>[])]);l.value={...A,model:((d=m.find(y=>y.key==="model.name"))==null?void 0:d.value)??"",keySet:!!((u=m.find(y=>y.key==="model.api_key"))!=null&&u.is_set)},o.value=p,r.value=[...new Set(m.map(y=>y.group).filter(Boolean))].sort()}catch(A){s.value=A.message}}),(d,u)=>(h(),C("div",null,[I(f(m3),{pillar:"tokens",title:"Settings",sub:"What is running, and how this looks."},{icon:w(()=>[I(f(mt),{class:"h-6 w-6"})]),actions:w(()=>[I(f(ge),{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=A=>a.value=A),tabs:i.value,label:"Settings"},null,8,["modelValue","tabs"])]),_:1}),s.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:w(()=>[U(N(s.value),1)]),_:1})):P("",!0),a.value===Y5?(h(),C(n1,{key:1},[I(f(z1),{class:"mb-3 p-5"},{default:w(()=>[u[9]||(u[9]=b("h2",{class:"mb-3 font-semibold"},"This machine",-1)),l.value?(h(),C("dl",xh,[u[4]||(u[4]=b("dt",{class:"text-muted-foreground"},"Agent",-1)),b("dd",_h,N(l.value.version),1),u[5]||(u[5]=b("dt",{class:"text-muted-foreground"},"Indexer",-1)),b("dd",Ih,[U(N(l.value.core_url)+" ",1),I(f(c2),{variant:l.value.core_up?"success":"destructive",class:"ml-2"},{default:w(()=>[U(N(l.value.core_up?"answering":"not answering"),1)]),_:1},8,["variant"])]),u[6]||(u[6]=b("dt",{class:"text-muted-foreground"},"Starts",-1)),b("dd",Mh,[U(N(l.value.core_starts)+" ",1),l.value.core_starts>1?(h(),C("span",Eh," a number that keeps climbing is an indexer that keeps dying ")):P("",!0)]),l.value.last_exit?(h(),C(n1,{key:0},[u[1]||(u[1]=b("dt",{class:"text-muted-foreground"},"Last exit",-1)),b("dd",Dh,N(l.value.last_exit),1)],64)):P("",!0),u[7]||(u[7]=b("dt",{class:"text-muted-foreground"},"Folders read",-1)),b("dd",Zh,N(o.value.length),1),u[8]||(u[8]=b("dt",{class:"text-muted-foreground"},"Model",-1)),b("dd",Fh,[U(N(c.value)+" ",1),l.value.model&&l.value.keySet?(h(),G(f(c2),{key:0,variant:"success",class:"ml-2"},{default:w(()=>[...u[2]||(u[2]=[U("key set",-1)])]),_:1})):l.value.model?(h(),G(f(c2),{key:1,variant:"warning",class:"ml-2"},{default:w(()=>[...u[3]||(u[3]=[U("no key",-1)])]),_:1})):P("",!0)])])):P("",!0),u[10]||(u[10]=b("p",{class:"mt-4 text-xs text-muted-foreground"},[U(" Where the indexer comes from is chosen at install time and kept in "),b("code",{class:"font-mono"},"~/.sourceant/config.json"),U(". Nothing on this page has left this machine. ")],-1))]),_:1}),I(f(z1),{class:"p-5"},{default:w(()=>[u[11]||(u[11]=b("h2",{class:"mb-1 font-semibold"},"Appearance",-1)),u[12]||(u[12]=b("p",{class:"mb-4 text-sm text-muted-foreground"}," Kept in this browser, so it follows the screen rather than the machine. ",-1)),I(f(C1),{variant:"outline",onClick:f(n)},{default:w(()=>[(h(),G(k2(f(t)?f(xn):f(kn)),{class:"mr-2 h-4 w-4"})),U(" "+N(f(t)?"Light mode":"Dark mode"),1)]),_:1},8,["onClick"])]),_:1})],64)):a.value===P7?(h(),G(wh,{key:2})):(h(),G(f(z1),{key:3,class:"p-5"},{default:w(()=>[b("h2",Bh,N(a.value),1),a.value==="Model"?(h(),C("p",Sh," Reading a repository needs none of this. Anything that proposes or judges rather than reads does, and it stays off until you say which model to ask. ")):P("",!0),(h(),G(Dn,{key:a.value,group:a.value},null,8,["group"]))]),_:1}))]))}},Qh=vs({history:zr(),routes:[{path:"/",component:Ld},{path:"/graph",component:If},{path:"/knowledge",component:Kf},{path:"/reviews",component:L7},{path:"/reviews/:id",component:L7},{path:"/skills",component:ph},{path:"/skills/:id(.*)",component:sh},{path:"/repositories",component:Hf},{path:"/repositories/:name(.*)",component:cA},{path:"/settings",component:Rh},{path:"/:rest(.*)*",redirect:"/"}]});ur(Qd).use(Qh).mount("#app"); +The file is removed from ${p(D)}.`))try{await Z1.forgetSkill(D.origin===te?"":o.value,D.origin,D.id),await m()}catch(F){r.value=F.message}}return q1(o,m),d2(async()=>{await s(),await m()}),(D,F)=>(h(),w("div",null,[M(f(g3),{pillar:"review",title:"Skills",sub:"What your work is read against: this repository's, this machine's, and your own."},{icon:x(()=>[M(f(bn),{class:"h-6 w-6"})]),actions:x(()=>[f(l).length>1?(h(),G(f(X2),{key:0,modelValue:f(o),"onUpdate:modelValue":F[0]||(F[0]=C=>n2(o)?o.value=C:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),w(n1,null,_1(f(l),C=>(h(),w("option",{key:C.name,value:C.name},Q(C.name),9,fh))),128))]),_:1},8,["modelValue"])):W("",!0),y("div",Ah,[M(f(_n),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),M(f(J3),{modelValue:i.value,"onUpdate:modelValue":F[1]||(F[1]=C=>i.value=C),size:"sm",placeholder:"Find a skill",class:"w-48 pl-8","aria-label":"Find a skill"},null,8,["modelValue"])]),f(l).length?(h(),G(f(b1),{key:1,size:"sm",variant:"glow",onClick:F[2]||(F[2]=C=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),F[5]||(F[5]=U(" Write one down ",-1))]),_:1})):W("",!0)]),_:1}),f(r)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(r)),1)]),_:1})):W("",!0),f(l).length===0?(h(),G(h4,{key:1})):(h(),w(n1,{key:2},[M(f(ye),{modelValue:c.value,"onUpdate:modelValue":F[3]||(F[3]=C=>c.value=C),tabs:d,label:"Where they are kept",class:"mb-4"},null,8,["modelValue"]),u.value.length?(h(),w("div",hh,[(h(!0),w(n1,null,_1(u.value,C=>(h(),G(f(z3),{key:C.id,title:C.name,subtitle:C.path,pillar:"review",hover:"",class:"cursor-pointer",onClick:I=>f(n).push(`/skills/${C.id}`)},{icon:x(()=>[M(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:A(C)?"success":"outline"},{default:x(()=>[U(Q(p(C)),1)]),_:2},1032,["variant"])]),meta:x(()=>{var I;return[C.reviews===!0?(h(),w("span",mh,"always in reviews")):C.reviews===!1?(h(),w("span",gh,"not used in reviews")):C.automatic?W("",!0):(h(),w("span",vh,"only when you invoke it")),(I=C.paths)!=null&&I.length?(h(),w("span",yh,Q(C.paths.join(" ")),1)):W("",!0)]}),actions:x(()=>[A(C)?(h(),G(f(b1),{key:0,variant:"ghost",size:"icon","aria-label":`Forget ${C.name}`,onClick:qe(I=>k(C),["stop"])},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])):W("",!0)]),default:x(()=>[y("p",ph,Q(C.description),1)]),_:2},1032,["title","subtitle","onClick"]))),128))])):(h(),G(f(z1),{key:1,class:"p-10 text-center"},{default:x(()=>[M(f(c4),{class:"mx-auto mb-3 h-8 w-8 text-muted-foreground"}),F[7]||(F[7]=y("p",{class:"font-medium"},"Nothing written down here yet.",-1)),F[8]||(F[8]=y("p",{class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"}," A skill says when it applies and what it says to do. Anything you have already taught Claude or Codex is read from their own folders, and anything your team committed is read from the repository. What you write here is kept beside the index rather than in anybody's checkout. ",-1)),M(f(b1),{class:"mt-4",variant:"glow",onClick:F[4]||(F[4]=C=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),F[6]||(F[6]=U(" Write one down ",-1))]),_:1})]),_:1}))],64))]))}},kh={class:"space-y-4"},Ch={class:"mb-3 flex flex-wrap items-center justify-between gap-2"},wh={class:"font-mono text-sm text-muted-foreground"},xh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},_h={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Ih={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Mh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Eh={__name:"McpPanel",setup(e){const t=j(""),n=j(null),l=j(""),o=t1(()=>window.location.origin),r=t1(()=>JSON.stringify({mcpServers:{sourceant:{command:"sourceant",args:["mcp"],env:{SOURCEANT_UI_URL:o.value}}}},null,2)),s=t1(()=>JSON.stringify({mcpServers:{sourceant:{type:"http",url:`${o.value}/mcp`}}},null,2));async function a(i,c){await navigator.clipboard.writeText(c),l.value=i,setTimeout(()=>l.value="",1500)}return d2(async()=>{t.value=`${o.value}/mcp`;try{const i=await fetch(t.value,{method:"GET"});n.value=i.status!==404}catch{n.value=!1}}),(i,c)=>(h(),w("div",kh,[M(f(z1),{class:"p-5"},{default:x(()=>[y("div",Ch,[c[2]||(c[2]=y("h2",{class:"font-semibold"},"Endpoint",-1)),M(f(gn),{label:n.value===null?"Checking":n.value?"Serving":"Not mounted",tone:n.value===null?"neutral":n.value?"success":"warning",busy:n.value===null},null,8,["label","tone","busy"])]),y("p",wh,Q(t.value),1),n.value===!1?(h(),G(f(u2),{key:0,tone:"info",class:"mt-3"},{default:x(()=>[...c[3]||(c[3]=[U(" Nothing is mounted there. The HTTP endpoint is served when this machine is running in local mode; over stdio it needs no endpoint at all. ",-1)])]),_:1})):W("",!0)]),_:1}),M(f(z1),{class:"p-5"},{default:x(()=>[y("div",xh,[c[4]||(c[4]=y("h2",{class:"font-semibold"},"Over stdio",-1)),M(f(b1),{size:"sm",variant:"outline",onClick:c[0]||(c[0]=d=>a("stdio",r.value))},{default:x(()=>[(h(),G(k2(l.value==="stdio"?f(pe):f(ht)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+Q(l.value==="stdio"?"Copied":"Copy"),1)]),_:1})]),c[5]||(c[5]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," One process per client, started by the client. A review asked for this way is handed to this agent, so it finishes even after the client goes away. ",-1)),y("pre",_h,[y("code",null,Q(r.value),1)])]),_:1}),M(f(z1),{class:"p-5"},{default:x(()=>[y("div",Ih,[c[6]||(c[6]=y("h2",{class:"font-semibold"},"Over HTTP",-1)),M(f(b1),{size:"sm",variant:"outline",onClick:c[1]||(c[1]=d=>a("http",s.value))},{default:x(()=>[(h(),G(k2(l.value==="http"?f(pe):f(ht)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+Q(l.value==="http"?"Copied":"Copy"),1)]),_:1})]),c[7]||(c[7]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," One server, several clients. Reachable from this machine only. ",-1)),y("pre",Mh,[y("code",null,Q(s.value),1)])]),_:1})]))}},Dh={key:0,class:"grid gap-x-4 gap-y-2 text-sm sm:grid-cols-[auto_1fr]"},Zh={class:"font-mono"},Fh={class:"break-all font-mono"},Bh={class:"font-mono"},Sh={key:0,class:"ml-2 text-xs text-muted-foreground"},Rh={class:"break-all font-mono"},Qh={class:"font-mono"},Nh={class:"font-mono"},Kh={class:"mb-1 font-semibold"},Gh={key:0,class:"mb-4 text-sm text-muted-foreground"},T5="overview",T7="mcp",Oh={__name:"Settings",setup(e){const{isDark:t,toggleTheme:n}=Zn(),l=j(null),o=j([]),r=j([]),s=j(""),a=j(T5),i=t1(()=>[{id:T5,label:"Overview"},...r.value.map(d=>({id:d,label:d})),{id:T7,label:"MCP"}]),c=t1(()=>{var u;return((u=l.value)==null?void 0:u.model)||"None chosen"});return d2(async()=>{var d,u;try{const[A,p,m]=await Promise.all([Z1.status(),Z1.settings(),Z1.repositories().catch(()=>[])]);l.value={...A,model:((d=p.find(k=>k.key==="model.name"))==null?void 0:d.value)??"",keySet:!!((u=p.find(k=>k.key==="model.api_key"))!=null&&u.is_set)},o.value=m,r.value=[...new Set(p.map(k=>k.group).filter(Boolean))].sort()}catch(A){s.value=A.message}}),(d,u)=>(h(),w("div",null,[M(f(g3),{pillar:"tokens",title:"Settings",sub:"What is running, and how this looks."},{icon:x(()=>[M(f(pt),{class:"h-6 w-6"})]),actions:x(()=>[M(f(ye),{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=A=>a.value=A),tabs:i.value,label:"Settings"},null,8,["modelValue","tabs"])]),_:1}),s.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(s.value),1)]),_:1})):W("",!0),a.value===T5?(h(),w(n1,{key:1},[M(f(z1),{class:"mb-3 p-5"},{default:x(()=>[u[9]||(u[9]=y("h2",{class:"mb-3 font-semibold"},"This machine",-1)),l.value?(h(),w("dl",Dh,[u[4]||(u[4]=y("dt",{class:"text-muted-foreground"},"Agent",-1)),y("dd",Zh,Q(l.value.version),1),u[5]||(u[5]=y("dt",{class:"text-muted-foreground"},"Indexer",-1)),y("dd",Fh,[U(Q(l.value.core_url)+" ",1),M(f(c2),{variant:l.value.core_up?"success":"destructive",class:"ml-2"},{default:x(()=>[U(Q(l.value.core_up?"answering":"not answering"),1)]),_:1},8,["variant"])]),u[6]||(u[6]=y("dt",{class:"text-muted-foreground"},"Starts",-1)),y("dd",Bh,[U(Q(l.value.core_starts)+" ",1),l.value.core_starts>1?(h(),w("span",Sh," a number that keeps climbing is an indexer that keeps dying ")):W("",!0)]),l.value.last_exit?(h(),w(n1,{key:0},[u[1]||(u[1]=y("dt",{class:"text-muted-foreground"},"Last exit",-1)),y("dd",Rh,Q(l.value.last_exit),1)],64)):W("",!0),u[7]||(u[7]=y("dt",{class:"text-muted-foreground"},"Folders read",-1)),y("dd",Qh,Q(o.value.length),1),u[8]||(u[8]=y("dt",{class:"text-muted-foreground"},"Model",-1)),y("dd",Nh,[U(Q(c.value)+" ",1),l.value.model&&l.value.keySet?(h(),G(f(c2),{key:0,variant:"success",class:"ml-2"},{default:x(()=>[...u[2]||(u[2]=[U("key set",-1)])]),_:1})):l.value.model?(h(),G(f(c2),{key:1,variant:"warning",class:"ml-2"},{default:x(()=>[...u[3]||(u[3]=[U("no key",-1)])]),_:1})):W("",!0)])])):W("",!0),u[10]||(u[10]=y("p",{class:"mt-4 text-xs text-muted-foreground"},[U(" Where the indexer comes from is chosen at install time and kept in "),y("code",{class:"font-mono"},"~/.sourceant/config.json"),U(". Nothing on this page has left this machine. ")],-1))]),_:1}),M(f(z1),{class:"p-5"},{default:x(()=>[u[11]||(u[11]=y("h2",{class:"mb-1 font-semibold"},"Appearance",-1)),u[12]||(u[12]=y("p",{class:"mb-4 text-sm text-muted-foreground"}," Kept in this browser, so it follows the screen rather than the machine. ",-1)),M(f(b1),{variant:"outline",onClick:f(n)},{default:x(()=>[(h(),G(k2(f(t)?f(In):f(wn)),{class:"mr-2 h-4 w-4"})),U(" "+Q(f(t)?"Light mode":"Dark mode"),1)]),_:1},8,["onClick"])]),_:1})],64)):a.value===T7?(h(),G(Eh,{key:2})):(h(),G(f(z1),{key:3,class:"p-5"},{default:x(()=>[y("h2",Kh,Q(a.value),1),a.value==="Model"?(h(),w("p",Gh," Reading a repository needs none of this. Anything that proposes or judges rather than reads does, and it stays off until you say which model to ask. ")):W("",!0),(h(),G(Fn,{key:a.value,group:a.value},null,8,["group"]))]),_:1}))]))}},$h=bs({history:Xr(),routes:[{path:"/",component:Yd},{path:"/graph",component:Bf},{path:"/knowledge",component:Pf},{path:"/reviews",component:P7},{path:"/reviews/:id",component:P7},{path:"/skills",component:bh},{path:"/skills/:id(.*)",component:dh},{path:"/repositories",component:Jf},{path:"/repositories/:name(.*)",component:hA},{path:"/settings",component:Oh},{path:"/:rest(.*)*",redirect:"/"}]});fr(Od).use($h).mount("#app"); diff --git a/internal/ui/assets/index.html b/internal/ui/assets/index.html index bb15d90..605469b 100644 --- a/internal/ui/assets/index.html +++ b/internal/ui/assets/index.html @@ -5,8 +5,8 @@ SourceAnt - - + +
diff --git a/ui/src/components/FolderPicker.vue b/ui/src/components/FolderPicker.vue index a44368b..7793f13 100644 --- a/ui/src/components/FolderPicker.vue +++ b/ui/src/components/FolderPicker.vue @@ -45,8 +45,7 @@ async function add() { busy.value = true problem.value = '' try { - const repository = await api.addRepository(listing.value.path, name.value.trim()) - await api.index(repository.name) + await api.addRepository(listing.value.path, name.value.trim()) emit('added') emit('close') } catch (error) { diff --git a/ui/src/moments.js b/ui/src/moments.js new file mode 100644 index 0000000..0c612d1 --- /dev/null +++ b/ui/src/moments.js @@ -0,0 +1,13 @@ +/* A moment said the way somebody reads it: how long ago, or the date once that + * stops being the useful answer. */ + +export function when(stamp) { + if (!stamp) return '' + const at = new Date(stamp) + const ago = Math.round((Date.now() - at.getTime()) / 60000) + if (ago < 1) return 'just now' + if (ago < 60) return `${ago} minute${ago === 1 ? '' : 's'} ago` + const hours = Math.round(ago / 60) + if (hours < 24) return `${hours} hour${hours === 1 ? '' : 's'} ago` + return at.toLocaleDateString() +} diff --git a/ui/src/pages/Repositories.vue b/ui/src/pages/Repositories.vue index ce104eb..4ed509f 100644 --- a/ui/src/pages/Repositories.vue +++ b/ui/src/pages/Repositories.vue @@ -7,11 +7,12 @@ import { Notice, PageHead, } from '@sourceant/design' -import { onMounted, ref } from 'vue' +import { computed, onMounted, onUnmounted, ref } from 'vue' import { useRouter } from 'vue-router' import { Boxes, Plus, Trash2, RefreshCw, FileCode, Link2, Folder, Loader2 } from 'lucide-vue-next' import FolderPicker from '~/components/FolderPicker.vue' import { useRepositories } from '~/composables/useRepositories' +import { when } from '~/moments' import { api } from '~/api' const router = useRouter() @@ -23,6 +24,8 @@ const picking = ref(false) // repository that has not changed reports nothing changed, which is a result; // showing no result at all is indistinguishable from the button not working. const lastRead = ref({}) +const reading = computed(() => repositories.value.some((one) => one.reading)) +let asking = null async function countAll() { for (const repository of repositories.value) { @@ -39,6 +42,20 @@ async function countAll() { async function refresh() { await fetchRepositories() await countAll() + keepAsking() +} + +// A read that somebody else started, by adding a folder or on the schedule, +// finishes without anybody pressing anything here. Only the list is asked for +// while it runs: counting means a call per repository. +function keepAsking() { + clearTimeout(asking) + if (!reading.value) return + asking = setTimeout(async () => { + await fetchRepositories() + if (!reading.value) await countAll() + keepAsking() + }, 2000) } async function reindex(name) { @@ -51,7 +68,7 @@ async function reindex(name) { error.value = problem.message } working.value = '' - await countAll() + await refresh() } function readingSaid(read) { @@ -60,6 +77,12 @@ function readingSaid(read) { return 'Nothing had changed.' } +function freshness(repository) { + if (repository.reading) return 'Reading…' + if (!repository.indexed_at) return 'Not read yet' + return `Read ${when(repository.indexed_at)}` +} + async function drop(repository) { if (!confirm(`Stop covering ${repository.path}?\n\nWhat was already indexed is left alone.`)) return try { @@ -71,6 +94,7 @@ async function drop(repository) { } onMounted(refresh) +onUnmounted(() => clearTimeout(asking)) - Not read yet. Re-index to read it. - Reading… + + + {{ freshness(repository) }} + {{ readingSaid(lastRead[repository.name]) }} @@ -129,7 +155,7 @@ onMounted(refresh) diff --git a/ui/src/pages/Reviews.vue b/ui/src/pages/Reviews.vue index 3b7943c..5a374e0 100644 --- a/ui/src/pages/Reviews.vue +++ b/ui/src/pages/Reviews.vue @@ -42,6 +42,7 @@ import EmptyMachine from '~/components/EmptyMachine.vue' import { useUp } from '~/composables/useUp' import { EVERY, useRepositories } from '~/composables/useRepositories' import { api } from '~/api' +import { when } from '~/moments' /* Work read before anybody else has been asked to read it. * @@ -258,17 +259,6 @@ async function loadPast() { } } -function when(stamp) { - if (!stamp) return '' - const at = new Date(stamp) - const ago = Math.round((Date.now() - at.getTime()) / 60000) - if (ago < 1) return 'just now' - if (ago < 60) return `${ago} minute${ago === 1 ? '' : 's'} ago` - const hours = Math.round(ago / 60) - if (hours < 24) return `${hours} hour${hours === 1 ? '' : 's'} ago` - return at.toLocaleDateString() -} - async function checkModel() { try { const settings = await api.settings() From ec86f009359a9ba1af196531614d649528bbf771 Mon Sep 17 00:00:00 2001 From: nfebe Date: Sat, 26 Sep 2026 19:32:26 +0100 Subject: [PATCH 02/28] feat: Keep tuning out of the way on the Settings screen Every setting arrived with equal weight, so a group of ten fields asked ten questions where most already had the right answer. What the core marks as tuning now sits behind one line somebody opens, leaving the settings a person has to choose. --- internal/core/client.go | 7 +- .../{index-Dru5flw6.js => index-4Ta3keRA.js} | 202 +++++++++--------- ...{index-CLbMFakI.css => index-Dj3NkgR1.css} | 2 +- internal/ui/assets/index.html | 4 +- ui/src/components/SettingField.vue | 71 ++++++ ui/src/components/SettingsPanel.vue | 99 +++------ 6 files changed, 216 insertions(+), 169 deletions(-) rename internal/ui/assets/assets/{index-Dru5flw6.js => index-4Ta3keRA.js} (66%) rename internal/ui/assets/assets/{index-CLbMFakI.css => index-Dj3NkgR1.css} (76%) create mode 100644 ui/src/components/SettingField.vue diff --git a/internal/core/client.go b/internal/core/client.go index cc18afe..de0fb4d 100644 --- a/internal/core/client.go +++ b/internal/core/client.go @@ -580,8 +580,11 @@ type Setting struct { Secret bool `json:"secret"` // Listed is several of something rather than one thing, kept one to a // line, so a screen draws it as a list rather than as a box of text. - Listed bool `json:"listed"` - IsSet *bool `json:"is_set"` + Listed bool `json:"listed"` + // Advanced is tuning rather than a choice, kept out of the way of the + // settings somebody actually has to answer. + Advanced bool `json:"advanced"` + IsSet *bool `json:"is_set"` } // Settings is everything configurable on this machine. diff --git a/internal/ui/assets/assets/index-Dru5flw6.js b/internal/ui/assets/assets/index-4Ta3keRA.js similarity index 66% rename from internal/ui/assets/assets/index-Dru5flw6.js rename to internal/ui/assets/assets/index-4Ta3keRA.js index 459ffa7..7834741 100644 --- a/internal/ui/assets/assets/index-Dru5flw6.js +++ b/internal/ui/assets/assets/index-4Ta3keRA.js @@ -1,379 +1,389 @@ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/force-graph-HZtkkbK0.js","assets/radial-aO03NmL0.js","assets/Paired-DNTqsPj0.js","assets/index-DHVCIEzJ.js","assets/3d-force-graph-B8lgMx4q.js","assets/three.module-D-PgY1-x.js"])))=>i.map(i=>d[i]); -var Rn=Object.defineProperty;var Qn=(e,t,n)=>t in e?Rn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var $1=(e,t,n)=>Qn(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&l(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function l(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();/** +var Gn=Object.defineProperty;var $n=(e,t,n)=>t in e?Gn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var W1=(e,t,n)=>$n(e,typeof t!="symbol"?t+"":t,n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))l(o);new MutationObserver(o=>{for(const s of o)if(s.type==="childList")for(const r of s.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&l(r)}).observe(document,{childList:!0,subtree:!0});function n(o){const s={};return o.integrity&&(s.integrity=o.integrity),o.referrerPolicy&&(s.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?s.credentials="include":o.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function l(o){if(o.ep)return;o.ep=!0;const s=n(o);fetch(o.href,s)}})();/** * @vue/shared v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function yt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const L1={},oe=[],j2=()=>{},H7=()=>!1,U4=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),J4=e=>e.startsWith("onUpdate:"),r2=Object.assign,bt=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Nn=Object.prototype.hasOwnProperty,N1=(e,t)=>Nn.call(e,t),g1=Array.isArray,E3=e=>u4(e)==="[object Map]",ce=e=>u4(e)==="[object Set]",jt=e=>u4(e)==="[object Date]",I1=e=>typeof e=="function",Y1=e=>typeof e=="string",O2=e=>typeof e=="symbol",G1=e=>e!==null&&typeof e=="object",Y7=e=>(G1(e)||I1(e))&&I1(e.then)&&I1(e.catch),V7=Object.prototype.toString,u4=e=>V7.call(e),Kn=e=>u4(e).slice(8,-1),U7=e=>u4(e)==="[object Object]",kt=e=>Y1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Re=yt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),z4=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Gn=/-\w/g,b2=z4(e=>e.replace(Gn,t=>t.slice(1).toUpperCase())),On=/\B([A-Z])/g,F3=z4(e=>e.replace(On,"-$1").toLowerCase()),j4=z4(e=>e.charAt(0).toUpperCase()+e.slice(1)),g5=z4(e=>e?`on${j4(e)}`:""),U2=(e,t)=>!Object.is(e,t),E4=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},Ct=e=>{const t=parseFloat(e);return isNaN(t)?e:t},$n=e=>{const t=Y1(e)?Number(e):NaN;return isNaN(t)?e:t};let Xt;const X4=()=>Xt||(Xt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function M2(e){if(g1(e)){const t={};for(let n=0;n{if(n){const l=n.split(Ln);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function i1(e){let t="";if(Y1(e))t=e;else if(g1(e))for(let n=0;nme(n,t))}const X7=e=>!!(e&&e.__v_isRef===!0),Q=e=>Y1(e)?e:e==null?"":g1(e)||G1(e)&&(e.toString===V7||!I1(e.toString))?X7(e)?Q(e.value):JSON.stringify(e,q7,2):String(e),q7=(e,t)=>X7(t)?q7(e,t.value):E3(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],r)=>(n[v5(l,r)+" =>"]=o,n),{})}:ce(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>v5(n))}:O2(t)?v5(t):G1(t)&&!g1(t)&&!U7(t)?String(t):t,v5=(e,t="")=>{var n;return O2(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** +**/function kt(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const R1={},oe=[],j2=()=>{},J7=()=>!1,J4=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),z4=e=>e.startsWith("onUpdate:"),l2=Object.assign,Ct=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},On=Object.prototype.hasOwnProperty,K1=(e,t)=>On.call(e,t),m1=Array.isArray,D3=e=>u4(e)==="[object Map]",ue=e=>u4(e)==="[object Set]",e6=e=>u4(e)==="[object Date]",I1=e=>typeof e=="function",V1=e=>typeof e=="string",O2=e=>typeof e=="symbol",$1=e=>e!==null&&typeof e=="object",z7=e=>($1(e)||I1(e))&&I1(e.then)&&I1(e.catch),j7=Object.prototype.toString,u4=e=>j7.call(e),Wn=e=>u4(e).slice(8,-1),X7=e=>u4(e)==="[object Object]",wt=e=>V1(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Qe=kt(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),j4=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},Ln=/-\w/g,m2=j4(e=>e.replace(Ln,t=>t.slice(1).toUpperCase())),Pn=/\B([A-Z])/g,m3=j4(e=>e.replace(Pn,"-$1").toLowerCase()),X4=j4(e=>e.charAt(0).toUpperCase()+e.slice(1)),y5=j4(e=>e?`on${X4(e)}`:""),i2=(e,t)=>!Object.is(e,t),E4=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:l,value:n})},xt=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Tn=e=>{const t=V1(e)?Number(e):NaN;return isNaN(t)?e:t};let t6;const q4=()=>t6||(t6=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function E2(e){if(m1(e)){const t={};for(let n=0;n{if(n){const l=n.split(Vn);l.length>1&&(t[l[0].trim()]=l[1].trim())}}),t}function i1(e){let t="";if(V1(e))t=e;else if(m1(e))for(let n=0;nge(n,t))}const n8=e=>!!(e&&e.__v_isRef===!0),R=e=>V1(e)?e:e==null?"":m1(e)||$1(e)&&(e.toString===j7||!I1(e.toString))?n8(e)?R(e.value):JSON.stringify(e,l8,2):String(e),l8=(e,t)=>n8(t)?l8(e,t.value):D3(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[l,o],s)=>(n[b5(l,s)+" =>"]=o,n),{})}:ue(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>b5(n))}:O2(t)?b5(t):$1(t)&&!m1(t)&&!X7(t)?String(t):t,b5=(e,t="")=>{var n;return O2(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/** * @vue/reactivity v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let a2;class Un{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&a2&&(a2.active?(this.parent=a2,this.index=(a2.scopes||(a2.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const l=this.scopes.slice();for(t=0,n=l.length;t0&&--this._on===0){if(a2===this)a2=this.prevScope;else{let t=a2;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(Ne){let t=Ne;for(Ne=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Qe;){let t=Qe;for(Qe=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function l8(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function o8(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),_t(l),zn(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function H5(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(r8(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function r8(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Te)||(e.globalVersion=Te,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!H5(e))))return;e.flags|=2;const t=e.dep,n=T1,l=K2;T1=e,K2=!0;try{l8(e);const o=e.fn(e._value);(t.version===0||U2(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{T1=n,K2=l,o8(e),e.flags&=-3}}function _t(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let r=n.computed.deps;r;r=r.nextDep)_t(r,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zn(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let K2=!0;const s8=[];function d3(){s8.push(K2),K2=!1}function f3(){const e=s8.pop();K2=e===void 0?!0:e}function e6(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=T1;T1=void 0;try{t()}finally{T1=n}}}let Te=0;class jn{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class It{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!T1||!K2||T1===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==T1)n=this.activeLink=new jn(T1,this),T1.deps?(n.prevDep=T1.depsTail,T1.depsTail.nextDep=n,T1.depsTail=n):T1.deps=T1.depsTail=n,a8(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=T1.depsTail,n.nextDep=void 0,T1.depsTail.nextDep=n,T1.depsTail=n,T1.deps===n&&(T1.deps=l)}return n}trigger(t){this.version++,Te++,this.notify(t)}notify(t){wt();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{xt()}}}function a8(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)a8(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const Y5=new WeakMap,Y3=Symbol(""),V5=Symbol(""),He=Symbol("");function f2(e,t,n){if(K2&&T1){let l=Y5.get(e);l||Y5.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new It),o.map=l,o.key=n),o.track()}}function a3(e,t,n,l,o,r){const s=Y5.get(e);if(!s){Te++;return}const a=i=>{i&&i.trigger()};if(wt(),t==="clear")s.forEach(a);else{const i=g1(e),c=i&&kt(n);if(i&&n==="length"){const d=Number(l);s.forEach((u,A)=>{(A==="length"||A===He||!O2(A)&&A>=d)&&a(u)})}else switch((n!==void 0||s.has(void 0))&&a(s.get(n)),c&&a(s.get(He)),t){case"add":i?c&&a(s.get("length")):(a(s.get(Y3)),E3(e)&&a(s.get(V5)));break;case"delete":i||(a(s.get(Y3)),E3(e)&&a(s.get(V5)));break;case"set":E3(e)&&a(s.get(Y3));break}}xt()}function q3(e){const t=R1(e);return t===e?t:(f2(t,"iterate",He),D2(e)?t:t.map($2))}function q4(e){return f2(e=R1(e),"iterate",He),e}function Y2(e,t){return A3(e)?ue(V3(e)?$2(t):t):$2(t)}const Xn={__proto__:null,[Symbol.iterator](){return b5(this,Symbol.iterator,e=>Y2(this,e))},concat(...e){return q3(this).concat(...e.map(t=>g1(t)?q3(t):t))},entries(){return b5(this,"entries",e=>(e[1]=Y2(this,e[1]),e))},every(e,t){return t3(this,"every",e,t,void 0,arguments)},filter(e,t){return t3(this,"filter",e,t,n=>n.map(l=>Y2(this,l)),arguments)},find(e,t){return t3(this,"find",e,t,n=>Y2(this,n),arguments)},findIndex(e,t){return t3(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return t3(this,"findLast",e,t,n=>Y2(this,n),arguments)},findLastIndex(e,t){return t3(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return t3(this,"forEach",e,t,void 0,arguments)},includes(...e){return k5(this,"includes",e)},indexOf(...e){return k5(this,"indexOf",e)},join(e){return q3(this).join(e)},lastIndexOf(...e){return k5(this,"lastIndexOf",e)},map(e,t){return t3(this,"map",e,t,void 0,arguments)},pop(){return ke(this,"pop")},push(...e){return ke(this,"push",e)},reduce(e,...t){return t6(this,"reduce",e,t)},reduceRight(e,...t){return t6(this,"reduceRight",e,t)},shift(){return ke(this,"shift")},some(e,t){return t3(this,"some",e,t,void 0,arguments)},splice(...e){return ke(this,"splice",e)},toReversed(){return q3(this).toReversed()},toSorted(e){return q3(this).toSorted(e)},toSpliced(...e){return q3(this).toSpliced(...e)},unshift(...e){return ke(this,"unshift",e)},values(){return b5(this,"values",e=>Y2(this,e))}};function b5(e,t,n){const l=q4(e),o=l[t]();return l!==e&&!D2(e)&&(o._next=o.next,o.next=()=>{const r=o._next();return r.done||(r.value=n(r.value)),r}),o}const qn=Array.prototype;function t3(e,t,n,l,o,r){const s=q4(e),a=s!==e&&!D2(e),i=s[t];if(i!==qn[t]){const u=i.apply(e,r);return a?$2(u):u}let c=n;s!==e&&(a?c=function(u,A){return n.call(this,Y2(e,u),A,e)}:n.length>2&&(c=function(u,A){return n.call(this,u,A,e)}));const d=i.call(s,c,l);return a&&o?o(d):d}function t6(e,t,n,l){const o=q4(e),r=o!==e&&!D2(e);let s=n,a=!1;o!==e&&(r?(a=l.length===0,s=function(c,d,u){return a&&(a=!1,c=Y2(e,c)),n.call(this,c,Y2(e,d),u,e)}):n.length>3&&(s=function(c,d,u){return n.call(this,c,d,u,e)}));const i=o[t](s,...l);return a?Y2(e,i):i}function k5(e,t,n){const l=R1(e);f2(l,"iterate",He);const o=l[t](...n);return(o===-1||o===!1)&&Dt(n[0])?(n[0]=R1(n[0]),l[t](...n)):o}function ke(e,t,n=[]){d3(),wt();const l=R1(e)[t].apply(e,n);return xt(),f3(),l}const el=yt("__proto__,__v_isRef,__isVue"),i8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(O2));function tl(e){O2(e)||(e=String(e));const t=R1(this);return f2(t,"has",e),t.hasOwnProperty(e)}class c8{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,r=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return r;if(n==="__v_raw")return l===(o?r?dl:A8:r?f8:d8).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const s=g1(t);if(!o){let i;if(s&&(i=Xn[n]))return i;if(n==="hasOwnProperty")return tl}const a=Reflect.get(t,n,n2(t)?t:l);if((O2(n)?i8.has(n):el(n))||(o||f2(t,"get",n),r))return a;if(n2(a)){const i=s&&kt(n)?a:a.value;return o&&G1(i)?J5(i):i}return G1(a)?o?J5(a):e5(a):a}}class u8 extends c8{constructor(t=!1){super(!1,t)}set(t,n,l,o){let r=t[n];const s=g1(t)&&kt(n);if(!this._isShallow){const c=A3(r);if(!D2(l)&&!A3(l)&&(r=R1(r),l=R1(l)),!s&&n2(r)&&!n2(l))return c||(r.value=l),!0}const a=s?Number(n)e,p4=e=>Reflect.getPrototypeOf(e);function sl(e,t,n){return function(...l){const o=this.__v_raw,r=R1(o),s=E3(r),a=e==="entries"||e===Symbol.iterator&&s,i=e==="keys"&&s,c=o[e](...l),d=n?U5:t?ue:$2;return!t&&f2(r,"iterate",i?V5:Y3),r2(Object.create(c),{next(){const{value:u,done:A}=c.next();return A?{value:u,done:A}:{value:a?[d(u[0]),d(u[1])]:d(u),done:A}}})}}function m4(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function al(e,t){const n={get(o){const r=this.__v_raw,s=R1(r),a=R1(o);e||(U2(o,a)&&f2(s,"get",o),f2(s,"get",a));const{has:i}=p4(s),c=t?U5:e?ue:$2;if(i.call(s,o))return c(r.get(o));if(i.call(s,a))return c(r.get(a));r!==s&&r.get(o)},get size(){const o=this.__v_raw;return!e&&f2(R1(o),"iterate",Y3),o.size},has(o){const r=this.__v_raw,s=R1(r),a=R1(o);return e||(U2(o,a)&&f2(s,"has",o),f2(s,"has",a)),o===a?r.has(o):r.has(o)||r.has(a)},forEach(o,r){const s=this,a=s.__v_raw,i=R1(a),c=t?U5:e?ue:$2;return!e&&f2(i,"iterate",Y3),a.forEach((d,u)=>o.call(r,c(d),c(u),s))}};return r2(n,e?{add:m4("add"),set:m4("set"),delete:m4("delete"),clear:m4("clear")}:{add(o){const r=R1(this),s=p4(r),a=R1(o),i=!t&&!D2(o)&&!A3(o)?a:o;return s.has.call(r,i)||U2(o,i)&&s.has.call(r,o)||U2(a,i)&&s.has.call(r,a)||(r.add(i),a3(r,"add",i,i)),this},set(o,r){!t&&!D2(r)&&!A3(r)&&(r=R1(r));const s=R1(this),{has:a,get:i}=p4(s);let c=a.call(s,o);c||(o=R1(o),c=a.call(s,o));const d=i.call(s,o);return s.set(o,r),c?U2(r,d)&&a3(s,"set",o,r):a3(s,"add",o,r),this},delete(o){const r=R1(this),{has:s,get:a}=p4(r);let i=s.call(r,o);i||(o=R1(o),i=s.call(r,o)),a&&a.call(r,o);const c=r.delete(o);return i&&a3(r,"delete",o,void 0),c},clear(){const o=R1(this),r=o.size!==0,s=o.clear();return r&&a3(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=sl(o,e,t)}),n}function Mt(e,t){const n=al(e,t);return(l,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(N1(n,o)&&o in l?n:l,o,r)}const il={get:Mt(!1,!1)},cl={get:Mt(!1,!0)},ul={get:Mt(!0,!1)};const d8=new WeakMap,f8=new WeakMap,A8=new WeakMap,dl=new WeakMap;function fl(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function e5(e){return A3(e)?e:Et(e,!1,ll,il,d8)}function h8(e){return Et(e,!1,rl,cl,f8)}function J5(e){return Et(e,!0,ol,ul,A8)}function Et(e,t,n,l,o){if(!G1(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const r=o.get(e);if(r)return r;const s=fl(Kn(e));if(s===0)return e;const a=new Proxy(e,s===2?l:n);return o.set(e,a),a}function V3(e){return A3(e)?V3(e.__v_raw):!!(e&&e.__v_isReactive)}function A3(e){return!!(e&&e.__v_isReadonly)}function D2(e){return!!(e&&e.__v_isShallow)}function Dt(e){return e?!!e.__v_raw:!1}function R1(e){const t=e&&e.__v_raw;return t?R1(t):e}function Al(e){return!N1(e,"__v_skip")&&Object.isExtensible(e)&&J7(e,"__v_skip",!0),e}const $2=e=>G1(e)?e5(e):e,ue=e=>G1(e)?J5(e):e;function n2(e){return e?e.__v_isRef===!0:!1}function j(e){return p8(e,!1)}function hl(e){return p8(e,!0)}function p8(e,t){return n2(e)?e:new pl(e,t)}class pl{constructor(t,n){this.dep=new It,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:R1(t),this._value=n?t:$2(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||D2(t)||A3(t);t=l?t:R1(t),U2(t,n)&&(this._rawValue=t,this._value=l?t:$2(t),this.dep.trigger())}}function f(e){return n2(e)?e.value:e}const ml={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return n2(o)&&!n2(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function m8(e){return V3(e)?e:new Proxy(e,ml)}class gl{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new It(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Te-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&T1!==this)return n8(this,!0),!0}get value(){const t=this.dep.track();return r8(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function vl(e,t,n=!1){let l,o;return I1(e)?l=e:(l=e.get,o=e.set),new gl(l,o,n)}const g4={},S4=new WeakMap;let $3;function yl(e,t=!1,n=$3){if(n){let l=S4.get(n);l||S4.set(n,l=[]),l.push(e)}}function bl(e,t,n=L1){const{immediate:l,deep:o,once:r,scheduler:s,augmentJob:a,call:i}=n,c=v=>o?v:D2(v)||o===!1||o===0?i3(v,1):i3(v);let d,u,A,p,m=!1,k=!1;if(n2(e)?(u=()=>e.value,m=D2(e)):V3(e)?(u=()=>c(e),m=!0):g1(e)?(k=!0,m=e.some(v=>V3(v)||D2(v)),u=()=>e.map(v=>{if(n2(v))return v.value;if(V3(v))return c(v);if(I1(v))return i?i(v,2):v()})):I1(e)?t?u=i?()=>i(e,2):e:u=()=>{if(A){d3();try{A()}finally{f3()}}const v=$3;$3=d;try{return i?i(e,3,[p]):e(p)}finally{$3=v}}:u=j2,t&&o){const v=u,S=o===!0?1/0:o;u=()=>i3(v(),S)}const D=Jn(),F=()=>{d.stop(),D&&D.active&&bt(D.effects,d)};if(r&&t){const v=t;t=(...S)=>{const L=v(...S);return F(),L}}let C=k?new Array(e.length).fill(g4):g4;const I=v=>{if(!(!(d.flags&1)||!d.dirty&&!v))if(t){const S=d.run();if(v||o||m||(k?S.some((L,Z)=>U2(L,C[Z])):U2(S,C))){A&&A();const L=$3;$3=d;try{const Z=[S,C===g4?void 0:k&&C[0]===g4?[]:C,p];C=S,i?i(t,3,Z):t(...Z)}finally{$3=L}}}else d.run()};return a&&a(I),d=new e8(u),d.scheduler=s?()=>s(I,!1):I,p=v=>yl(v,!1,d),A=d.onStop=()=>{const v=S4.get(d);if(v){if(i)i(v,4);else for(const S of v)S();S4.delete(d)}},t?l?I(!0):C=d.run():s?s(I.bind(null,!0),!0):d.run(),F.pause=d.pause.bind(d),F.resume=d.resume.bind(d),F.stop=F,F}function i3(e,t=1/0,n){if(t<=0||!G1(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,n2(e))i3(e.value,t,n);else if(g1(e))for(let l=0;l{i3(l,t,n)});else if(U7(e)){for(const l in e)i3(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&i3(e[l],t,n)}return e}/** +**/let a2;class Xn{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&a2&&(a2.active?(this.parent=a2,this.index=(a2.scopes||(a2.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes){const l=this.scopes.slice();for(t=0,n=l.length;t0&&--this._on===0){if(a2===this)a2=this.prevScope;else{let t=a2;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,l;for(n=0,l=this.effects.length;n0)return;if(Ke){let t=Ke;for(Ke=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ne;){let t=Ne;for(Ne=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(l){e||(e=l)}t=n}}if(e)throw e}function a8(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function i8(e){let t,n=e.depsTail,l=n;for(;l;){const o=l.prevDep;l.version===-1?(l===n&&(n=o),Mt(l),el(l)):t=l,l.dep.activeLink=l.prevActiveLink,l.prevActiveLink=void 0,l=o}e.deps=t,e.depsTail=n}function Y5(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(c8(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function c8(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Te)||(e.globalVersion=Te,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Y5(e))))return;e.flags|=2;const t=e.dep,n=T1,l=G2;T1=e,G2=!0;try{a8(e);const o=e.fn(e._value);(t.version===0||i2(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{T1=n,G2=l,i8(e),e.flags&=-3}}function Mt(e,t=!1){const{dep:n,prevSub:l,nextSub:o}=e;if(l&&(l.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=l,e.nextSub=void 0),n.subs===e&&(n.subs=l,!l&&n.computed)){n.computed.flags&=-5;for(let s=n.computed.deps;s;s=s.nextDep)Mt(s,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function el(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let G2=!0;const u8=[];function d3(){u8.push(G2),G2=!1}function f3(){const e=u8.pop();G2=e===void 0?!0:e}function l6(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=T1;T1=void 0;try{t()}finally{T1=n}}}let Te=0;class tl{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class e5{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!T1||!G2||T1===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==T1)n=this.activeLink=new tl(T1,this),T1.deps?(n.prevDep=T1.depsTail,T1.depsTail.nextDep=n,T1.depsTail=n):T1.deps=T1.depsTail=n,d8(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const l=n.nextDep;l.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=l),n.prevDep=T1.depsTail,n.nextDep=void 0,T1.depsTail.nextDep=n,T1.depsTail=n,T1.deps===n&&(T1.deps=l)}return n}trigger(t){this.version++,Te++,this.notify(t)}notify(t){_t();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{It()}}}function d8(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let l=t.deps;l;l=l.nextDep)d8(l)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const U5=new WeakMap,V3=Symbol(""),J5=Symbol(""),He=Symbol("");function A2(e,t,n){if(G2&&T1){let l=U5.get(e);l||U5.set(e,l=new Map);let o=l.get(n);o||(l.set(n,o=new e5),o.map=l,o.key=n),o.track()}}function a3(e,t,n,l,o,s){const r=U5.get(e);if(!r){Te++;return}const a=i=>{i&&i.trigger()};if(_t(),t==="clear")r.forEach(a);else{const i=m1(e),c=i&&wt(n);if(i&&n==="length"){const u=Number(l);r.forEach((d,A)=>{(A==="length"||A===He||!O2(A)&&A>=u)&&a(d)})}else switch((n!==void 0||r.has(void 0))&&a(r.get(n)),c&&a(r.get(He)),t){case"add":i?c&&a(r.get("length")):(a(r.get(V3)),D3(e)&&a(r.get(J5)));break;case"delete":i||(a(r.get(V3)),D3(e)&&a(r.get(J5)));break;case"set":D3(e)&&a(r.get(V3));break}}It()}function q3(e){const t=Q1(e);return t===e?t:(A2(t,"iterate",He),Z2(e)?t:t.map(W2))}function t5(e){return A2(e=Q1(e),"iterate",He),e}function Y2(e,t){return A3(e)?de(Y3(e)?W2(t):t):W2(t)}const nl={__proto__:null,[Symbol.iterator](){return C5(this,Symbol.iterator,e=>Y2(this,e))},concat(...e){return q3(this).concat(...e.map(t=>m1(t)?q3(t):t))},entries(){return C5(this,"entries",e=>(e[1]=Y2(this,e[1]),e))},every(e,t){return t3(this,"every",e,t,void 0,arguments)},filter(e,t){return t3(this,"filter",e,t,n=>n.map(l=>Y2(this,l)),arguments)},find(e,t){return t3(this,"find",e,t,n=>Y2(this,n),arguments)},findIndex(e,t){return t3(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return t3(this,"findLast",e,t,n=>Y2(this,n),arguments)},findLastIndex(e,t){return t3(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return t3(this,"forEach",e,t,void 0,arguments)},includes(...e){return w5(this,"includes",e)},indexOf(...e){return w5(this,"indexOf",e)},join(e){return q3(this).join(e)},lastIndexOf(...e){return w5(this,"lastIndexOf",e)},map(e,t){return t3(this,"map",e,t,void 0,arguments)},pop(){return Ce(this,"pop")},push(...e){return Ce(this,"push",e)},reduce(e,...t){return o6(this,"reduce",e,t)},reduceRight(e,...t){return o6(this,"reduceRight",e,t)},shift(){return Ce(this,"shift")},some(e,t){return t3(this,"some",e,t,void 0,arguments)},splice(...e){return Ce(this,"splice",e)},toReversed(){return q3(this).toReversed()},toSorted(e){return q3(this).toSorted(e)},toSpliced(...e){return q3(this).toSpliced(...e)},unshift(...e){return Ce(this,"unshift",e)},values(){return C5(this,"values",e=>Y2(this,e))}};function C5(e,t,n){const l=t5(e),o=l[t]();return l!==e&&!Z2(e)&&(o._next=o.next,o.next=()=>{const s=o._next();return s.done||(s.value=n(s.value)),s}),o}const ll=Array.prototype;function t3(e,t,n,l,o,s){const r=t5(e),a=r!==e&&!Z2(e),i=r[t];if(i!==ll[t]){const d=i.apply(e,s);return a?W2(d):d}let c=n;r!==e&&(a?c=function(d,A){return n.call(this,Y2(e,d),A,e)}:n.length>2&&(c=function(d,A){return n.call(this,d,A,e)}));const u=i.call(r,c,l);return a&&o?o(u):u}function o6(e,t,n,l){const o=t5(e),s=o!==e&&!Z2(e);let r=n,a=!1;o!==e&&(s?(a=l.length===0,r=function(c,u,d){return a&&(a=!1,c=Y2(e,c)),n.call(this,c,Y2(e,u),d,e)}):n.length>3&&(r=function(c,u,d){return n.call(this,c,u,d,e)}));const i=o[t](r,...l);return a?Y2(e,i):i}function w5(e,t,n){const l=Q1(e);A2(l,"iterate",He);const o=l[t](...n);return(o===-1||o===!1)&&Zt(n[0])?(n[0]=Q1(n[0]),l[t](...n)):o}function Ce(e,t,n=[]){d3(),_t();const l=Q1(e)[t].apply(e,n);return It(),f3(),l}const ol=kt("__proto__,__v_isRef,__isVue"),f8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(O2));function sl(e){O2(e)||(e=String(e));const t=Q1(this);return A2(t,"has",e),t.hasOwnProperty(e)}class A8{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,l){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,s=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return s;if(n==="__v_raw")return l===(o?s?pl:g8:s?m8:p8).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(l)?t:void 0;const r=m1(t);if(!o){let i;if(r&&(i=nl[n]))return i;if(n==="hasOwnProperty")return sl}const a=Reflect.get(t,n,n2(t)?t:l);if((O2(n)?f8.has(n):ol(n))||(o||A2(t,"get",n),s))return a;if(n2(a)){const i=r&&wt(n)?a:a.value;return o&&$1(i)?j5(i):i}return $1(a)?o?j5(a):n5(a):a}}class h8 extends A8{constructor(t=!1){super(!1,t)}set(t,n,l,o){let s=t[n];const r=m1(t)&&wt(n);if(!this._isShallow){const c=A3(s);if(!Z2(l)&&!A3(l)&&(s=Q1(s),l=Q1(l)),!r&&n2(s)&&!n2(l))return c||(s.value=l),!0}const a=r?Number(n)e,p4=e=>Reflect.getPrototypeOf(e);function ul(e,t,n){return function(...l){const o=this.__v_raw,s=Q1(o),r=D3(s),a=e==="entries"||e===Symbol.iterator&&r,i=e==="keys"&&r,c=o[e](...l),u=n?z5:t?de:W2;return!t&&A2(s,"iterate",i?J5:V3),l2(Object.create(c),{next(){const{value:d,done:A}=c.next();return A?{value:d,done:A}:{value:a?[u(d[0]),u(d[1])]:u(d),done:A}}})}}function m4(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function dl(e,t){const n={get(o){const s=this.__v_raw,r=Q1(s),a=Q1(o);e||(i2(o,a)&&A2(r,"get",o),A2(r,"get",a));const{has:i}=p4(r),c=t?z5:e?de:W2;if(i.call(r,o))return c(s.get(o));if(i.call(r,a))return c(s.get(a));s!==r&&s.get(o)},get size(){const o=this.__v_raw;return!e&&A2(Q1(o),"iterate",V3),o.size},has(o){const s=this.__v_raw,r=Q1(s),a=Q1(o);return e||(i2(o,a)&&A2(r,"has",o),A2(r,"has",a)),o===a?s.has(o):s.has(o)||s.has(a)},forEach(o,s){const r=this,a=r.__v_raw,i=Q1(a),c=t?z5:e?de:W2;return!e&&A2(i,"iterate",V3),a.forEach((u,d)=>o.call(s,c(u),c(d),r))}};return l2(n,e?{add:m4("add"),set:m4("set"),delete:m4("delete"),clear:m4("clear")}:{add(o){const s=Q1(this),r=p4(s),a=Q1(o),i=!t&&!Z2(o)&&!A3(o)?a:o;return r.has.call(s,i)||i2(o,i)&&r.has.call(s,o)||i2(a,i)&&r.has.call(s,a)||(s.add(i),a3(s,"add",i,i)),this},set(o,s){!t&&!Z2(s)&&!A3(s)&&(s=Q1(s));const r=Q1(this),{has:a,get:i}=p4(r);let c=a.call(r,o);c||(o=Q1(o),c=a.call(r,o));const u=i.call(r,o);return r.set(o,s),c?i2(s,u)&&a3(r,"set",o,s):a3(r,"add",o,s),this},delete(o){const s=Q1(this),{has:r,get:a}=p4(s);let i=r.call(s,o);i||(o=Q1(o),i=r.call(s,o)),a&&a.call(s,o);const c=s.delete(o);return i&&a3(s,"delete",o,void 0),c},clear(){const o=Q1(this),s=o.size!==0,r=o.clear();return s&&a3(o,"clear",void 0,void 0),r}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=ul(o,e,t)}),n}function Et(e,t){const n=dl(e,t);return(l,o,s)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?l:Reflect.get(K1(n,o)&&o in l?n:l,o,s)}const fl={get:Et(!1,!1)},Al={get:Et(!1,!0)},hl={get:Et(!0,!1)};const p8=new WeakMap,m8=new WeakMap,g8=new WeakMap,pl=new WeakMap;function ml(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function n5(e){return A3(e)?e:Dt(e,!1,al,fl,p8)}function v8(e){return Dt(e,!1,cl,Al,m8)}function j5(e){return Dt(e,!0,il,hl,g8)}function Dt(e,t,n,l,o){if(!$1(e)||e.__v_raw&&!(t&&e.__v_isReactive)||e.__v_skip||!Object.isExtensible(e))return e;const s=o.get(e);if(s)return s;const r=ml(Wn(e));if(r===0)return e;const a=new Proxy(e,r===2?l:n);return o.set(e,a),a}function Y3(e){return A3(e)?Y3(e.__v_raw):!!(e&&e.__v_isReactive)}function A3(e){return!!(e&&e.__v_isReadonly)}function Z2(e){return!!(e&&e.__v_isShallow)}function Zt(e){return e?!!e.__v_raw:!1}function Q1(e){const t=e&&e.__v_raw;return t?Q1(t):e}function gl(e){return!K1(e,"__v_skip")&&Object.isExtensible(e)&&q7(e,"__v_skip",!0),e}const W2=e=>$1(e)?n5(e):e,de=e=>$1(e)?j5(e):e;function n2(e){return e?e.__v_isRef===!0:!1}function j(e){return y8(e,!1)}function vl(e){return y8(e,!0)}function y8(e,t){return n2(e)?e:new yl(e,t)}class yl{constructor(t,n){this.dep=new e5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Q1(t),this._value=n?t:W2(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,l=this.__v_isShallow||Z2(t)||A3(t);t=l?t:Q1(t),i2(t,n)&&(this._rawValue=t,this._value=l?t:W2(t),this.dep.trigger())}}function f(e){return n2(e)?e.value:e}const bl={get:(e,t,n)=>t==="__v_raw"?e:f(Reflect.get(e,t,n)),set:(e,t,n,l)=>{const o=e[t];return n2(o)&&!n2(n)?(o.value=n,!0):Reflect.set(e,t,n,l)}};function b8(e){return Y3(e)?e:new Proxy(e,bl)}class kl{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new e5,{get:l,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=l,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Cl(e){return new kl(e)}class wl{constructor(t,n,l){this.fn=t,this.setter=n,this._value=void 0,this.dep=new e5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Te-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=l}notify(){if(this.flags|=16,!(this.flags&8)&&T1!==this)return r8(this,!0),!0}get value(){const t=this.dep.track();return c8(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function xl(e,t,n=!1){let l,o;return I1(e)?l=e:(l=e.get,o=e.set),new wl(l,o,n)}const g4={},S4=new WeakMap;let O3;function _l(e,t=!1,n=O3){if(n){let l=S4.get(n);l||S4.set(n,l=[]),l.push(e)}}function Il(e,t,n=R1){const{immediate:l,deep:o,once:s,scheduler:r,augmentJob:a,call:i}=n,c=_=>o?_:Z2(_)||o===!1||o===0?i3(_,1):i3(_);let u,d,A,p,m=!1,v=!1;if(n2(e)?(d=()=>e.value,m=Z2(e)):Y3(e)?(d=()=>c(e),m=!0):m1(e)?(v=!0,m=e.some(_=>Y3(_)||Z2(_)),d=()=>e.map(_=>{if(n2(_))return _.value;if(Y3(_))return c(_);if(I1(_))return i?i(_,2):_()})):I1(e)?t?d=i?()=>i(e,2):e:d=()=>{if(A){d3();try{A()}finally{f3()}}const _=O3;O3=u;try{return i?i(e,3,[p]):e(p)}finally{O3=_}}:d=j2,t&&o){const _=d,B=o===!0?1/0:o;d=()=>i3(_(),B)}const M=qn(),Z=()=>{u.stop(),M&&M.active&&Ct(M.effects,u)};if(s&&t){const _=t;t=(...B)=>{const $=_(...B);return Z(),$}}let k=v?new Array(e.length).fill(g4):g4;const F=_=>{if(!(!(u.flags&1)||!u.dirty&&!_))if(t){const B=u.run();if(_||o||m||(v?B.some(($,D)=>i2($,k[D])):i2(B,k))){A&&A();const $=O3;O3=u;try{const D=[B,k===g4?void 0:v&&k[0]===g4?[]:k,p];k=B,i?i(t,3,D):t(...D)}finally{O3=$}}}else u.run()};return a&&a(F),u=new o8(d),u.scheduler=r?()=>r(F,!1):F,p=_=>_l(_,!1,u),A=u.onStop=()=>{const _=S4.get(u);if(_){if(i)i(_,4);else for(const B of _)B();S4.delete(u)}},t?l?F(!0):k=u.run():r?r(F.bind(null,!0),!0):u.run(),Z.pause=u.pause.bind(u),Z.resume=u.resume.bind(u),Z.stop=Z,Z}function i3(e,t=1/0,n){if(t<=0||!$1(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,n2(e))i3(e.value,t,n);else if(m1(e))for(let l=0;l{i3(l,t,n)});else if(X7(e)){for(const l in e)i3(e[l],t,n);for(const l of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,l)&&i3(e[l],t,n)}return e}/** * @vue/runtime-core v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/function d4(e,t,n,l){try{return l?e(...l):e()}catch(o){t5(o,t,n)}}function Z2(e,t,n,l){if(I1(e)){const o=d4(e,t,n,l);return o&&Y7(o)&&o.catch(r=>{t5(r,t,n)}),o}if(g1(e)){const o=[];for(let r=0;r>>1,o=y2[l],r=Ye(o);r=Ye(n)?y2.push(e):y2.splice(Cl(t),0,e),e.flags|=1,y8()}}function y8(){R4||(R4=g8.then(k8))}function wl(e){if(!g1(e))x3&&e.id===-1?x3.splice(ne+1,0,e):e.flags&1||(re.push(e),e.flags|=1);else for(let t=0;tYe(n)-Ye(l));if(re.length=0,x3){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function k8(e){try{for(H2=0;H2{l._d&&O4(-1);const r=Q4(t),s=u3.length;let a;try{a=e(...o)}finally{for(let i=u3.length;i>s;i--)Qt();Q4(r),l._d&&O4(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function Ke(e,t){if(i2===null)return e;const n=a5(i2),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&I1(t)?t.call(l&&l.proxy):t}}const xl=Symbol.for("v-scx"),_l=()=>G2(xl);function q1(e,t,n){return w8(e,t,n)}function w8(e,t,n=L1){const{immediate:l,deep:o,flush:r,once:s}=n,a=r2({},n),i=t&&l||!t&&r!=="post";let c;if(je){if(r==="sync"){const p=_l();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!i){const p=()=>{};return p.stop=j2,p.resume=j2,p.pause=j2,p}}const d=h2;a.call=(p,m,k)=>Z2(p,d,m,k);let u=!1;r==="post"?a.scheduler=p=>{m2(p,d&&d.suspense)}:r!=="sync"&&(u=!0,a.scheduler=(p,m)=>{m?p():Zt(p)}),a.augmentJob=p=>{t&&(p.flags|=4),u&&(p.flags|=2,d&&(p.id=d.uid,p.i=d))};const A=bl(e,t,a);return je&&(c?c.push(A):i&&A()),A}function Il(e,t,n){const l=this.proxy,o=Y1(e)?e.includes(".")?x8(l,e):()=>l[e]:e.bind(l,l);let r;I1(t)?r=t:(r=t.handler,n=t);const s=f4(this),a=w8(o,r.bind(l),n);return s(),a}function x8(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,W3=e=>e&&(e.disabled||e.disabled===""),Ml=e=>e&&(e.defer||e.defer===""),l6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,o6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,z5=(e,t)=>{const n=e&&e.to;return Y1(n)?t?t(n):null:n},El={name:"Teleport",__isTeleport:!0,process(e,t,n,l,o,r,s,a,i,c){const{mc:d,pc:u,pbc:A,o:{insert:p,querySelector:m,createText:k,createComment:D,parentNode:F}}=c,C=W3(t.props);let{dynamicChildren:I}=t;const v=(Z,_,R)=>{Z.shapeFlag&16&&d(Z.children,_,R,o,r,s,a,i)},S=(Z=t)=>{const _=W3(Z.props),R=Z.target=z5(Z.props,m),B=j5(R,Z,k,p);R&&(s!=="svg"&&l6(R)?s="svg":s!=="mathml"&&o6(R)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(R),_||(v(Z,R,B),Fe(Z,!1)))},L=Z=>{const _=()=>{if(w3.get(Z)===_){if(w3.delete(Z),W3(Z.props)){const R=F(Z.el)||n;v(Z,R,Z.anchor),Fe(Z,!0)}S(Z)}};w3.set(Z,_),m2(_,r)};if(e==null){const Z=t.el=k(""),_=t.anchor=k("");if(p(Z,n,l),p(_,n,l),Ml(t.props)||r&&r.pendingBranch){L(t);return}C&&(v(t,n,_),Fe(t,!0)),S()}else{t.el=e.el;const Z=t.anchor=e.anchor,_=w3.get(e);if(_){_.flags|=8,w3.delete(e),L(t);return}t.targetStart=e.targetStart;const R=t.target=e.target,B=t.targetAnchor=e.targetAnchor,q=W3(e.props),V=q?n:R,m1=q?Z:B;if(s==="svg"||l6(R)?s="svg":(s==="mathml"||o6(R))&&(s="mathml"),I?(A(e.dynamicChildren,I,V,o,r,s,a),Rt(e,t,!0)):i||u(e,t,V,m1,o,r,s,a,!1),C)q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):v4(t,n,Z,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const y1=z5(t.props,m);y1&&(t.target=y1,v4(t,y1,null,c,0))}else q&&v4(t,R,B,c,1);Fe(t,C)}},remove(e,t,n,{um:l,o:{remove:o}},r){const{shapeFlag:s,children:a,anchor:i,targetStart:c,targetAnchor:d,target:u,props:A}=e,p=W3(A),m=r||!p,k=w3.get(e);if(k&&(k.flags|=8,w3.delete(e)),u&&(o(c),o(d)),r&&o(i),!k&&(p||u)&&s&16)for(let D=0;D{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const I2=[Function,Array],I8={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:I2,onEnter:I2,onAfterEnter:I2,onEnterCancelled:I2,onBeforeLeave:I2,onLeave:I2,onAfterLeave:I2,onLeaveCancelled:I2,onBeforeAppear:I2,onAppear:I2,onAfterAppear:I2,onAppearCancelled:I2},M8=e=>{const t=e.subTree;return t.component?M8(t.component):t},Bl={name:"BaseTransition",props:I8,setup(e,{slots:t}){const n=t0(),l=Fl();return()=>{const o=t.default&&Z8(t.default(),!0),r=o&&o.length?E8(o):n.subTree?W():void 0;if(!r)return;const s=R1(e),{mode:a}=s;if(l.isLeaving)return C5(r);const i=N4(r);if(!i)return C5(r);let c=X5(i,s,l,n,u=>c=u);i.type!==A2&&Ve(i,c);let d=n.subTree&&N4(n.subTree);if(d&&d.type!==A2&&!L3(d,i)&&M8(n).type!==A2){let u=X5(d,s,l,n);if(Ve(d,u),a==="out-in"&&i.type!==A2)return l.isLeaving=!0,u.afterLeave=()=>{l.isLeaving=!1,n.job.flags&8||n.update(),delete u.afterLeave,d=void 0},C5(r);a==="in-out"&&i.type!==A2?u.delayLeave=(A,p,m)=>{const k=D8(l,d);k[String(d.key)]=d,A[E2]=()=>{p(),A[E2]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return r}}};function E8(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==A2){t=n;break}}return t}const Sl=Bl;function D8(e,t){const{leavingVNodes:n}=e;let l=n.get(t.type);return l||(l=Object.create(null),n.set(t.type,l)),l}function X5(e,t,n,l,o){const{appear:r,mode:s,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:A,onLeave:p,onAfterLeave:m,onLeaveCancelled:k,onBeforeAppear:D,onAppear:F,onAfterAppear:C,onAppearCancelled:I}=t,v=String(e.key),S=D8(n,e),L=(R,B)=>{R&&Z2(R,l,9,B)},Z=(R,B)=>{const q=B[1];L(R,B),g1(R)?R.every(V=>V.length<=1)&&q():R.length<=1&&q()},_={mode:s,persisted:a,beforeEnter(R){let B=i;if(!n.isMounted)if(r)B=D||i;else return;R[E2]&&R[E2](!0);const q=S[v];q&&L3(e,q)&&q.el[E2]&&q.el[E2](),L(B,[R])},enter(R){if(S[v]===e)return;let B=c,q=d,V=u;if(!n.isMounted)if(r)B=F||c,q=C||d,V=I||u;else return;let m1=!1;R[Ce]=l1=>{m1||(m1=!0,l1?L(V,[R]):L(q,[R]),_.delayedLeave&&_.delayedLeave(),R[Ce]=void 0)};const y1=R[Ce].bind(null,!1);B?Z(B,[R,y1]):y1()},leave(R,B){const q=String(e.key);if(R[Ce]&&R[Ce](!0),n.isUnmounting)return B();L(A,[R]);let V=!1;R[E2]=y1=>{V||(V=!0,B(),y1?L(k,[R]):L(m,[R]),R[E2]=void 0,S[q]===e&&delete S[q])};const m1=R[E2].bind(null,!1);S[q]=e,p?Z(p,[R,m1]):m1()},clone(R){const B=X5(R,t,n,l,o);return o&&o(B),B}};return _}function C5(e){if(l5(e))return e=D3(e),e.children=null,e}function N4(e){if(!l5(e))return n5(e.type)&&e.children?E8(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&I1(n.default))return n.default()}}function Ve(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Ve(n5(n.type)&&N4(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function Z8(e,t=!1,n){let l=[],o=0;for(let r=0;r1)for(let r=0;rGe(k,t&&(g1(t)?t[D]:t),n,l,o));return}if(se(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Ge(e,t,n,l.component.subTree);return}const r=l.shapeFlag&4?a5(l.component):l.el,s=o?null:r,{i:a,r:i}=e,c=t&&t.r,d=a.refs===L1?a.refs={}:a.refs,u=a.setupState,A=R1(u),p=u===L1?H7:k=>r6(d,k)?!1:N1(A,k),m=(k,D)=>!(D&&r6(d,D));if(c!=null&&c!==i){if(s6(t),Y1(c))d[c]=null,p(c)&&(u[c]=null);else if(n2(c)){const k=t;m(c,k.k)&&(c.value=null),k.k&&(d[k.k]=null)}}if(I1(i))d4(i,a,12,[s,d]);else{const k=Y1(i),D=n2(i);if(k||D){const F=()=>{if(e.f){const C=k?p(i)?u[i]:d[i]:m()||!e.k?i.value:d[e.k];if(o)g1(C)&&bt(C,r);else if(g1(C))C.includes(r)||C.push(r);else if(k)d[i]=[r],p(i)&&(u[i]=d[i]);else{const I=[r];m(i,e.k)&&(i.value=I),e.k&&(d[e.k]=I)}}else k?(d[i]=s,p(i)&&(u[i]=s)):D&&(m(i,e.k)&&(i.value=s),e.k&&(d[e.k]=s))};if(s){const C=()=>{F(),K4.delete(e)};C.id=-1,K4.set(e,C),m2(C,n)}else s6(e),F()}}}function s6(e){const t=K4.get(e);t&&(t.flags|=8,K4.delete(e))}X4().requestIdleCallback;X4().cancelIdleCallback;const se=e=>!!e.type.__asyncLoader,l5=e=>e.type.__isKeepAlive;function Rl(e,t){B8(e,"a",t)}function Ql(e,t){B8(e,"da",t)}function B8(e,t,n=h2){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(o5(t,l,n),n){let o=n.parent;for(;o&&o.parent;)l5(o.parent.vnode)&&Nl(l,t,n,o),o=o.parent}}function Nl(e,t,n,l){const o=o5(t,e,l,!0);ge(()=>{bt(l[t],o)},n)}function o5(e,t,n=h2,l=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{d3();const a=f4(n),i=Z2(t,n,e,s);return a(),f3(),i});return l?o.unshift(r):o.push(r),r}}const m3=e=>(t,n=h2)=>{(!je||e==="sp")&&o5(e,(...l)=>t(...l),n)},Kl=m3("bm"),d2=m3("m"),Gl=m3("bu"),Ol=m3("u"),Ft=m3("bum"),ge=m3("um"),$l=m3("sp"),Wl=m3("rtg"),Ll=m3("rtc");function Pl(e,t=h2){o5("ec",e,t)}const S8="components";function q5(e,t){return Q8(S8,e,!0,t)||e}const R8=Symbol.for("v-ndc");function k2(e){return Y1(e)?Q8(S8,e,!1)||e:e||R8}function Q8(e,t,n=!0,l=!1){const o=i2||h2;if(o){const r=o.type;{const a=Eo(r,!1);if(a&&(a===t||a===b2(t)||a===j4(b2(t))))return r}const s=a6(o[e]||r[e],t)||a6(o.appContext[e],t);return!s&&l?r:s}}function a6(e,t){return e&&(e[t]||e[b2(t)]||e[j4(b2(t))])}function _1(e,t,n,l){let o;const r=n,s=g1(e);if(s||Y1(e)){const a=s&&V3(e);let i=!1,c=!1;a&&(i=!D2(e),c=A3(e),e=q4(e)),o=new Array(e.length);for(let d=0,u=e.length;dt(a,i,void 0,r));else{const a=Object.keys(e);o=new Array(a.length);for(let i=0,c=a.length;i{const r=l.fn(...o);return r&&(r.key=l.key),r}:l.fn)}return e}function K1(e,t,n,l,o,r){if(n==null&&(n={}),i2.ce||i2.parent&&se(i2.parent)&&i2.parent.ce){const c=n,d=Object.keys(c).length>0;return t!=="default"&&(c.name=t),h(),G(n1,null,[M("slot",c,l&&l())],d?-2:64)}let s=e[t];s&&s._c&&(s._d=!1);const a=u3.length;h();let i;try{const c=s&&N8(s(n)),d=n.key||r||c&&c.key;i=G(n1,{key:(d&&!O2(d)?d:`_${t}`)+(!c&&l?"_fb":"")},c||(l?l():[]),c&&e._===1?64:-2)}catch(c){for(let d=u3.length;d>a;d--)Qt();throw c}finally{s&&s._c&&(s._d=!0)}return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),i}function N8(e){return e.some(t=>Je(t)?!(t.type===A2||t.type===n1&&!N8(t.children)):!0)?e:null}const et=e=>e?n0(e)?a5(e):et(e.parent):null,Oe=r2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>et(e.parent),$root:e=>et(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>G8(e),$forceUpdate:e=>e.f||(e.f=()=>{Zt(e.update)}),$nextTick:e=>e.n||(e.n=v8.bind(e.proxy)),$watch:e=>Il.bind(e)}),w5=(e,t)=>e!==L1&&!e.__isScriptSetup&&N1(e,t),Tl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:r,accessCache:s,type:a,appContext:i}=e;if(t[0]!=="$"){const A=s[t];if(A!==void 0)switch(A){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(w5(l,t))return s[t]=1,l[t];if(o!==L1&&N1(o,t))return s[t]=2,o[t];if(N1(r,t))return s[t]=3,r[t];if(n!==L1&&N1(n,t))return s[t]=4,n[t];tt&&(s[t]=0)}}const c=Oe[t];let d,u;if(c)return t==="$attrs"&&f2(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==L1&&N1(n,t))return s[t]=4,n[t];if(u=i.config.globalProperties,N1(u,t))return u[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:r}=e;return w5(o,t)?(o[t]=n,!0):l!==L1&&N1(l,t)?(l[t]=n,!0):N1(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:r,type:s}},a){let i;return!!(n[a]||e!==L1&&a[0]!=="$"&&N1(e,a)||w5(t,a)||N1(r,a)||N1(l,a)||N1(Oe,a)||N1(o.config.globalProperties,a)||(i=s.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:N1(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function c6(e){return g1(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let tt=!0;function Hl(e){const t=G8(e),n=e.proxy,l=e.ctx;tt=!1,t.beforeCreate&&u6(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:s,watch:a,provide:i,inject:c,created:d,beforeMount:u,mounted:A,beforeUpdate:p,updated:m,activated:k,deactivated:D,beforeDestroy:F,beforeUnmount:C,destroyed:I,unmounted:v,render:S,renderTracked:L,renderTriggered:Z,errorCaptured:_,serverPrefetch:R,expose:B,inheritAttrs:q,components:V,directives:m1,filters:y1}=t;if(c&&Yl(c,l,null),s)for(const v1 in s){const C1=s[v1];I1(C1)&&(l[v1]=C1.bind(n))}if(o){const v1=o.call(n,n);G1(v1)&&(e.data=e5(v1))}if(tt=!0,r)for(const v1 in r){const C1=r[v1],k1=I1(C1)?C1.bind(n,n):I1(C1.get)?C1.get.bind(n,n):j2,s1=!I1(C1)&&I1(C1.set)?C1.set.bind(n):j2,O1=t1({get:k1,set:s1});Object.defineProperty(l,v1,{enumerable:!0,configurable:!0,get:()=>O1.value,set:F1=>O1.value=F1})}if(a)for(const v1 in a)K8(a[v1],l,n,v1);if(i){const v1=I1(i)?i.call(n):i;Reflect.ownKeys(v1).forEach(C1=>{D4(C1,v1[C1])})}d&&u6(d,e,"c");function o1(v1,C1){g1(C1)?C1.forEach(k1=>v1(k1.bind(n))):C1&&v1(C1.bind(n))}if(o1(Kl,u),o1(d2,A),o1(Gl,p),o1(Ol,m),o1(Rl,k),o1(Ql,D),o1(Pl,_),o1(Ll,L),o1(Wl,Z),o1(Ft,C),o1(ge,v),o1($l,R),g1(B))if(B.length){const v1=e.exposed||(e.exposed={});B.forEach(C1=>{Object.defineProperty(v1,C1,{get:()=>n[C1],set:k1=>n[C1]=k1,enumerable:!0})})}else e.exposed||(e.exposed={});S&&e.render===j2&&(e.render=S),q!=null&&(e.inheritAttrs=q),V&&(e.components=V),m1&&(e.directives=m1),R&&F8(e)}function Yl(e,t,n=j2){g1(e)&&(e=nt(e));for(const l in e){const o=e[l];let r;G1(o)?"default"in o?r=G2(o.from||l,o.default,!0):r=G2(o.from||l):r=G2(o),n2(r)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>r.value,set:s=>r.value=s}):t[l]=r}}function u6(e,t,n){Z2(g1(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function K8(e,t,n,l){let o=l.includes(".")?x8(n,l):()=>n[l];if(Y1(e)){const r=t[e];I1(r)&&q1(o,r)}else if(I1(e))q1(o,e.bind(n));else if(G1(e))if(g1(e))e.forEach(r=>K8(r,t,n,l));else{const r=I1(e.handler)?e.handler.bind(n):t[e.handler];I1(r)&&q1(o,r,e)}}function G8(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let i;return a?i=a:!o.length&&!n&&!l?i=t:(i={},o.length&&o.forEach(c=>G4(i,c,s,!0)),G4(i,t,s)),G1(t)&&r.set(t,i),i}function G4(e,t,n,l=!1){const{mixins:o,extends:r}=t;r&&G4(e,r,n,!0),o&&o.forEach(s=>G4(e,s,n,!0));for(const s in t)if(!(l&&s==="expose")){const a=Vl[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const Vl={data:d6,props:f6,emits:f6,methods:Be,computed:Be,beforeCreate:p2,created:p2,beforeMount:p2,mounted:p2,beforeUpdate:p2,updated:p2,beforeDestroy:p2,beforeUnmount:p2,destroyed:p2,unmounted:p2,activated:p2,deactivated:p2,errorCaptured:p2,serverPrefetch:p2,components:Be,directives:Be,watch:Jl,provide:d6,inject:Ul};function d6(e,t){return t?e?function(){return r2(I1(e)?e.call(this,this):e,I1(t)?t.call(this,this):t)}:t:e}function Ul(e,t){return Be(nt(e),nt(t))}function nt(e){if(g1(e)){const t={};for(let n=0;nt==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${b2(t)}Modifiers`]||e[`${F3(t)}Modifiers`];function ql(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||L1;let o=n;const r=t.startsWith("update:"),s=r&&Xl(l,t.slice(7));s&&(s.trim&&(o=n.map(d=>Y1(d)?d.trim():d)),s.number&&(o=o.map(Ct)));let a,i=l[a=g5(t)]||l[a=g5(b2(t))];!i&&r&&(i=l[a=g5(F3(t))]),i&&Z2(i,e,6,o);const c=l[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Z2(c,e,6,o)}}const eo=new WeakMap;function $8(e,t,n=!1){const l=n?eo:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const r=e.emits;let s={},a=!1;if(!I1(e)){const i=c=>{const d=$8(c,t,!0);d&&(a=!0,r2(s,d))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!r&&!a?(G1(e)&&l.set(e,null),null):(g1(r)?r.forEach(i=>s[i]=null):r2(s,r),G1(e)&&l.set(e,s),s)}function r5(e,t){return!e||!U4(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),N1(e,t[0].toLowerCase()+t.slice(1))||N1(e,F3(t))||N1(e,t))}function A6(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[r],slots:s,attrs:a,emit:i,render:c,renderCache:d,props:u,data:A,setupState:p,ctx:m,inheritAttrs:k}=e,D=Q4(e);let F,C;try{if(n.shapeFlag&4){const v=o||l,S=v;F=V2(c.call(S,v,d,u,p,A,m)),C=a}else{const v=t;F=V2(v.length>1?v(u,{attrs:a,slots:s,emit:i}):v(u,null)),C=t.props?a:to(a)}}catch(v){u3.length=0,t5(v,e,1),F=M(A2)}let I=F;if(C&&k!==!1){const v=Object.keys(C),{shapeFlag:S}=I;v.length&&S&7&&(r&&v.some(J4)&&(C=no(C,r)),I=D3(I,C,!1,!0))}if(n.dirs&&(I=D3(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(n.dirs):n.dirs),n.transition){const v=n5(I.type)&&N4(I)||I;Ve(v,n.transition)}return F=I,Q4(D),F}const to=e=>{let t;for(const n in e)(n==="class"||n==="style"||U4(n))&&((t||(t={}))[n]=e[n]);return t},no=(e,t)=>{const n={};for(const l in e)(!J4(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function lo(e,t,n){const{props:l,children:o,component:r}=e,{props:s,children:a,patchFlag:i}=t,c=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return l?h6(l,s,c):!!s;if(i&8){const d=t.dynamicProps;for(let u=0;uObject.create(L8),T8=e=>Object.getPrototypeOf(e)===L8;function ro(e,t,n,l=!1){const o={},r=P8();e.propsDefaults=Object.create(null),H8(e,t,o,r);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=l?o:h8(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function so(e,t,n,l){const{props:o,attrs:r,vnode:{patchFlag:s}}=e,a=R1(o),[i]=e.propsOptions;let c=!1;if((l||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let u=0;u{i=!0;const[A,p]=Y8(u,t,!0);r2(s,A),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!i)return G1(e)&&l.set(e,oe),oe;if(g1(r))for(let d=0;de==="_"||e==="_ctx"||e==="$stable",St=e=>g1(e)?e.map(V2):[V2(e)],io=(e,t,n)=>{if(t._n)return t;const l=x((...o)=>St(t(...o)),n);return l._c=!1,l},V8=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Bt(o))continue;const r=e[o];if(I1(r))t[o]=io(o,r,l);else if(r!=null){const s=St(r);t[o]=()=>s}}},U8=(e,t)=>{const n=St(t);e.slots.default=()=>n},J8=(e,t,n)=>{for(const l in t)(n||!Bt(l))&&(e[l]=t[l])},co=(e,t,n)=>{const l=e.slots=P8();if(e.vnode.shapeFlag&32){const o=t._;o?(J8(l,t,n),n&&J7(l,"_",o,!0)):V8(t,l)}else t&&U8(e,t)},uo=(e,t,n)=>{const{vnode:l,slots:o}=e;let r=!0,s=L1;if(l.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:J8(o,t,n):(r=!t.$stable,V8(t,o)),s=t}else t&&(U8(e,t),s={default:1});if(r)for(const a in o)!Bt(a)&&s[a]==null&&delete o[a]},m2=mo;function fo(e){return Ao(e)}function Ao(e,t){const n=X4();n.__VUE__=!0;const{insert:l,remove:o,patchProp:r,createElement:s,createText:a,createComment:i,setText:c,setElementText:d,parentNode:u,nextSibling:A,setScopeId:p=j2,insertStaticContent:m}=e,k=(g,b,E,P=null,Y=null,T=null,r1=void 0,e1=null,X=!!b.dynamicChildren)=>{if(g===b)return;g&&!L3(g,b)&&(P=$(g),F1(g,Y,T,!0),g=null),b.patchFlag===-2&&(X=!1,b.dynamicChildren=null);const{type:J,ref:p1,shapeFlag:N}=b;switch(J){case s5:D(g,b,E,P);break;case A2:F(g,b,E,P);break;case Z4:g==null&&C(b,E,P,r1);break;case n1:V(g,b,E,P,Y,T,r1,e1,X);break;default:N&1?S(g,b,E,P,Y,T,r1,e1,X):N&6?m1(g,b,E,P,Y,T,r1,e1,X):(N&64||N&128)&&J.process(g,b,E,P,Y,T,r1,e1,X,f1)}p1!=null&&Y?Ge(p1,g&&g.ref,T,b||g,!b):p1==null&&g&&g.ref!=null&&Ge(g.ref,null,T,g,!0)},D=(g,b,E,P)=>{if(g==null)l(b.el=a(b.children),E,P);else{const Y=b.el=g.el;b.children!==g.children&&c(Y,b.children)}},F=(g,b,E,P)=>{g==null?l(b.el=i(b.children||""),E,P):b.el=g.el},C=(g,b,E,P)=>{[g.el,g.anchor]=m(g.children,b,E,P,g.el,g.anchor)},I=({el:g,anchor:b},E,P)=>{let Y;for(;g&&g!==b;)Y=A(g),l(g,E,P),g=Y;l(b,E,P)},v=({el:g,anchor:b})=>{let E;for(;g&&g!==b;)E=A(g),o(g),g=E;o(b)},S=(g,b,E,P,Y,T,r1,e1,X)=>{if(b.type==="svg"?r1="svg":b.type==="math"&&(r1="mathml"),g==null)L(b,E,P,Y,T,r1,e1,X);else{const J=g.el&&g.el._isVueCE?g.el:null;try{J&&J._beginPatch(),R(g,b,Y,T,r1,e1,X)}finally{J&&J._endPatch()}}},L=(g,b,E,P,Y,T,r1,e1)=>{let X,J;const{props:p1,shapeFlag:N,transition:O,dirs:d1}=g;if(X=g.el=s(g.type,T,p1&&p1.is,p1),N&8?d(X,g.children):N&16&&_(g.children,X,null,P,Y,x5(g,T),r1,e1),d1&&S3(g,null,P,"created"),Z(X,g,g.scopeId,r1,P),p1){for(const M1 in p1)M1!=="value"&&!Re(M1)&&r(X,M1,null,p1[M1],T,P);"value"in p1&&r(X,"value",null,p1.value,T),(J=p1.onVnodeBeforeMount)&&L2(J,P,g)}d1&&S3(g,null,P,"beforeMount");const H=ho(Y,O);H&&O.beforeEnter(X),l(X,b,E),((J=p1&&p1.onVnodeMounted)||H||d1)&&m2(()=>{try{J&&L2(J,P,g),H&&O.enter(X),d1&&S3(g,null,P,"mounted")}finally{}},Y)},Z=(g,b,E,P,Y)=>{if(E&&p(g,E),P)for(let T=0;T{for(let J=X;J{const e1=b.el=g.el;let{patchFlag:X,dynamicChildren:J,dirs:p1}=b;X|=g.patchFlag&16;const N=g.props||L1,O=b.props||L1;let d1;if(E&&R3(E,!1),(d1=O.onVnodeBeforeUpdate)&&L2(d1,E,b,g),p1&&S3(b,g,E,"beforeUpdate"),E&&R3(E,!0),J&&(!g.dynamicChildren||g.dynamicChildren.length!==J.length)&&(X=0,r1=!1,J=null),(N.innerHTML&&O.innerHTML==null||N.textContent&&O.textContent==null)&&d(e1,""),J?B(g.dynamicChildren,J,e1,E,P,x5(b,Y),T):r1||C1(g,b,e1,null,E,P,x5(b,Y),T,!1),X>0){if(X&16)q(e1,N,O,E,Y);else if(X&2&&N.class!==O.class&&r(e1,"class",null,O.class,Y),X&4&&r(e1,"style",N.style,O.style,Y),X&8){const H=b.dynamicProps;for(let M1=0;M1{d1&&L2(d1,E,b,g),p1&&S3(b,g,E,"updated")},P)},B=(g,b,E,P,Y,T,r1)=>{for(let e1=0;e1{if(b!==E){if(b!==L1)for(const T in b)!Re(T)&&!(T in E)&&r(g,T,b[T],null,Y,P);for(const T in E){if(Re(T))continue;const r1=E[T],e1=b[T];r1!==e1&&T!=="value"&&r(g,T,e1,r1,Y,P)}"value"in E&&r(g,"value",b.value,E.value,Y)}},V=(g,b,E,P,Y,T,r1,e1,X)=>{const J=b.el=g?g.el:a(""),p1=b.anchor=g?g.anchor:a("");let{patchFlag:N,dynamicChildren:O,slotScopeIds:d1}=b;d1&&(e1=e1?e1.concat(d1):d1),g==null?(l(J,E,P),l(p1,E,P),_(b.children||[],E,p1,Y,T,r1,e1,X)):N>0&&N&64&&O&&g.dynamicChildren&&g.dynamicChildren.length===O.length?(B(g.dynamicChildren,O,E,Y,T,r1,e1),(b.key!=null||Y&&b===Y.subTree)&&Rt(g,b,!0)):C1(g,b,E,p1,Y,T,r1,e1,X)},m1=(g,b,E,P,Y,T,r1,e1,X)=>{b.slotScopeIds=e1,g==null?b.shapeFlag&512?Y.ctx.activate(b,E,P,r1,X):y1(b,E,P,Y,T,r1,X):l1(g,b,X)},y1=(g,b,E,P,Y,T,r1)=>{const e1=g.component=wo(g,P,Y);if(l5(g)&&(e1.ctx.renderer=f1),xo(e1,!1,r1),e1.asyncDep){if(Y&&Y.registerDep(e1,o1,r1),!g.el){const X=e1.subTree=M(A2);F(null,X,b,E),g.placeholder=X.el}}else o1(e1,g,b,E,Y,T,r1)},l1=(g,b,E)=>{const P=b.component=g.component;if(lo(g,b,E))if(P.asyncDep&&!P.asyncResolved){v1(P,b,E);return}else P.next=b,P.update();else b.el=g.el,P.vnode=b},o1=(g,b,E,P,Y,T,r1)=>{const e1=()=>{if(g.isMounted){let{next:N,bu:O,u:d1,parent:H,vnode:M1}=g;{const w2=z8(g);if(w2){N&&(N.el=M1.el,v1(g,N,r1)),w2.asyncDep.then(()=>{m2(()=>{g.isUnmounted||J()},Y)});return}}let B1=N,U1;R3(g,!1),N?(N.el=M1.el,v1(g,N,r1)):N=M1,O&&E4(O),(U1=N.props&&N.props.onVnodeBeforeUpdate)&&L2(U1,H,N,M1),R3(g,!0);const t2=A6(g),C2=g.subTree;g.subTree=t2,k(C2,t2,u(C2.el),$(C2),g,Y,T),N.el=t2.el,B1===null&&oo(g,t2.el),d1&&m2(d1,Y),(U1=N.props&&N.props.onVnodeUpdated)&&m2(()=>L2(U1,H,N,M1),Y)}else{let N;const{el:O,props:d1}=b,{bm:H,m:M1,parent:B1,root:U1,type:t2}=g,C2=se(b);R3(g,!1),H&&E4(H),!C2&&(N=d1&&d1.onVnodeBeforeMount)&&L2(N,B1,b),R3(g,!0);{U1.ce&&U1.ce._hasShadowRoot()&&U1.ce._injectChildStyle(t2,g.parent?g.parent.type:void 0);const w2=g.subTree=A6(g);k(null,w2,E,P,g,Y,T),b.el=w2.el}if(M1&&m2(M1,Y),!C2&&(N=d1&&d1.onVnodeMounted)){const w2=b;m2(()=>L2(N,B1,w2),Y)}(b.shapeFlag&256||B1&&se(B1.vnode)&&B1.vnode.shapeFlag&256)&&g.a&&m2(g.a,Y),g.isMounted=!0,b=E=P=null}};g.scope.on();const X=g.effect=new e8(e1);g.scope.off();const J=g.update=X.run.bind(X),p1=g.job=X.runIfDirty.bind(X);p1.i=g,p1.id=g.uid,X.scheduler=()=>Zt(p1),R3(g,!0),J()},v1=(g,b,E)=>{b.component=g;const P=g.vnode.props;g.vnode=b,g.next=null,so(g,b.props,P,E),uo(g,b.children,E),d3(),n6(g),f3()},C1=(g,b,E,P,Y,T,r1,e1,X=!1)=>{const J=g&&g.children,p1=g?g.shapeFlag:0,N=b.children,{patchFlag:O,shapeFlag:d1}=b;if(O>0){if(O&128){s1(J,N,E,P,Y,T,r1,e1,X);return}else if(O&256){k1(J,N,E,P,Y,T,r1,e1,X);return}}d1&8?(p1&16&&h1(J,Y,T),N!==J&&d(E,N)):p1&16?d1&16?s1(J,N,E,P,Y,T,r1,e1,X):h1(J,Y,T,!0):(p1&8&&d(E,""),d1&16&&_(N,E,P,Y,T,r1,e1,X))},k1=(g,b,E,P,Y,T,r1,e1,X)=>{g=g||oe,b=b||oe;const J=g.length,p1=b.length,N=Math.min(J,p1);let O;for(O=0;Op1?h1(g,Y,T,!0,!1,N):_(b,E,P,Y,T,r1,e1,X,N)},s1=(g,b,E,P,Y,T,r1,e1,X)=>{let J=0;const p1=b.length;let N=g.length-1,O=p1-1;for(;J<=N&&J<=O;){const d1=g[J],H=b[J]=X?s3(b[J]):V2(b[J]);if(L3(d1,H))k(d1,H,E,null,Y,T,r1,e1,X);else break;J++}for(;J<=N&&J<=O;){const d1=g[N],H=b[O]=X?s3(b[O]):V2(b[O]);if(L3(d1,H))k(d1,H,E,null,Y,T,r1,e1,X);else break;N--,O--}if(J>N){if(J<=O){const d1=O+1,H=d1O)for(;J<=N;)F1(g[J],Y,T,!0),J++;else{const d1=J,H=J,M1=new Map;for(J=H;J<=O;J++){const P1=b[J]=X?s3(b[J]):V2(b[J]);P1.key!=null&&M1.set(P1.key,J)}let B1,U1=0;const t2=O-H+1;let C2=!1,w2=0;const y3=new Array(t2);for(J=0;J=t2){F1(P1,Y,T,!0);continue}let F2;if(P1.key!=null)F2=M1.get(P1.key);else for(B1=H;B1<=O;B1++)if(y3[B1-H]===0&&L3(P1,b[B1])){F2=B1;break}F2===void 0?F1(P1,Y,T,!0):(y3[F2-H]=J+1,F2>=w2?w2=F2:C2=!0,k(P1,b[F2],E,null,Y,T,r1,e1,X),U1++)}const S1=C2?po(y3):oe;for(B1=S1.length-1,J=t2-1;J>=0;J--){const P1=H+J,F2=b[P1],Jt=b[P1+1],zt=P1+1{const{el:T,type:r1,transition:e1,children:X,shapeFlag:J}=g;if(J&6){O1(g.component.subTree,b,E,P);return}if(J&128){g.suspense.move(b,E,P);return}if(J&64){r1.move(g,b,E,f1);return}if(r1===n1){l(T,b,E);for(let N=0;Ne1.enter(T),Y));else{const{leave:N,delayLeave:O,afterLeave:d1}=e1,H=()=>{g.ctx.isUnmounted?o(T):l(T,b,E)},M1=()=>{const B1=T._isLeaving||!!T[E2];T._isLeaving&&T[E2](!0),e1.persisted&&!B1?H():N(T,()=>{H(),d1&&d1()})};O?O(T,H,M1):M1()}else l(T,b,E)},F1=(g,b,E,P=!1,Y=!1)=>{const{type:T,props:r1,ref:e1,children:X,dynamicChildren:J,shapeFlag:p1,patchFlag:N,dirs:O,cacheIndex:d1,memo:H}=g;if(N===-2&&(Y=!1),e1!=null&&(d3(),Ge(e1,null,E,g,!0),f3()),d1!=null&&(b.renderCache[d1]=void 0),p1&256){b.ctx.deactivate(g);return}const M1=p1&1&&O,B1=!se(g);let U1;if(B1&&(U1=r1&&r1.onVnodeBeforeUnmount)&&L2(U1,b,g),p1&6)a1(g.component,E,P);else{if(p1&128){g.suspense.unmount(E,P);return}M1&&S3(g,null,b,"beforeUnmount"),p1&64?g.type.remove(g,b,E,f1,P):J&&!J.hasOnce&&(T!==n1||N>0&&N&64)?h1(J,b,E,!1,!0):(T===n1&&N&384||!Y&&p1&16)&&h1(X,b,E),P&&V1(g)}const t2=H!=null&&d1==null;(B1&&(U1=r1&&r1.onVnodeUnmounted)||M1||t2)&&m2(()=>{U1&&L2(U1,b,g),M1&&S3(g,null,b,"unmounted"),t2&&(g.el=null)},E)},V1=g=>{const{type:b,el:E,anchor:P,transition:Y}=g;if(b===n1){e2(E,P);return}if(b===Z4){v(g);return}const T=()=>{o(E),Y&&!Y.persisted&&Y.afterLeave&&Y.afterLeave()};if(g.shapeFlag&1&&Y&&!Y.persisted){const{leave:r1,delayLeave:e1}=Y,X=()=>r1(E,T);e1?e1(g.el,T,X):X()}else T()},e2=(g,b)=>{let E;for(;g!==b;)E=A(g),o(g),g=E;o(b)},a1=(g,b,E)=>{const{bum:P,scope:Y,job:T,subTree:r1,um:e1,m:X,a:J}=g;m6(X),m6(J),P&&E4(P),Y.stop(),T&&(T.flags|=8,F1(r1,g,b,E)),e1&&m2(e1,b),m2(()=>{g.isUnmounted=!0},b)},h1=(g,b,E,P=!1,Y=!1,T=0)=>{for(let r1=T;r1{if(g.shapeFlag&6)return $(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const b=A(g.anchor||g.el),E=b&&b[_8];return E?A(E):b};let z=!1;const K=(g,b,E)=>{let P;g==null?b._vnode&&(F1(b._vnode,null,null,!0),P=b._vnode.component):k(b._vnode||null,g,b,null,null,null,E),b._vnode=g,z||(z=!0,n6(P),b8(),z=!1)},f1={p:k,um:F1,m:O1,r:V1,mt:y1,mc:_,pc:C1,pbc:B,n:$,o:e};return{render:K,hydrate:void 0,createApp:jl(K)}}function x5({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function R3({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ho(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Rt(e,t,n=!1){const l=e.children,o=t.children;if(g1(l)&&g1(o))for(let r=0;r>1,e[n[a]]0&&(t[l]=n[r-1]),n[r]=l)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}function z8(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:z8(t)}function m6(e){if(e)for(let t=0;te.__isSuspense;function mo(e,t){t&&t.pendingBranch?g1(e)?t.effects.push(...e):t.effects.push(e):wl(e)}const n1=Symbol.for("v-fgt"),s5=Symbol.for("v-txt"),A2=Symbol.for("v-cmt"),Z4=Symbol.for("v-stc"),u3=[];let x2=null;function h(e=!1){u3.push(x2=e?null:[])}function Qt(){u3.pop(),x2=u3[u3.length-1]||null}let Ue=1;function O4(e,t=!1){Ue+=e,e<0&&x2&&t&&(x2.hasOnce=!0)}function q8(e){return e.dynamicChildren=Ue>0?x2||oe:null,Qt(),Ue>0&&x2&&x2.push(e),e}function w(e,t,n,l,o,r){return q8(y(e,t,n,l,o,r,!0))}function G(e,t,n,l,o){return q8(M(e,t,n,l,o,!0))}function Je(e){return e?e.__v_isVNode===!0:!1}function L3(e,t){return e.type===t.type&&e.key===t.key}const e0=({key:e})=>e??null,F4=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Y1(e)||n2(e)||I1(e)?{i:i2,r:e,k:t,f:!!n}:e:null);function y(e,t=null,n=null,l=0,o=null,r=e===n1?0:1,s=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&e0(t),ref:t&&F4(t),scopeId:C8,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:r,patchFlag:l,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:i2};return a?($4(i,n),r&128&&e.normalize(i)):n&&(i.shapeFlag|=Y1(n)?8:16),Ue>0&&!s&&x2&&(i.patchFlag>0||r&6)&&i.patchFlag!==32&&x2.push(i),i}const M=go;function go(e,t=null,n=null,l=0,o=null,r=!1){if((!e||e===R8)&&(e=A2),Je(e)){const a=D3(e,t,!0);return n&&$4(a,n),Ue>0&&!r&&x2&&(a.shapeFlag&6?x2[x2.indexOf(e)]=a:x2.push(a)),a.patchFlag=-2,a}if(Do(e)&&(e=e.__vccOpts),t){t=vo(t);let{class:a,style:i}=t;a&&!Y1(a)&&(t.class=i1(a)),G1(i)&&(Dt(i)&&!g1(i)&&(i=r2({},i)),t.style=M2(i))}const s=Y1(e)?1:X8(e)?128:n5(e)?64:G1(e)?4:I1(e)?2:0;return y(e,t,n,l,o,s,r,!0)}function vo(e){return e?Dt(e)||T8(e)?r2({},e):e:null}function D3(e,t,n=!1,l=!1){const{props:o,ref:r,patchFlag:s,children:a,transition:i}=e,c=t?bo(o||{},t):o,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&e0(c),ref:t&&t.ref?n&&r?g1(r)?r.concat(F4(t)):[r,F4(t)]:F4(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==n1?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&D3(e.ssContent),ssFallback:e.ssFallback&&D3(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&l&&Ve(d,i.clone(d)),d}function U(e=" ",t=0){return M(s5,null,e,t)}function yo(e,t){const n=M(Z4,null,e);return n.staticCount=t,n}function W(e="",t=!1){return t?(h(),G(A2,null,e)):M(A2,null,e)}function V2(e){return e==null||typeof e=="boolean"?M(A2):g1(e)?M(n1,null,e.slice()):Je(e)?s3(e):M(s5,null,String(e))}function s3(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:D3(e)}function $4(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(g1(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),$4(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!T8(t)?t._ctx=i2:o===3&&i2&&(i2.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(I1(t)){if(l&65){$4(e,{default:t});return}t={default:t,_ctx:i2},n=32}else t=String(t),l&64?(n=16,t=[U(t)]):n=8;e.children=t,e.shapeFlag|=n}function bo(...e){const t={};for(let n=0;nh2||i2;let W4,ze;{const e=X4(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),r=>{o.length>1?o.forEach(s=>s(r)):o[0](r)}};W4=t("__VUE_INSTANCE_SETTERS__",n=>h2=n),ze=t("__VUE_SSR_SETTERS__",n=>je=n)}const f4=e=>{const t=h2;return W4(e),e.scope.on(),()=>{e.scope.off(),W4(t)}},g6=()=>{h2&&h2.scope.off(),W4(null)};function n0(e){return e.vnode.shapeFlag&4}let je=!1;function xo(e,t=!1,n=!1){t&&ze(t);const{props:l,children:o}=e.vnode,r=n0(e);ro(e,l,r,t),co(e,o,n||t);const s=r?_o(e,t):void 0;return t&&ze(!1),s}function _o(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Tl);const{setup:l}=n;if(l){d3();const o=e.setupContext=l.length>1?Mo(e):null,r=f4(e),s=d4(l,e,0,[e.props,o]),a=Y7(s);if(f3(),r(),(a||e.sp)&&!se(e)&&F8(e),a){if(s.then(g6,g6),t)return s.then(i=>{ze(!0);try{v6(e,i,t)}finally{ze(!1)}}).catch(i=>{t5(i,e,0)});e.asyncDep=s}else v6(e,s)}else l0(e)}function v6(e,t,n){I1(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:G1(t)&&(e.setupState=m8(t)),l0(e)}function l0(e,t,n){const l=e.type;e.render||(e.render=l.render||j2);{const o=f4(e);d3();try{Hl(e)}finally{f3(),o()}}}const Io={get(e,t){return f2(e,"get",""),e[t]}};function Mo(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,Io),slots:e.slots,emit:e.emit,expose:t}}function a5(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(m8(Al(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Oe)return Oe[n](e)},has(t,n){return n in t||n in Oe}})):e.proxy}function Eo(e,t=!0){return I1(e)?e.displayName||e.name:e.name||t&&e.__name}function Do(e){return I1(e)&&"__vccOpts"in e}const t1=(e,t)=>vl(e,t,je);function h3(e,t,n){try{O4(-1);const l=arguments.length;return l===2?G1(t)&&!g1(t)?Je(t)?M(e,null,[t]):M(e,t):M(e,null,t):(l>3?n=Array.prototype.slice.call(arguments,2):l===3&&Je(n)&&(n=[n]),M(e,t,n))}finally{O4(1)}}const Zo="3.5.42";/** +**/function d4(e,t,n,l){try{return l?e(...l):e()}catch(o){l5(o,t,n)}}function F2(e,t,n,l){if(I1(e)){const o=d4(e,t,n,l);return o&&z7(o)&&o.catch(s=>{l5(s,t,n)}),o}if(m1(e)){const o=[];for(let s=0;s>>1,o=k2[l],s=Ve(o);s=Ve(n)?k2.push(e):k2.splice(El(t),0,e),e.flags|=1,w8()}}function w8(){R4||(R4=k8.then(_8))}function Dl(e){if(!m1(e))_3&&e.id===-1?_3.splice(ne+1,0,e):e.flags&1||(se.push(e),e.flags|=1);else for(let t=0;tVe(n)-Ve(l));if(se.length=0,_3){for(let n=0;ne.id==null?e.flags&2?-1:1/0:e.id;function _8(e){try{for(V2=0;V2{l._d&&O4(-1);const s=Q4(t),r=u3.length;let a;try{a=e(...o)}finally{for(let i=u3.length;i>r;i--)Kt();Q4(s),l._d&&O4(1)}return a};return l._n=!0,l._c=!0,l._d=!0,l}function re(e,t){if(c2===null)return e;const n=c5(c2),l=e.dirs||(e.dirs=[]);for(let o=0;o1)return n&&I1(t)?t.call(l&&l.proxy):t}}const Zl=Symbol.for("v-scx"),Fl=()=>$2(Zl);function Bl(e,t){return Bt(e,null,{flush:"sync"})}function q1(e,t,n){return Bt(e,t,n)}function Bt(e,t,n=R1){const{immediate:l,deep:o,flush:s,once:r}=n,a=l2({},n),i=t&&l||!t&&s!=="post";let c;if(je){if(s==="sync"){const p=Fl();c=p.__watcherHandles||(p.__watcherHandles=[])}else if(!i){const p=()=>{};return p.stop=j2,p.resume=j2,p.pause=j2,p}}const u=p2;a.call=(p,m,v)=>F2(p,u,m,v);let d=!1;s==="post"?a.scheduler=p=>{v2(p,u&&u.suspense)}:s!=="sync"&&(d=!0,a.scheduler=(p,m)=>{m?p():Ft(p)}),a.augmentJob=p=>{t&&(p.flags|=4),d&&(p.flags|=2,u&&(p.id=u.uid,p.i=u))};const A=Il(e,t,a);return je&&(c?c.push(A):i&&A()),A}function Sl(e,t,n){const l=this.proxy,o=V1(e)?e.includes(".")?M8(l,e):()=>l[e]:e.bind(l,l);let s;I1(t)?s=t:(s=t.handler,n=t);const r=f4(this),a=Bt(o,s.bind(l),n);return r(),a}function M8(e,t){const n=t.split(".");return()=>{let l=e;for(let o=0;oe.__isTeleport,W3=e=>e&&(e.disabled||e.disabled===""),Rl=e=>e&&(e.defer||e.defer===""),r6=e=>typeof SVGElement<"u"&&e instanceof SVGElement,a6=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,X5=(e,t)=>{const n=e&&e.to;return V1(n)?t?t(n):null:n},Ql={name:"Teleport",__isTeleport:!0,process(e,t,n,l,o,s,r,a,i,c){const{mc:u,pc:d,pbc:A,o:{insert:p,querySelector:m,createText:v,createComment:M,parentNode:Z}}=c,k=W3(t.props);let{dynamicChildren:F}=t;const _=(D,w,Q)=>{D.shapeFlag&16&&u(D.children,w,Q,o,s,r,a,i)},B=(D=t)=>{const w=W3(D.props),Q=D.target=X5(D.props,m),S=q5(Q,D,v,p);Q&&(r!=="svg"&&r6(Q)?r="svg":r!=="mathml"&&a6(Q)&&(r="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(Q),w||(_(D,Q,S),Be(D,!1)))},$=D=>{const w=()=>{if(x3.get(D)===w){if(x3.delete(D),W3(D.props)){const Q=Z(D.el)||n;_(D,Q,D.anchor),Be(D,!0)}B(D)}};x3.set(D,w),v2(w,s)};if(e==null){const D=t.el=v(""),w=t.anchor=v("");if(p(D,n,l),p(w,n,l),Rl(t.props)||s&&s.pendingBranch){$(t);return}k&&(_(t,n,w),Be(t,!0)),B()}else{t.el=e.el;const D=t.anchor=e.anchor,w=x3.get(e);if(w){w.flags|=8,x3.delete(e),$(t);return}t.targetStart=e.targetStart;const Q=t.target=e.target,S=t.targetAnchor=e.targetAnchor,q=W3(e.props),Y=q?n:Q,g1=q?D:S;if(r==="svg"||r6(Q)?r="svg":(r==="mathml"||a6(Q))&&(r="mathml"),F?(A(e.dynamicChildren,F,Y,o,s,r,a),Nt(e,t,!0)):i||d(e,t,Y,g1,o,s,r,a,!1),k)q?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):v4(t,n,D,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const y1=X5(t.props,m);y1&&(t.target=y1,v4(t,y1,null,c,0))}else q&&v4(t,Q,S,c,1);Be(t,k)}},remove(e,t,n,{um:l,o:{remove:o}},s){const{shapeFlag:r,children:a,anchor:i,targetStart:c,targetAnchor:u,target:d,props:A}=e,p=W3(A),m=s||!p,v=x3.get(e);if(v&&(v.flags|=8,x3.delete(e)),d&&(o(c),o(u)),s&&o(i),!v&&(p||d)&&r&16)for(let M=0;M{e.isMounted=!0}),St(()=>{e.isUnmounting=!0}),e}const M2=[Function,Array],D8={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:M2,onEnter:M2,onAfterEnter:M2,onEnterCancelled:M2,onBeforeLeave:M2,onLeave:M2,onAfterLeave:M2,onLeaveCancelled:M2,onBeforeAppear:M2,onAppear:M2,onAfterAppear:M2,onAppearCancelled:M2},Z8=e=>{const t=e.subTree;return t.component?Z8(t.component):t},$l={name:"BaseTransition",props:D8,setup(e,{slots:t}){const n=Gt(),l=Gl();return()=>{const o=t.default&&S8(t.default(),!0),s=o&&o.length?F8(o):n.subTree?L():void 0;if(!s)return;const r=Q1(e),{mode:a}=r;if(l.isLeaving)return x5(s);const i=N4(s);if(!i)return x5(s);let c=et(i,r,l,n,d=>c=d);i.type!==h2&&Ye(i,c);let u=n.subTree&&N4(n.subTree);if(u&&u.type!==h2&&!L3(u,i)&&Z8(n).type!==h2){let d=et(u,r,l,n);if(Ye(u,d),a==="out-in"&&i.type!==h2)return l.isLeaving=!0,d.afterLeave=()=>{l.isLeaving=!1,n.job.flags&8||n.update(),delete d.afterLeave,u=void 0},x5(s);a==="in-out"&&i.type!==h2?d.delayLeave=(A,p,m)=>{const v=B8(l,u);v[String(u.key)]=u,A[D2]=()=>{p(),A[D2]=void 0,delete c.delayedLeave,u=void 0},c.delayedLeave=()=>{m(),delete c.delayedLeave,u=void 0}}:u=void 0}else u&&(u=void 0);return s}}};function F8(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==h2){t=n;break}}return t}const Ol=$l;function B8(e,t){const{leavingVNodes:n}=e;let l=n.get(t.type);return l||(l=Object.create(null),n.set(t.type,l)),l}function et(e,t,n,l,o){const{appear:s,mode:r,persisted:a=!1,onBeforeEnter:i,onEnter:c,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:A,onLeave:p,onAfterLeave:m,onLeaveCancelled:v,onBeforeAppear:M,onAppear:Z,onAfterAppear:k,onAppearCancelled:F}=t,_=String(e.key),B=B8(n,e),$=(Q,S)=>{Q&&F2(Q,l,9,S)},D=(Q,S)=>{const q=S[1];$(Q,S),m1(Q)?Q.every(Y=>Y.length<=1)&&q():Q.length<=1&&q()},w={mode:r,persisted:a,beforeEnter(Q){let S=i;if(!n.isMounted)if(s)S=M||i;else return;Q[D2]&&Q[D2](!0);const q=B[_];q&&L3(e,q)&&q.el[D2]&&q.el[D2](),$(S,[Q])},enter(Q){if(B[_]===e)return;let S=c,q=u,Y=d;if(!n.isMounted)if(s)S=Z||c,q=k||u,Y=F||d;else return;let g1=!1;Q[we]=l1=>{g1||(g1=!0,l1?$(Y,[Q]):$(q,[Q]),w.delayedLeave&&w.delayedLeave(),Q[we]=void 0)};const y1=Q[we].bind(null,!1);S?D(S,[Q,y1]):y1()},leave(Q,S){const q=String(e.key);if(Q[we]&&Q[we](!0),n.isUnmounting)return S();$(A,[Q]);let Y=!1;Q[D2]=y1=>{Y||(Y=!0,S(),y1?$(v,[Q]):$(m,[Q]),Q[D2]=void 0,B[q]===e&&delete B[q])};const g1=Q[D2].bind(null,!1);B[q]=e,p?D(p,[Q,g1]):g1()},clone(Q){const S=et(Q,t,n,l,o);return o&&o(S),S}};return w}function x5(e){if(s5(e))return e=Z3(e),e.children=null,e}function N4(e){if(!s5(e))return o5(e.type)&&e.children?F8(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&I1(n.default))return n.default()}}function Ye(e,t){if(e.shapeFlag&6&&e.component){e.transition=t;const n=e.component.subTree;Ye(o5(n.type)&&N4(n)||n,t)}else e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function S8(e,t=!1,n){let l=[],o=0;for(let s=0;s1)for(let s=0;sGe(v,t&&(m1(t)?t[M]:t),n,l,o));return}if(ae(l)&&!o){l.shapeFlag&512&&l.type.__asyncResolved&&l.component.subTree.component&&Ge(e,t,n,l.component.subTree);return}const s=l.shapeFlag&4?c5(l.component):l.el,r=o?null:s,{i:a,r:i}=e,c=t&&t.r,u=a.refs===R1?a.refs={}:a.refs,d=a.setupState,A=Q1(d),p=d===R1?J7:v=>i6(u,v)?!1:K1(A,v),m=(v,M)=>!(M&&i6(u,M));if(c!=null&&c!==i){if(c6(t),V1(c))u[c]=null,p(c)&&(d[c]=null);else if(n2(c)){const v=t;m(c,v.k)&&(c.value=null),v.k&&(u[v.k]=null)}}if(I1(i))d4(i,a,12,[r,u]);else{const v=V1(i),M=n2(i);if(v||M){const Z=()=>{if(e.f){const k=v?p(i)?d[i]:u[i]:m()||!e.k?i.value:u[e.k];if(o)m1(k)&&Ct(k,s);else if(m1(k))k.includes(s)||k.push(s);else if(v)u[i]=[s],p(i)&&(d[i]=u[i]);else{const F=[s];m(i,e.k)&&(i.value=F),e.k&&(u[e.k]=F)}}else v?(u[i]=r,p(i)&&(d[i]=r)):M&&(m(i,e.k)&&(i.value=r),e.k&&(u[e.k]=r))};if(r){const k=()=>{Z(),K4.delete(e)};k.id=-1,K4.set(e,k),v2(k,n)}else c6(e),Z()}}}function c6(e){const t=K4.get(e);t&&(t.flags|=8,K4.delete(e))}q4().requestIdleCallback;q4().cancelIdleCallback;const ae=e=>!!e.type.__asyncLoader,s5=e=>e.type.__isKeepAlive;function Wl(e,t){Q8(e,"a",t)}function Ll(e,t){Q8(e,"da",t)}function Q8(e,t,n=p2){const l=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(r5(t,l,n),n){let o=n.parent;for(;o&&o.parent;)s5(o.parent.vnode)&&Pl(l,t,n,o),o=o.parent}}function Pl(e,t,n,l){const o=r5(t,e,l,!0);ve(()=>{Ct(l[t],o)},n)}function r5(e,t,n=p2,l=!1){if(n){const o=n[e]||(n[e]=[]),s=t.__weh||(t.__weh=(...r)=>{d3();const a=f4(n),i=F2(t,n,e,r);return a(),f3(),i});return l?o.unshift(s):o.push(s),s}}const g3=e=>(t,n=p2)=>{(!je||e==="sp")&&r5(e,(...l)=>t(...l),n)},Tl=g3("bm"),f2=g3("m"),Hl=g3("bu"),Vl=g3("u"),St=g3("bum"),ve=g3("um"),Yl=g3("sp"),Ul=g3("rtg"),Jl=g3("rtc");function zl(e,t=p2){r5("ec",e,t)}const N8="components";function tt(e,t){return G8(N8,e,!0,t)||e}const K8=Symbol.for("v-ndc");function C2(e){return V1(e)?G8(N8,e,!1)||e:e||K8}function G8(e,t,n=!0,l=!1){const o=c2||p2;if(o){const s=o.type;{const a=Qo(s,!1);if(a&&(a===t||a===m2(t)||a===X4(m2(t))))return s}const r=u6(o[e]||s[e],t)||u6(o.appContext[e],t);return!r&&l?s:r}}function u6(e,t){return e&&(e[t]||e[m2(t)]||e[X4(m2(t))])}function w1(e,t,n,l){let o;const s=n,r=m1(e);if(r||V1(e)){const a=r&&Y3(e);let i=!1,c=!1;a&&(i=!Z2(e),c=A3(e),e=t5(e)),o=new Array(e.length);for(let u=0,d=e.length;ut(a,i,void 0,s));else{const a=Object.keys(e);o=new Array(a.length);for(let i=0,c=a.length;i{const s=l.fn(...o);return s&&(s.key=l.key),s}:l.fn)}return e}function G1(e,t,n,l,o,s){if(n==null&&(n={}),c2.ce||c2.parent&&ae(c2.parent)&&c2.parent.ce){const c=n,u=Object.keys(c).length>0;return t!=="default"&&(c.name=t),h(),K(n1,null,[I("slot",c,l&&l())],u?-2:64)}let r=e[t];r&&r._c&&(r._d=!1);const a=u3.length;h();let i;try{const c=r&&$8(r(n)),u=n.key||s||c&&c.key;i=K(n1,{key:(u&&!O2(u)?u:`_${t}`)+(!c&&l?"_fb":"")},c||(l?l():[]),c&&e._===1?64:-2)}catch(c){for(let u=u3.length;u>a;u--)Kt();throw c}finally{r&&r._c&&(r._d=!0)}return i.scopeId&&(i.slotScopeIds=[i.scopeId+"-s"]),i}function $8(e){return e.some(t=>Je(t)?!(t.type===h2||t.type===n1&&!$8(t.children)):!0)?e:null}const nt=e=>e?s0(e)?c5(e):nt(e.parent):null,$e=l2(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nt(e.parent),$root:e=>nt(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>W8(e),$forceUpdate:e=>e.f||(e.f=()=>{Ft(e.update)}),$nextTick:e=>e.n||(e.n=C8.bind(e.proxy)),$watch:e=>Sl.bind(e)}),_5=(e,t)=>e!==R1&&!e.__isScriptSetup&&K1(e,t),jl={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:l,data:o,props:s,accessCache:r,type:a,appContext:i}=e;if(t[0]!=="$"){const A=r[t];if(A!==void 0)switch(A){case 1:return l[t];case 2:return o[t];case 4:return n[t];case 3:return s[t]}else{if(_5(l,t))return r[t]=1,l[t];if(o!==R1&&K1(o,t))return r[t]=2,o[t];if(K1(s,t))return r[t]=3,s[t];if(n!==R1&&K1(n,t))return r[t]=4,n[t];lt&&(r[t]=0)}}const c=$e[t];let u,d;if(c)return t==="$attrs"&&A2(e.attrs,"get",""),c(e);if((u=a.__cssModules)&&(u=u[t]))return u;if(n!==R1&&K1(n,t))return r[t]=4,n[t];if(d=i.config.globalProperties,K1(d,t))return d[t]},set({_:e},t,n){const{data:l,setupState:o,ctx:s}=e;return _5(o,t)?(o[t]=n,!0):l!==R1&&K1(l,t)?(l[t]=n,!0):K1(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:l,appContext:o,props:s,type:r}},a){let i;return!!(n[a]||e!==R1&&a[0]!=="$"&&K1(e,a)||_5(t,a)||K1(s,a)||K1(l,a)||K1($e,a)||K1(o.config.globalProperties,a)||(i=r.__cssModules)&&i[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:K1(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function G4(e){return m1(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function f6(e,t){return!e||!t?e||t:m1(e)&&m1(t)?e.concat(t):l2({},G4(e),G4(t))}let lt=!0;function Xl(e){const t=W8(e),n=e.proxy,l=e.ctx;lt=!1,t.beforeCreate&&A6(t.beforeCreate,e,"bc");const{data:o,computed:s,methods:r,watch:a,provide:i,inject:c,created:u,beforeMount:d,mounted:A,beforeUpdate:p,updated:m,activated:v,deactivated:M,beforeDestroy:Z,beforeUnmount:k,destroyed:F,unmounted:_,render:B,renderTracked:$,renderTriggered:D,errorCaptured:w,serverPrefetch:Q,expose:S,inheritAttrs:q,components:Y,directives:g1,filters:y1}=t;if(c&&ql(c,l,null),r)for(const v1 in r){const C1=r[v1];I1(C1)&&(l[v1]=C1.bind(n))}if(o){const v1=o.call(n,n);$1(v1)&&(e.data=n5(v1))}if(lt=!0,s)for(const v1 in s){const C1=s[v1],k1=I1(C1)?C1.bind(n,n):I1(C1.get)?C1.get.bind(n,n):j2,r1=!I1(C1)&&I1(C1.set)?C1.set.bind(n):j2,O1=e1({get:k1,set:r1});Object.defineProperty(l,v1,{enumerable:!0,configurable:!0,get:()=>O1.value,set:F1=>O1.value=F1})}if(a)for(const v1 in a)O8(a[v1],l,n,v1);if(i){const v1=I1(i)?i.call(n):i;Reflect.ownKeys(v1).forEach(C1=>{D4(C1,v1[C1])})}u&&A6(u,e,"c");function o1(v1,C1){m1(C1)?C1.forEach(k1=>v1(k1.bind(n))):C1&&v1(C1.bind(n))}if(o1(Tl,d),o1(f2,A),o1(Hl,p),o1(Vl,m),o1(Wl,v),o1(Ll,M),o1(zl,w),o1(Jl,$),o1(Ul,D),o1(St,k),o1(ve,_),o1(Yl,Q),m1(S))if(S.length){const v1=e.exposed||(e.exposed={});S.forEach(C1=>{Object.defineProperty(v1,C1,{get:()=>n[C1],set:k1=>n[C1]=k1,enumerable:!0})})}else e.exposed||(e.exposed={});B&&e.render===j2&&(e.render=B),q!=null&&(e.inheritAttrs=q),Y&&(e.components=Y),g1&&(e.directives=g1),Q&&R8(e)}function ql(e,t,n=j2){m1(e)&&(e=ot(e));for(const l in e){const o=e[l];let s;$1(o)?"default"in o?s=$2(o.from||l,o.default,!0):s=$2(o.from||l):s=$2(o),n2(s)?Object.defineProperty(t,l,{enumerable:!0,configurable:!0,get:()=>s.value,set:r=>s.value=r}):t[l]=s}}function A6(e,t,n){F2(m1(e)?e.map(l=>l.bind(t.proxy)):e.bind(t.proxy),t,n)}function O8(e,t,n,l){let o=l.includes(".")?M8(n,l):()=>n[l];if(V1(e)){const s=t[e];I1(s)&&q1(o,s)}else if(I1(e))q1(o,e.bind(n));else if($1(e))if(m1(e))e.forEach(s=>O8(s,t,n,l));else{const s=I1(e.handler)?e.handler.bind(n):t[e.handler];I1(s)&&q1(o,s,e)}}function W8(e){const t=e.type,{mixins:n,extends:l}=t,{mixins:o,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,a=s.get(t);let i;return a?i=a:!o.length&&!n&&!l?i=t:(i={},o.length&&o.forEach(c=>$4(i,c,r,!0)),$4(i,t,r)),$1(t)&&s.set(t,i),i}function $4(e,t,n,l=!1){const{mixins:o,extends:s}=t;s&&$4(e,s,n,!0),o&&o.forEach(r=>$4(e,r,n,!0));for(const r in t)if(!(l&&r==="expose")){const a=eo[r]||n&&n[r];e[r]=a?a(e[r],t[r]):t[r]}return e}const eo={data:h6,props:p6,emits:p6,methods:Se,computed:Se,beforeCreate:g2,created:g2,beforeMount:g2,mounted:g2,beforeUpdate:g2,updated:g2,beforeDestroy:g2,beforeUnmount:g2,destroyed:g2,unmounted:g2,activated:g2,deactivated:g2,errorCaptured:g2,serverPrefetch:g2,components:Se,directives:Se,watch:no,provide:h6,inject:to};function h6(e,t){return t?e?function(){return l2(I1(e)?e.call(this,this):e,I1(t)?t.call(this,this):t)}:t:e}function to(e,t){return Se(ot(e),ot(t))}function ot(e){if(m1(e)){const t={};for(let n=0;n{let u,d=R1,A;return Bl(()=>{const p=e[o];i2(u,p)&&(u=p,c())}),{get(){return i(),n.get?n.get(u):u},set(p){const m=n.set?n.set(p):p;if(!i2(m,u)&&!(d!==R1&&i2(p,d)))return;const v=l.vnode.props,M=!!(v&&(t in v||o in v||s in v)&&(`onUpdate:${t}`in v||`onUpdate:${o}`in v||`onUpdate:${s}`in v));M||(u=p,c()),l.emit(`update:${t}`,m),i2(p,d)&&(i2(p,m)&&!i2(m,A)||M&&d!==R1&&!i2(m,u))&&c(),d=p,A=m}}});return a[Symbol.iterator]=()=>{let i=0;return{next(){return i<2?{value:i++?r||R1:a,done:!1}:{done:!0}}}},a}const P8=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${m2(t)}Modifiers`]||e[`${m3(t)}Modifiers`];function ro(e,t,...n){if(e.isUnmounted)return;const l=e.vnode.props||R1;let o=n;const s=t.startsWith("update:"),r=s&&P8(l,t.slice(7));r&&(r.trim&&(o=n.map(u=>V1(u)?u.trim():u)),r.number&&(o=o.map(xt)));let a,i=l[a=y5(t)]||l[a=y5(m2(t))];!i&&s&&(i=l[a=y5(m3(t))]),i&&F2(i,e,6,o);const c=l[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,F2(c,e,6,o)}}const ao=new WeakMap;function T8(e,t,n=!1){const l=n?ao:t.emitsCache,o=l.get(e);if(o!==void 0)return o;const s=e.emits;let r={},a=!1;if(!I1(e)){const i=c=>{const u=T8(c,t,!0);u&&(a=!0,l2(r,u))};!n&&t.mixins.length&&t.mixins.forEach(i),e.extends&&i(e.extends),e.mixins&&e.mixins.forEach(i)}return!s&&!a?($1(e)&&l.set(e,null),null):(m1(s)?s.forEach(i=>r[i]=null):l2(r,s),$1(e)&&l.set(e,r),r)}function a5(e,t){return!e||!J4(t)?!1:(t=t.slice(2),t=t==="Once"?t:t.replace(/Once$/,""),K1(e,t[0].toLowerCase()+t.slice(1))||K1(e,m3(t))||K1(e,t))}function m6(e){const{type:t,vnode:n,proxy:l,withProxy:o,propsOptions:[s],slots:r,attrs:a,emit:i,render:c,renderCache:u,props:d,data:A,setupState:p,ctx:m,inheritAttrs:v}=e,M=Q4(e);let Z,k;try{if(n.shapeFlag&4){const _=o||l,B=_;Z=U2(c.call(B,_,u,d,p,A,m)),k=a}else{const _=t;Z=U2(_.length>1?_(d,{attrs:a,slots:r,emit:i}):_(d,null)),k=t.props?a:io(a)}}catch(_){u3.length=0,l5(_,e,1),Z=I(h2)}let F=Z;if(k&&v!==!1){const _=Object.keys(k),{shapeFlag:B}=F;_.length&&B&7&&(s&&_.some(z4)&&(k=co(k,s)),F=Z3(F,k,!1,!0))}if(n.dirs&&(F=Z3(F,null,!1,!0),F.dirs=F.dirs?F.dirs.concat(n.dirs):n.dirs),n.transition){const _=o5(F.type)&&N4(F)||F;Ye(_,n.transition)}return Z=F,Q4(M),Z}const io=e=>{let t;for(const n in e)(n==="class"||n==="style"||J4(n))&&((t||(t={}))[n]=e[n]);return t},co=(e,t)=>{const n={};for(const l in e)(!z4(l)||!(l.slice(9)in t))&&(n[l]=e[l]);return n};function uo(e,t,n){const{props:l,children:o,component:s}=e,{props:r,children:a,patchFlag:i}=t,c=s.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&i>=0){if(i&1024)return!0;if(i&16)return l?g6(l,r,c):!!r;if(i&8){const u=t.dynamicProps;for(let d=0;dObject.create(V8),U8=e=>Object.getPrototypeOf(e)===V8;function Ao(e,t,n,l=!1){const o={},s=Y8();e.propsDefaults=Object.create(null),J8(e,t,o,s);for(const r in e.propsOptions[0])r in o||(o[r]=void 0);n?e.props=l?o:v8(o):e.type.props?e.props=o:e.props=s,e.attrs=s}function ho(e,t,n,l){const{props:o,attrs:s,vnode:{patchFlag:r}}=e,a=Q1(o),[i]=e.propsOptions;let c=!1;if((l||r>0)&&!(r&16)){if(r&8){const u=e.vnode.dynamicProps;for(let d=0;d{i=!0;const[A,p]=z8(d,t,!0);l2(r,A),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(u),e.extends&&u(e.extends),e.mixins&&e.mixins.forEach(u)}if(!s&&!i)return $1(e)&&l.set(e,oe),oe;if(m1(s))for(let u=0;ue==="_"||e==="_ctx"||e==="$stable",Qt=e=>m1(e)?e.map(U2):[U2(e)],mo=(e,t,n)=>{if(t._n)return t;const l=x((...o)=>Qt(t(...o)),n);return l._c=!1,l},j8=(e,t,n)=>{const l=e._ctx;for(const o in e){if(Rt(o))continue;const s=e[o];if(I1(s))t[o]=mo(o,s,l);else if(s!=null){const r=Qt(s);t[o]=()=>r}}},X8=(e,t)=>{const n=Qt(t);e.slots.default=()=>n},q8=(e,t,n)=>{for(const l in t)(n||!Rt(l))&&(e[l]=t[l])},go=(e,t,n)=>{const l=e.slots=Y8();if(e.vnode.shapeFlag&32){const o=t._;o?(q8(l,t,n),n&&q7(l,"_",o,!0)):j8(t,l)}else t&&X8(e,t)},vo=(e,t,n)=>{const{vnode:l,slots:o}=e;let s=!0,r=R1;if(l.shapeFlag&32){const a=t._;a?n&&a===1?s=!1:q8(o,t,n):(s=!t.$stable,j8(t,o)),r=t}else t&&(X8(e,t),r={default:1});if(s)for(const a in o)!Rt(a)&&r[a]==null&&delete o[a]},v2=wo;function yo(e){return bo(e)}function bo(e,t){const n=q4();n.__VUE__=!0;const{insert:l,remove:o,patchProp:s,createElement:r,createText:a,createComment:i,setText:c,setElementText:u,parentNode:d,nextSibling:A,setScopeId:p=j2,insertStaticContent:m}=e,v=(g,b,E,P=null,V=null,T=null,s1=void 0,t1=null,X=!!b.dynamicChildren)=>{if(g===b)return;g&&!L3(g,b)&&(P=W(g),F1(g,V,T,!0),g=null),b.patchFlag===-2&&(X=!1,b.dynamicChildren=null);const{type:J,ref:p1,shapeFlag:N}=b;switch(J){case i5:M(g,b,E,P);break;case h2:Z(g,b,E,P);break;case Z4:g==null&&k(b,E,P,s1);break;case n1:Y(g,b,E,P,V,T,s1,t1,X);break;default:N&1?B(g,b,E,P,V,T,s1,t1,X):N&6?g1(g,b,E,P,V,T,s1,t1,X):(N&64||N&128)&&J.process(g,b,E,P,V,T,s1,t1,X,f1)}p1!=null&&V?Ge(p1,g&&g.ref,T,b||g,!b):p1==null&&g&&g.ref!=null&&Ge(g.ref,null,T,g,!0)},M=(g,b,E,P)=>{if(g==null)l(b.el=a(b.children),E,P);else{const V=b.el=g.el;b.children!==g.children&&c(V,b.children)}},Z=(g,b,E,P)=>{g==null?l(b.el=i(b.children||""),E,P):b.el=g.el},k=(g,b,E,P)=>{[g.el,g.anchor]=m(g.children,b,E,P,g.el,g.anchor)},F=({el:g,anchor:b},E,P)=>{let V;for(;g&&g!==b;)V=A(g),l(g,E,P),g=V;l(b,E,P)},_=({el:g,anchor:b})=>{let E;for(;g&&g!==b;)E=A(g),o(g),g=E;o(b)},B=(g,b,E,P,V,T,s1,t1,X)=>{if(b.type==="svg"?s1="svg":b.type==="math"&&(s1="mathml"),g==null)$(b,E,P,V,T,s1,t1,X);else{const J=g.el&&g.el._isVueCE?g.el:null;try{J&&J._beginPatch(),Q(g,b,V,T,s1,t1,X)}finally{J&&J._endPatch()}}},$=(g,b,E,P,V,T,s1,t1)=>{let X,J;const{props:p1,shapeFlag:N,transition:O,dirs:d1}=g;if(X=g.el=r(g.type,T,p1&&p1.is,p1),N&8?u(X,g.children):N&16&&w(g.children,X,null,P,V,I5(g,T),s1,t1),d1&&S3(g,null,P,"created"),D(X,g,g.scopeId,s1,P),p1){for(const E1 in p1)E1!=="value"&&!Qe(E1)&&s(X,E1,null,p1[E1],T,P);"value"in p1&&s(X,"value",null,p1.value,T),(J=p1.onVnodeBeforeMount)&&P2(J,P,g)}d1&&S3(g,null,P,"beforeMount");const H=ko(V,O);H&&O.beforeEnter(X),l(X,b,E),((J=p1&&p1.onVnodeMounted)||H||d1)&&v2(()=>{try{J&&P2(J,P,g),H&&O.enter(X),d1&&S3(g,null,P,"mounted")}finally{}},V)},D=(g,b,E,P,V)=>{if(E&&p(g,E),P)for(let T=0;T{for(let J=X;J{const t1=b.el=g.el;let{patchFlag:X,dynamicChildren:J,dirs:p1}=b;X|=g.patchFlag&16;const N=g.props||R1,O=b.props||R1;let d1;if(E&&R3(E,!1),(d1=O.onVnodeBeforeUpdate)&&P2(d1,E,b,g),p1&&S3(b,g,E,"beforeUpdate"),E&&R3(E,!0),J&&(!g.dynamicChildren||g.dynamicChildren.length!==J.length)&&(X=0,s1=!1,J=null),(N.innerHTML&&O.innerHTML==null||N.textContent&&O.textContent==null)&&u(t1,""),J?S(g.dynamicChildren,J,t1,E,P,I5(b,V),T):s1||C1(g,b,t1,null,E,P,I5(b,V),T,!1),X>0){if(X&16)q(t1,N,O,E,V);else if(X&2&&N.class!==O.class&&s(t1,"class",null,O.class,V),X&4&&s(t1,"style",N.style,O.style,V),X&8){const H=b.dynamicProps;for(let E1=0;E1{d1&&P2(d1,E,b,g),p1&&S3(b,g,E,"updated")},P)},S=(g,b,E,P,V,T,s1)=>{for(let t1=0;t1{if(b!==E){if(b!==R1)for(const T in b)!Qe(T)&&!(T in E)&&s(g,T,b[T],null,V,P);for(const T in E){if(Qe(T))continue;const s1=E[T],t1=b[T];s1!==t1&&T!=="value"&&s(g,T,t1,s1,V,P)}"value"in E&&s(g,"value",b.value,E.value,V)}},Y=(g,b,E,P,V,T,s1,t1,X)=>{const J=b.el=g?g.el:a(""),p1=b.anchor=g?g.anchor:a("");let{patchFlag:N,dynamicChildren:O,slotScopeIds:d1}=b;d1&&(t1=t1?t1.concat(d1):d1),g==null?(l(J,E,P),l(p1,E,P),w(b.children||[],E,p1,V,T,s1,t1,X)):N>0&&N&64&&O&&g.dynamicChildren&&g.dynamicChildren.length===O.length?(S(g.dynamicChildren,O,E,V,T,s1,t1),(b.key!=null||V&&b===V.subTree)&&Nt(g,b,!0)):C1(g,b,E,p1,V,T,s1,t1,X)},g1=(g,b,E,P,V,T,s1,t1,X)=>{b.slotScopeIds=t1,g==null?b.shapeFlag&512?V.ctx.activate(b,E,P,s1,X):y1(b,E,P,V,T,s1,X):l1(g,b,X)},y1=(g,b,E,P,V,T,s1)=>{const t1=g.component=Zo(g,P,V);if(s5(g)&&(t1.ctx.renderer=f1),Fo(t1,!1,s1),t1.asyncDep){if(V&&V.registerDep(t1,o1,s1),!g.el){const X=t1.subTree=I(h2);Z(null,X,b,E),g.placeholder=X.el}}else o1(t1,g,b,E,V,T,s1)},l1=(g,b,E)=>{const P=b.component=g.component;if(uo(g,b,E))if(P.asyncDep&&!P.asyncResolved){v1(P,b,E);return}else P.next=b,P.update();else b.el=g.el,P.vnode=b},o1=(g,b,E,P,V,T,s1)=>{const t1=()=>{if(g.isMounted){let{next:N,bu:O,u:d1,parent:H,vnode:E1}=g;{const x2=e0(g);if(x2){N&&(N.el=E1.el,v1(g,N,s1)),x2.asyncDep.then(()=>{v2(()=>{g.isUnmounted||J()},V)});return}}let B1=N,U1;R3(g,!1),N?(N.el=E1.el,v1(g,N,s1)):N=E1,O&&E4(O),(U1=N.props&&N.props.onVnodeBeforeUpdate)&&P2(U1,H,N,E1),R3(g,!0);const t2=m6(g),w2=g.subTree;g.subTree=t2,v(w2,t2,d(w2.el),W(w2),g,V,T),N.el=t2.el,B1===null&&fo(g,t2.el),d1&&v2(d1,V),(U1=N.props&&N.props.onVnodeUpdated)&&v2(()=>P2(U1,H,N,E1),V)}else{let N;const{el:O,props:d1}=b,{bm:H,m:E1,parent:B1,root:U1,type:t2}=g,w2=ae(b);R3(g,!1),H&&E4(H),!w2&&(N=d1&&d1.onVnodeBeforeMount)&&P2(N,B1,b),R3(g,!0);{U1.ce&&U1.ce._hasShadowRoot()&&U1.ce._injectChildStyle(t2,g.parent?g.parent.type:void 0);const x2=g.subTree=m6(g);v(null,x2,E,P,g,V,T),b.el=x2.el}if(E1&&v2(E1,V),!w2&&(N=d1&&d1.onVnodeMounted)){const x2=b;v2(()=>P2(N,B1,x2),V)}(b.shapeFlag&256||B1&&ae(B1.vnode)&&B1.vnode.shapeFlag&256)&&g.a&&v2(g.a,V),g.isMounted=!0,b=E=P=null}};g.scope.on();const X=g.effect=new o8(t1);g.scope.off();const J=g.update=X.run.bind(X),p1=g.job=X.runIfDirty.bind(X);p1.i=g,p1.id=g.uid,X.scheduler=()=>Ft(p1),R3(g,!0),J()},v1=(g,b,E)=>{b.component=g;const P=g.vnode.props;g.vnode=b,g.next=null,ho(g,b.props,P,E),vo(g,b.children,E),d3(),s6(g),f3()},C1=(g,b,E,P,V,T,s1,t1,X=!1)=>{const J=g&&g.children,p1=g?g.shapeFlag:0,N=b.children,{patchFlag:O,shapeFlag:d1}=b;if(O>0){if(O&128){r1(J,N,E,P,V,T,s1,t1,X);return}else if(O&256){k1(J,N,E,P,V,T,s1,t1,X);return}}d1&8?(p1&16&&h1(J,V,T),N!==J&&u(E,N)):p1&16?d1&16?r1(J,N,E,P,V,T,s1,t1,X):h1(J,V,T,!0):(p1&8&&u(E,""),d1&16&&w(N,E,P,V,T,s1,t1,X))},k1=(g,b,E,P,V,T,s1,t1,X)=>{g=g||oe,b=b||oe;const J=g.length,p1=b.length,N=Math.min(J,p1);let O;for(O=0;Op1?h1(g,V,T,!0,!1,N):w(b,E,P,V,T,s1,t1,X,N)},r1=(g,b,E,P,V,T,s1,t1,X)=>{let J=0;const p1=b.length;let N=g.length-1,O=p1-1;for(;J<=N&&J<=O;){const d1=g[J],H=b[J]=X?r3(b[J]):U2(b[J]);if(L3(d1,H))v(d1,H,E,null,V,T,s1,t1,X);else break;J++}for(;J<=N&&J<=O;){const d1=g[N],H=b[O]=X?r3(b[O]):U2(b[O]);if(L3(d1,H))v(d1,H,E,null,V,T,s1,t1,X);else break;N--,O--}if(J>N){if(J<=O){const d1=O+1,H=d1O)for(;J<=N;)F1(g[J],V,T,!0),J++;else{const d1=J,H=J,E1=new Map;for(J=H;J<=O;J++){const P1=b[J]=X?r3(b[J]):U2(b[J]);P1.key!=null&&E1.set(P1.key,J)}let B1,U1=0;const t2=O-H+1;let w2=!1,x2=0;const b3=new Array(t2);for(J=0;J=t2){F1(P1,V,T,!0);continue}let B2;if(P1.key!=null)B2=E1.get(P1.key);else for(B1=H;B1<=O;B1++)if(b3[B1-H]===0&&L3(P1,b[B1])){B2=B1;break}B2===void 0?F1(P1,V,T,!0):(b3[B2-H]=J+1,B2>=x2?x2=B2:w2=!0,v(P1,b[B2],E,null,V,T,s1,t1,X),U1++)}const S1=w2?Co(b3):oe;for(B1=S1.length-1,J=t2-1;J>=0;J--){const P1=H+J,B2=b[P1],Xt=b[P1+1],qt=P1+1{const{el:T,type:s1,transition:t1,children:X,shapeFlag:J}=g;if(J&6){O1(g.component.subTree,b,E,P);return}if(J&128){g.suspense.move(b,E,P);return}if(J&64){s1.move(g,b,E,f1);return}if(s1===n1){l(T,b,E);for(let N=0;Nt1.enter(T),V));else{const{leave:N,delayLeave:O,afterLeave:d1}=t1,H=()=>{g.ctx.isUnmounted?o(T):l(T,b,E)},E1=()=>{const B1=T._isLeaving||!!T[D2];T._isLeaving&&T[D2](!0),t1.persisted&&!B1?H():N(T,()=>{H(),d1&&d1()})};O?O(T,H,E1):E1()}else l(T,b,E)},F1=(g,b,E,P=!1,V=!1)=>{const{type:T,props:s1,ref:t1,children:X,dynamicChildren:J,shapeFlag:p1,patchFlag:N,dirs:O,cacheIndex:d1,memo:H}=g;if(N===-2&&(V=!1),t1!=null&&(d3(),Ge(t1,null,E,g,!0),f3()),d1!=null&&(b.renderCache[d1]=void 0),p1&256){b.ctx.deactivate(g);return}const E1=p1&1&&O,B1=!ae(g);let U1;if(B1&&(U1=s1&&s1.onVnodeBeforeUnmount)&&P2(U1,b,g),p1&6)a1(g.component,E,P);else{if(p1&128){g.suspense.unmount(E,P);return}E1&&S3(g,null,b,"beforeUnmount"),p1&64?g.type.remove(g,b,E,f1,P):J&&!J.hasOnce&&(T!==n1||N>0&&N&64)?h1(J,b,E,!1,!0):(T===n1&&N&384||!V&&p1&16)&&h1(X,b,E),P&&Y1(g)}const t2=H!=null&&d1==null;(B1&&(U1=s1&&s1.onVnodeUnmounted)||E1||t2)&&v2(()=>{U1&&P2(U1,b,g),E1&&S3(g,null,b,"unmounted"),t2&&(g.el=null)},E)},Y1=g=>{const{type:b,el:E,anchor:P,transition:V}=g;if(b===n1){e2(E,P);return}if(b===Z4){_(g);return}const T=()=>{o(E),V&&!V.persisted&&V.afterLeave&&V.afterLeave()};if(g.shapeFlag&1&&V&&!V.persisted){const{leave:s1,delayLeave:t1}=V,X=()=>s1(E,T);t1?t1(g.el,T,X):X()}else T()},e2=(g,b)=>{let E;for(;g!==b;)E=A(g),o(g),g=E;o(b)},a1=(g,b,E)=>{const{bum:P,scope:V,job:T,subTree:s1,um:t1,m:X,a:J}=g;y6(X),y6(J),P&&E4(P),V.stop(),T&&(T.flags|=8,F1(s1,g,b,E)),t1&&v2(t1,b),v2(()=>{g.isUnmounted=!0},b)},h1=(g,b,E,P=!1,V=!1,T=0)=>{for(let s1=T;s1{if(g.shapeFlag&6)return W(g.component.subTree);if(g.shapeFlag&128)return g.suspense.next();const b=A(g.anchor||g.el),E=b&&b[E8];return E?A(E):b};let z=!1;const G=(g,b,E)=>{let P;g==null?b._vnode&&(F1(b._vnode,null,null,!0),P=b._vnode.component):v(b._vnode||null,g,b,null,null,null,E),b._vnode=g,z||(z=!0,s6(P),x8(),z=!1)},f1={p:v,um:F1,m:O1,r:Y1,mt:y1,mc:w,pc:C1,pbc:S,n:W,o:e};return{render:G,hydrate:void 0,createApp:oo(G)}}function I5({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function R3({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ko(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Nt(e,t,n=!1){const l=e.children,o=t.children;if(m1(l)&&m1(o))for(let s=0;s>1,e[n[a]]0&&(t[l]=n[s-1]),n[s]=l)}}for(s=n.length,r=n[s-1];s-- >0;)n[s]=r,r=t[r];return n}function e0(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:e0(t)}function y6(e){if(e)for(let t=0;te.__isSuspense;function wo(e,t){t&&t.pendingBranch?m1(e)?t.effects.push(...e):t.effects.push(e):Dl(e)}const n1=Symbol.for("v-fgt"),i5=Symbol.for("v-txt"),h2=Symbol.for("v-cmt"),Z4=Symbol.for("v-stc"),u3=[];let _2=null;function h(e=!1){u3.push(_2=e?null:[])}function Kt(){u3.pop(),_2=u3[u3.length-1]||null}let Ue=1;function O4(e,t=!1){Ue+=e,e<0&&_2&&t&&(_2.hasOnce=!0)}function l0(e){return e.dynamicChildren=Ue>0?_2||oe:null,Kt(),Ue>0&&_2&&_2.push(e),e}function C(e,t,n,l,o,s){return l0(y(e,t,n,l,o,s,!0))}function K(e,t,n,l,o){return l0(I(e,t,n,l,o,!0))}function Je(e){return e?e.__v_isVNode===!0:!1}function L3(e,t){return e.type===t.type&&e.key===t.key}const o0=({key:e})=>e??null,F4=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?V1(e)||n2(e)||I1(e)?{i:c2,r:e,k:t,f:!!n}:e:null);function y(e,t=null,n=null,l=0,o=null,s=e===n1?0:1,r=!1,a=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&o0(t),ref:t&&F4(t),scopeId:I8,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:l,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:c2};return a?(W4(i,n),s&128&&e.normalize(i)):n&&(i.shapeFlag|=V1(n)?8:16),Ue>0&&!r&&_2&&(i.patchFlag>0||s&6)&&i.patchFlag!==32&&_2.push(i),i}const I=xo;function xo(e,t=null,n=null,l=0,o=null,s=!1){if((!e||e===K8)&&(e=h2),Je(e)){const a=Z3(e,t,!0);return n&&W4(a,n),Ue>0&&!s&&_2&&(a.shapeFlag&6?_2[_2.indexOf(e)]=a:_2.push(a)),a.patchFlag=-2,a}if(No(e)&&(e=e.__vccOpts),t){t=_o(t);let{class:a,style:i}=t;a&&!V1(a)&&(t.class=i1(a)),$1(i)&&(Zt(i)&&!m1(i)&&(i=l2({},i)),t.style=E2(i))}const r=V1(e)?1:n0(e)?128:o5(e)?64:$1(e)?4:I1(e)?2:0;return y(e,t,n,l,o,r,s,!0)}function _o(e){return e?Zt(e)||U8(e)?l2({},e):e:null}function Z3(e,t,n=!1,l=!1){const{props:o,ref:s,patchFlag:r,children:a,transition:i}=e,c=t?Mo(o||{},t):o,u={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&o0(c),ref:t&&t.ref?n&&s?m1(s)?s.concat(F4(t)):[s,F4(t)]:F4(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==n1?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:i,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Z3(e.ssContent),ssFallback:e.ssFallback&&Z3(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return i&&l&&Ye(u,i.clone(u)),u}function U(e=" ",t=0){return I(i5,null,e,t)}function Io(e,t){const n=I(Z4,null,e);return n.staticCount=t,n}function L(e="",t=!1){return t?(h(),K(h2,null,e)):I(h2,null,e)}function U2(e){return e==null||typeof e=="boolean"?I(h2):m1(e)?I(n1,null,e.slice()):Je(e)?r3(e):I(i5,null,String(e))}function r3(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Z3(e)}function W4(e,t){let n=0;const{shapeFlag:l}=e;if(t==null)t=null;else if(m1(t))n=16;else if(typeof t=="object")if(l&65){const o=t.default;o&&(o._c&&(o._d=!1),W4(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!U8(t)?t._ctx=c2:o===3&&c2&&(c2.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else if(I1(t)){if(l&65){W4(e,{default:t});return}t={default:t,_ctx:c2},n=32}else t=String(t),l&64?(n=16,t=[U(t)]):n=8;e.children=t,e.shapeFlag|=n}function Mo(...e){const t={};for(let n=0;np2||c2;let L4,ze;{const e=q4(),t=(n,l)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(l),s=>{o.length>1?o.forEach(r=>r(s)):o[0](s)}};L4=t("__VUE_INSTANCE_SETTERS__",n=>p2=n),ze=t("__VUE_SSR_SETTERS__",n=>je=n)}const f4=e=>{const t=p2;return L4(e),e.scope.on(),()=>{e.scope.off(),L4(t)}},b6=()=>{p2&&p2.scope.off(),L4(null)};function s0(e){return e.vnode.shapeFlag&4}let je=!1;function Fo(e,t=!1,n=!1){t&&ze(t);const{props:l,children:o}=e.vnode,s=s0(e);Ao(e,l,s,t),go(e,o,n||t);const r=s?Bo(e,t):void 0;return t&&ze(!1),r}function Bo(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,jl);const{setup:l}=n;if(l){d3();const o=e.setupContext=l.length>1?Ro(e):null,s=f4(e),r=d4(l,e,0,[e.props,o]),a=z7(r);if(f3(),s(),(a||e.sp)&&!ae(e)&&R8(e),a){if(r.then(b6,b6),t)return r.then(i=>{ze(!0);try{k6(e,i,t)}finally{ze(!1)}}).catch(i=>{l5(i,e,0)});e.asyncDep=r}else k6(e,r)}else r0(e)}function k6(e,t,n){I1(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:$1(t)&&(e.setupState=b8(t)),r0(e)}function r0(e,t,n){const l=e.type;e.render||(e.render=l.render||j2);{const o=f4(e);d3();try{Xl(e)}finally{f3(),o()}}}const So={get(e,t){return A2(e,"get",""),e[t]}};function Ro(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,So),slots:e.slots,emit:e.emit,expose:t}}function c5(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(b8(gl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in $e)return $e[n](e)},has(t,n){return n in t||n in $e}})):e.proxy}function Qo(e,t=!0){return I1(e)?e.displayName||e.name:e.name||t&&e.__name}function No(e){return I1(e)&&"__vccOpts"in e}const e1=(e,t)=>xl(e,t,je);function h3(e,t,n){try{O4(-1);const l=arguments.length;return l===2?$1(t)&&!m1(t)?Je(t)?I(e,null,[t]):I(e,t):I(e,null,t):(l>3?n=Array.prototype.slice.call(arguments,2):l===3&&Je(n)&&(n=[n]),I(e,t,n))}finally{O4(1)}}const Ko="3.5.42";/** * @vue/runtime-dom v3.5.42 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT -**/let ot;const y6=typeof window<"u"&&window.trustedTypes;if(y6)try{ot=y6.createPolicy("vue",{createHTML:e=>e})}catch{}const o0=ot?e=>ot.createHTML(e):e=>e,Fo="http://www.w3.org/2000/svg",Bo="http://www.w3.org/1998/Math/MathML",r3=typeof document<"u"?document:null,b6=r3&&r3.createElement("template"),So={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const o=t==="svg"?r3.createElementNS(Fo,e):t==="mathml"?r3.createElementNS(Bo,e):n?r3.createElement(e,{is:n}):r3.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>r3.createTextNode(e),createComment:e=>r3.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>r3.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,r){const s=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{b6.innerHTML=o0(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=b6.content;if(l==="svg"||l==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},b3="transition",we="animation",Xe=Symbol("_vtc"),r0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Ro=r2({},I8,r0),Qo=e=>(e.displayName="Transition",e.props=Ro,e),s0=Qo((e,{slots:t})=>h3(Sl,No(e),t)),Q3=(e,t=[])=>{g1(e)?e.forEach(n=>n(...t)):e&&e(...t)},k6=e=>e?g1(e)?e.some(t=>t.length>1):e.length>1:!1;function No(e){const t={};for(const V in e)V in r0||(t[V]=e[V]);if(e.css===!1)return t;const{name:n="v",type:l,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=r,appearActiveClass:c=s,appearToClass:d=a,leaveFromClass:u=`${n}-leave-from`,leaveActiveClass:A=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=Ko(o),k=m&&m[0],D=m&&m[1],{onBeforeEnter:F,onEnter:C,onEnterCancelled:I,onLeave:v,onLeaveCancelled:S,onBeforeAppear:L=F,onAppear:Z=C,onAppearCancelled:_=I}=t,R=(V,m1,y1,l1)=>{V._enterCancelled=l1,N3(V,m1?d:a),N3(V,m1?c:s),y1&&y1()},B=(V,m1)=>{V._isLeaving=!1,N3(V,u),N3(V,p),N3(V,A),m1&&m1()},q=V=>(m1,y1)=>{const l1=V?Z:C,o1=()=>R(m1,V,y1);Q3(l1,[m1,o1]),C6(()=>{N3(m1,V?i:r),n3(m1,V?d:a),k6(l1)||w6(m1,l,k,o1)})};return r2(t,{onBeforeEnter(V){Q3(F,[V]),n3(V,r),n3(V,s)},onBeforeAppear(V){Q3(L,[V]),n3(V,i),n3(V,c)},onEnter:q(!1),onAppear:q(!0),onLeave(V,m1){V._isLeaving=!0;const y1=()=>B(V,m1);n3(V,u),V._enterCancelled?(n3(V,A),I6(V)):(I6(V),n3(V,A)),C6(()=>{V._isLeaving&&(N3(V,u),n3(V,p),k6(v)||w6(V,l,D,y1))}),Q3(v,[V,y1])},onEnterCancelled(V){R(V,!1,void 0,!0),Q3(I,[V])},onAppearCancelled(V){R(V,!0,void 0,!0),Q3(_,[V])},onLeaveCancelled(V){B(V),Q3(S,[V])}})}function Ko(e){if(e==null)return null;if(G1(e))return[_5(e.enter),_5(e.leave)];{const t=_5(e);return[t,t]}}function _5(e){return $n(e)}function n3(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xe]||(e[Xe]=new Set)).add(t)}function N3(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const n=e[Xe];n&&(n.delete(t),n.size||(e[Xe]=void 0))}function C6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Go=0;function w6(e,t,n,l){const o=e._endId=++Go,r=()=>{o===e._endId&&l()};if(n!=null)return setTimeout(r,n);const{type:s,timeout:a,propCount:i}=Oo(e,t);if(!s)return l();const c=s+"end";let d=0;const u=()=>{e.removeEventListener(c,A),r()},A=p=>{p.target===e&&++d>=i&&u()};setTimeout(()=>{d(n[m]||"").split(", "),o=l(`${b3}Delay`),r=l(`${b3}Duration`),s=x6(o,r),a=l(`${we}Delay`),i=l(`${we}Duration`),c=x6(a,i);let d=null,u=0,A=0;t===b3?s>0&&(d=b3,u=s,A=r.length):t===we?c>0&&(d=we,u=c,A=i.length):(u=Math.max(s,c),d=u>0?s>c?b3:we:null,A=d?d===b3?r.length:i.length:0);const p=d===b3&&/\b(?:transform|all)(?:,|$)/.test(l(`${b3}Property`).toString());return{type:d,timeout:u,propCount:A,hasTransform:p}}function x6(e,t){for(;e.length_6(n)+_6(e[l])))}function _6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function I6(e){return(e?e.ownerDocument:document).body.offsetHeight}function $o(e,t,n){const l=e[Xe];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const L4=Symbol("_vod"),a0=Symbol("_vsh"),Wo={name:"show",beforeMount(e,{value:t},{transition:n}){e[L4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):xe(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:l}){!t!=!n&&(l?t?(l.beforeEnter(e),xe(e,!0),l.enter(e)):l.leave(e,()=>{xe(e,!1)}):xe(e,t))},beforeUnmount(e,{value:t}){xe(e,t)}};function xe(e,t){e.style.display=t?e[L4]:"none",e[a0]=!t}const Lo=Symbol(""),Po=/(?:^|;)\s*display\s*:/;function To(e,t,n){const l=e.style,o=Y1(n);let r=!1;if(n&&!o){if(t)if(Y1(t))for(const s of t.split(";")){const a=s.slice(0,s.indexOf(":")).trim();n[a]==null&&Se(l,a,"")}else for(const s in t)n[s]==null&&Se(l,s,"");for(const s in n){s==="display"&&(r=!0);const a=n[s];a!=null?Yo(e,s,!Y1(t)&&t?t[s]:void 0,a)||Se(l,s,a):Se(l,s,"")}}else if(o){if(t!==n){const s=l[Lo];s&&(n+=";"+s),l.cssText=n,r=Po.test(n)}}else t&&e.removeAttribute("style");L4 in e&&(e[L4]=r?l.display:"",e[a0]&&(l.display="none"))}const y4=/\s*!important$/;function Se(e,t,n){if(g1(n))n.forEach(l=>Se(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))y4.test(n)?e.setProperty(t,n.replace(y4,""),"important"):e.setProperty(t,n);else{const l=Ho(e,t);y4.test(n)?e.setProperty(F3(l),n.replace(y4,""),"important"):e[l]=n}}const M6=["Webkit","Moz","ms"],I5={};function Ho(e,t){const n=I5[t];if(n)return n;let l=b2(t);if(l!=="filter"&&l in e)return I5[t]=l;l=j4(l);for(let o=0;oM5||(Xo.then(()=>M5=0),M5=Date.now());function er(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(g1(o)){const r=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{r.call(l),l._stopped=!0};const s=o.slice(),a=[l];for(let i=0;ie.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,tr=(e,t,n,l,o,r)=>{const s=o==="svg";t==="class"?$o(e,l,s):t==="style"?To(e,n,l):U4(t)?J4(t)||Uo(e,t,n,l,r):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):nr(e,t,l,s))?(Z6(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&D6(e,t,l,s,r,t!=="value")):e._isVueCE&&(lr(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!Y1(l)))?Z6(e,b2(t),l,r,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),D6(e,t,l,s))};function nr(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&B6(t)&&I1(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return B6(t)&&Y1(n)?!1:t in e}function lr(e,t){const n=e._def.props;if(!n)return!1;const l=b2(t);return Array.isArray(n)?n.some(o=>b2(o)===l):Object.keys(n).some(o=>b2(o)===l)}const P4=e=>{const t=e.props["onUpdate:modelValue"]||!1;return g1(t)?n=>E4(t,n):t};function or(e){e.target.composing=!0}function S6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const T3=Symbol("_assign"),b4=Symbol("_initialValue");function E5(e,t,n){return t&&(e=e.trim()),n&&(e=Ct(e)),e}const R6={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e.parentNode&&(e.type==="text"?e[b4]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[b4]=e.defaultValue.replace(/\r\n?/g,` -`))),e[T3]=P4(o);const r=l||o.props&&o.props.type==="number";P3(e,t?"change":"input",s=>{s.target.composing||e[T3](E5(e.value,n,r))}),(n||r)&&P3(e,"change",()=>{e.value=E5(e.value,n,r)}),t||(P3(e,"compositionstart",or),P3(e,"compositionend",S6),P3(e,"change",S6))},mounted(e,{value:t,modifiers:{trim:n,number:l}}){const o=t??"",r=e[b4];delete e[b4],r!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==r?e[T3](E5(e.value,n,l)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:r}},s){if(e[T3]=P4(s),e.composing)return;const a=(r||e.type==="number")&&!/^0\d/.test(e.value)?Ct(e.value):e.value,i=t??"";if(a===i)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===i)||(e.value=i)}},i0={deep:!0,created(e,t,n){e[T3]=P4(n),P3(e,"change",()=>{const l=e._modelValue,o=rr(e),r=e.checked,s=e[T3];if(g1(l)){const a=j7(l,o),i=a!==-1;if(r&&!i)s(l.concat(o));else if(!r&&i){const c=[...l];c.splice(a,1),s(c)}}else if(ce(l)){const a=new Set(l);r?a.add(o):a.delete(o),s(a)}else s(c0(e,r))})},mounted:Q6,beforeUpdate(e,t,n){e[T3]=P4(n),Q6(e,t,n)}};function Q6(e,{value:t,oldValue:n},l){e._modelValue=t;let o;if(g1(t))o=j7(t,l.props.value)>-1;else if(ce(t))o=t.has(l.props.value);else{if(t===n)return;o=me(t,c0(e,!0))}e.checked!==o&&(e.checked=o)}function rr(e){return"_value"in e?e._value:e.value}function c0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const sr=["ctrl","shift","alt","meta"],ar={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>sr.some(n=>e[`${n}Key`]&&!t.includes(n))},qe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((o,...r)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(o=>{if(!("key"in o))return;const r=F3(o.key);if(t.some(s=>s===r||ir[s]===r))return e(o)}))},ur=r2({patchProp:tr},So);let N6;function dr(){return N6||(N6=fo(ur))}const fr=((...e)=>{const t=dr().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=hr(l);if(!o)return;const r=t._component;!I1(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,Ar(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t});function Ar(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function hr(e){return Y1(e)?document.querySelector(e):e}/*! +**/let rt;const C6=typeof window<"u"&&window.trustedTypes;if(C6)try{rt=C6.createPolicy("vue",{createHTML:e=>e})}catch{}const a0=rt?e=>rt.createHTML(e):e=>e,Go="http://www.w3.org/2000/svg",$o="http://www.w3.org/1998/Math/MathML",s3=typeof document<"u"?document:null,w6=s3&&s3.createElement("template"),Oo={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,l)=>{const o=t==="svg"?s3.createElementNS(Go,e):t==="mathml"?s3.createElementNS($o,e):n?s3.createElement(e,{is:n}):s3.createElement(e);return e==="select"&&l&&l.multiple!=null&&o.setAttribute("multiple",l.multiple),o},createText:e=>s3.createTextNode(e),createComment:e=>s3.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>s3.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,l,o,s){const r=n?n.previousSibling:t.lastChild;if(o&&(o===s||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===s||!(o=o.nextSibling)););else{w6.innerHTML=a0(l==="svg"?`${e}`:l==="mathml"?`${e}`:e);const a=w6.content;if(l==="svg"||l==="mathml"){const i=a.firstChild;for(;i.firstChild;)a.appendChild(i.firstChild);a.removeChild(i)}t.insertBefore(a,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},k3="transition",xe="animation",Xe=Symbol("_vtc"),i0={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Wo=l2({},D8,i0),Lo=e=>(e.displayName="Transition",e.props=Wo,e),c0=Lo((e,{slots:t})=>h3(Ol,Po(e),t)),Q3=(e,t=[])=>{m1(e)?e.forEach(n=>n(...t)):e&&e(...t)},x6=e=>e?m1(e)?e.some(t=>t.length>1):e.length>1:!1;function Po(e){const t={};for(const Y in e)Y in i0||(t[Y]=e[Y]);if(e.css===!1)return t;const{name:n="v",type:l,duration:o,enterFromClass:s=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:i=s,appearActiveClass:c=r,appearToClass:u=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:A=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,m=To(o),v=m&&m[0],M=m&&m[1],{onBeforeEnter:Z,onEnter:k,onEnterCancelled:F,onLeave:_,onLeaveCancelled:B,onBeforeAppear:$=Z,onAppear:D=k,onAppearCancelled:w=F}=t,Q=(Y,g1,y1,l1)=>{Y._enterCancelled=l1,N3(Y,g1?u:a),N3(Y,g1?c:r),y1&&y1()},S=(Y,g1)=>{Y._isLeaving=!1,N3(Y,d),N3(Y,p),N3(Y,A),g1&&g1()},q=Y=>(g1,y1)=>{const l1=Y?D:k,o1=()=>Q(g1,Y,y1);Q3(l1,[g1,o1]),_6(()=>{N3(g1,Y?i:s),n3(g1,Y?u:a),x6(l1)||I6(g1,l,v,o1)})};return l2(t,{onBeforeEnter(Y){Q3(Z,[Y]),n3(Y,s),n3(Y,r)},onBeforeAppear(Y){Q3($,[Y]),n3(Y,i),n3(Y,c)},onEnter:q(!1),onAppear:q(!0),onLeave(Y,g1){Y._isLeaving=!0;const y1=()=>S(Y,g1);n3(Y,d),Y._enterCancelled?(n3(Y,A),D6(Y)):(D6(Y),n3(Y,A)),_6(()=>{Y._isLeaving&&(N3(Y,d),n3(Y,p),x6(_)||I6(Y,l,M,y1))}),Q3(_,[Y,y1])},onEnterCancelled(Y){Q(Y,!1,void 0,!0),Q3(F,[Y])},onAppearCancelled(Y){Q(Y,!0,void 0,!0),Q3(w,[Y])},onLeaveCancelled(Y){S(Y),Q3(B,[Y])}})}function To(e){if(e==null)return null;if($1(e))return[M5(e.enter),M5(e.leave)];{const t=M5(e);return[t,t]}}function M5(e){return Tn(e)}function n3(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Xe]||(e[Xe]=new Set)).add(t)}function N3(e,t){t.split(/\s+/).forEach(l=>l&&e.classList.remove(l));const n=e[Xe];n&&(n.delete(t),n.size||(e[Xe]=void 0))}function _6(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Ho=0;function I6(e,t,n,l){const o=e._endId=++Ho,s=()=>{o===e._endId&&l()};if(n!=null)return setTimeout(s,n);const{type:r,timeout:a,propCount:i}=Vo(e,t);if(!r)return l();const c=r+"end";let u=0;const d=()=>{e.removeEventListener(c,A),s()},A=p=>{p.target===e&&++u>=i&&d()};setTimeout(()=>{u(n[m]||"").split(", "),o=l(`${k3}Delay`),s=l(`${k3}Duration`),r=M6(o,s),a=l(`${xe}Delay`),i=l(`${xe}Duration`),c=M6(a,i);let u=null,d=0,A=0;t===k3?r>0&&(u=k3,d=r,A=s.length):t===xe?c>0&&(u=xe,d=c,A=i.length):(d=Math.max(r,c),u=d>0?r>c?k3:xe:null,A=u?u===k3?s.length:i.length:0);const p=u===k3&&/\b(?:transform|all)(?:,|$)/.test(l(`${k3}Property`).toString());return{type:u,timeout:d,propCount:A,hasTransform:p}}function M6(e,t){for(;e.lengthE6(n)+E6(e[l])))}function E6(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function D6(e){return(e?e.ownerDocument:document).body.offsetHeight}function Yo(e,t,n){const l=e[Xe];l&&(t=(t?[t,...l]:[...l]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const P4=Symbol("_vod"),u0=Symbol("_vsh"),d0={name:"show",beforeMount(e,{value:t},{transition:n}){e[P4]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):_e(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:l}){!t!=!n&&(l?t?(l.beforeEnter(e),_e(e,!0),l.enter(e)):l.leave(e,()=>{_e(e,!1)}):_e(e,t))},beforeUnmount(e,{value:t}){_e(e,t)}};function _e(e,t){e.style.display=t?e[P4]:"none",e[u0]=!t}const Uo=Symbol(""),Jo=/(?:^|;)\s*display\s*:/;function zo(e,t,n){const l=e.style,o=V1(n);let s=!1;if(n&&!o){if(t)if(V1(t))for(const r of t.split(";")){const a=r.slice(0,r.indexOf(":")).trim();n[a]==null&&Re(l,a,"")}else for(const r in t)n[r]==null&&Re(l,r,"");for(const r in n){r==="display"&&(s=!0);const a=n[r];a!=null?Xo(e,r,!V1(t)&&t?t[r]:void 0,a)||Re(l,r,a):Re(l,r,"")}}else if(o){if(t!==n){const r=l[Uo];r&&(n+=";"+r),l.cssText=n,s=Jo.test(n)}}else t&&e.removeAttribute("style");P4 in e&&(e[P4]=s?l.display:"",e[u0]&&(l.display="none"))}const y4=/\s*!important$/;function Re(e,t,n){if(m1(n))n.forEach(l=>Re(e,t,l));else if(n==null&&(n=""),t.startsWith("--"))y4.test(n)?e.setProperty(t,n.replace(y4,""),"important"):e.setProperty(t,n);else{const l=jo(e,t);y4.test(n)?e.setProperty(m3(l),n.replace(y4,""),"important"):e[l]=n}}const Z6=["Webkit","Moz","ms"],E5={};function jo(e,t){const n=E5[t];if(n)return n;let l=m2(t);if(l!=="filter"&&l in e)return E5[t]=l;l=X4(l);for(let o=0;oD5||(os.then(()=>D5=0),D5=Date.now());function rs(e,t){const n=l=>{if(!l._vts)l._vts=Date.now();else if(l._vts<=n.attached)return;const o=n.value;if(m1(o)){const s=l.stopImmediatePropagation;l.stopImmediatePropagation=()=>{s.call(l),l._stopped=!0};const r=o.slice(),a=[l];for(let i=0;ie.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,as=(e,t,n,l,o,s)=>{const r=o==="svg";t==="class"?Yo(e,l,r):t==="style"?zo(e,n,l):J4(t)?z4(t)||es(e,t,n,l,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):is(e,t,l,r))?(S6(e,t,l),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&B6(e,t,l,r,s,t!=="value")):e._isVueCE&&(cs(e,t)||e._def.__asyncLoader&&(/[A-Z]/.test(t)||!V1(l)))?S6(e,m2(t),l,s,t):(t==="true-value"?e._trueValue=l:t==="false-value"&&(e._falseValue=l),B6(e,t,l,r))};function is(e,t,n,l){if(l)return!!(t==="innerHTML"||t==="textContent"||t in e&&Q6(t)&&I1(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return Q6(t)&&V1(n)?!1:t in e}function cs(e,t){const n=e._def.props;if(!n)return!1;const l=m2(t);return Array.isArray(n)?n.some(o=>m2(o)===l):Object.keys(n).some(o=>m2(o)===l)}const T4=e=>{const t=e.props["onUpdate:modelValue"]||!1;return m1(t)?n=>E4(t,n):t};function us(e){e.target.composing=!0}function N6(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const T3=Symbol("_assign"),b4=Symbol("_initialValue");function Z5(e,t,n){return t&&(e=e.trim()),n&&(e=xt(e)),e}const K6={created(e,{modifiers:{lazy:t,trim:n,number:l}},o){e.parentNode&&(e.type==="text"?e[b4]=e.defaultValue.replace(/[\r\n]/g,""):e.type==="textarea"&&(e[b4]=e.defaultValue.replace(/\r\n?/g,` +`))),e[T3]=T4(o);const s=l||o.props&&o.props.type==="number";P3(e,t?"change":"input",r=>{r.target.composing||e[T3](Z5(e.value,n,s))}),(n||s)&&P3(e,"change",()=>{e.value=Z5(e.value,n,s)}),t||(P3(e,"compositionstart",us),P3(e,"compositionend",N6),P3(e,"change",N6))},mounted(e,{value:t,modifiers:{trim:n,number:l}}){const o=t??"",s=e[b4];delete e[b4],s!==void 0&&(e.type==="text"||e.type==="textarea")&&e.value!==s?e[T3](Z5(e.value,n,l)):e.value=o},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:l,trim:o,number:s}},r){if(e[T3]=T4(r),e.composing)return;const a=(s||e.type==="number")&&!/^0\d/.test(e.value)?xt(e.value):e.value,i=t??"";if(a===i)return;const c=e.getRootNode();(c instanceof Document||c instanceof ShadowRoot)&&c.activeElement===e&&e.type!=="range"&&(l&&t===n||o&&e.value.trim()===i)||(e.value=i)}},f0={deep:!0,created(e,t,n){e[T3]=T4(n),P3(e,"change",()=>{const l=e._modelValue,o=ds(e),s=e.checked,r=e[T3];if(m1(l)){const a=t8(l,o),i=a!==-1;if(s&&!i)r(l.concat(o));else if(!s&&i){const c=[...l];c.splice(a,1),r(c)}}else if(ue(l)){const a=new Set(l);s?a.add(o):a.delete(o),r(a)}else r(A0(e,s))})},mounted:G6,beforeUpdate(e,t,n){e[T3]=T4(n),G6(e,t,n)}};function G6(e,{value:t,oldValue:n},l){e._modelValue=t;let o;if(m1(t))o=t8(t,l.props.value)>-1;else if(ue(t))o=t.has(l.props.value);else{if(t===n)return;o=ge(t,A0(e,!0))}e.checked!==o&&(e.checked=o)}function ds(e){return"_value"in e?e._value:e.value}function A0(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const fs=["ctrl","shift","alt","meta"],As={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>fs.some(n=>e[`${n}Key`]&&!t.includes(n))},qe=(e,t)=>{if(!e)return e;const n=e._withMods||(e._withMods={}),l=t.join(".");return n[l]||(n[l]=((o,...s)=>{for(let r=0;r{const n=e._withKeys||(e._withKeys={}),l=t.join(".");return n[l]||(n[l]=(o=>{if(!("key"in o))return;const s=m3(o.key);if(t.some(r=>r===s||hs[r]===s))return e(o)}))},ms=l2({patchProp:as},Oo);let $6;function gs(){return $6||($6=yo(ms))}const vs=((...e)=>{const t=gs().createApp(...e),{mount:n}=t;return t.mount=l=>{const o=bs(l);if(!o)return;const s=t._component;!I1(s)&&!s.render&&!s.template&&(s.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const r=n(o,!1,ys(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),r},t});function ys(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function bs(e){return V1(e)?document.querySelector(e):e}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */const le=typeof document<"u";function u0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function pr(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&u0(e.default)}const Q1=Object.assign;function D5(e,t){const n={};for(const l in t){const o=t[l];n[l]=W2(o)?o.map(e):e(o)}return n}const $e=()=>{},W2=Array.isArray;function K6(e,t){const n={};for(const l in e)n[l]=l in t?t[l]:e[l];return n}const d0=/#/g,mr=/&/g,gr=/\//g,vr=/=/g,yr=/\?/g,f0=/\+/g,br=/%5B/g,kr=/%5D/g,A0=/%5E/g,Cr=/%60/g,h0=/%7B/g,wr=/%7C/g,p0=/%7D/g,xr=/%20/g;function Nt(e){return e==null?"":encodeURI(""+e).replace(wr,"|").replace(br,"[").replace(kr,"]")}function _r(e){return Nt(e).replace(h0,"{").replace(p0,"}").replace(A0,"^")}function rt(e){return Nt(e).replace(f0,"%2B").replace(xr,"+").replace(d0,"%23").replace(mr,"%26").replace(Cr,"`").replace(h0,"{").replace(p0,"}").replace(A0,"^")}function Ir(e){return rt(e).replace(vr,"%3D")}function Mr(e){return Nt(e).replace(d0,"%23").replace(yr,"%3F")}function Er(e){return Mr(e).replace(gr,"%2F")}function e4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Dr=/\/$/,Zr=e=>e.replace(Dr,"");function Z5(e,t,n="/"){let l,o={},r="",s="";const a=t.indexOf("#");let i=t.indexOf("?");return i=a>=0&&i>a?-1:i,i>=0&&(l=t.slice(0,i),r=t.slice(i,a>0?a:t.length),o=e(r.slice(1))),a>=0&&(l=l||t.slice(0,a),s=t.slice(a,t.length)),l=Rr(l??t,n),{fullPath:l+r+s,path:l,query:o,hash:e4(s)}}function Fr(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function G6(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Br(e,t,n){const l=t.matched.length-1,o=n.matched.length-1;return l>-1&&l===o&&de(t.matched[l],n.matched[o])&&m0(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function de(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function m0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!Sr(e[n],t[n]))return!1;return!0}function Sr(e,t){return W2(e)?O6(e,t):W2(t)?O6(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function O6(e,t){return W2(t)?e.length===t.length&&e.every((n,l)=>n===t[l]):e.length===1&&e[0]===t}function Rr(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),l=e.split("/"),o=l[l.length-1];(o===".."||o===".")&&l.push("");let r=n.length-1,s,a;for(s=0;s1&&r--;else break;return n.slice(0,r).join("/")+"/"+l.slice(s).join("/")}const k3={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let st=(function(e){return e.pop="pop",e.push="push",e})({}),F5=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Qr(e){if(!e)if(le){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Zr(e)}const Nr=/^[^#]+#/;function Kr(e,t){return e.replace(Nr,"#")+t}function Gr(e,t){const n=document.documentElement.getBoundingClientRect(),l=e.getBoundingClientRect();return{behavior:t.behavior,left:l.left-n.left-(t.left||0),top:l.top-n.top-(t.top||0)}}const i5=()=>({left:window.scrollX,top:window.scrollY});function Or(e){let t;if("el"in e){const n=e.el,l=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?l?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Gr(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function $6(e,t){return(history.state?history.state.position-t:-1)+e}const at=new Map;function $r(e,t){at.set(e,t)}function Wr(e){const t=at.get(e);return at.delete(e),t}function Lr(e){return typeof e=="string"||e&&typeof e=="object"}function g0(e){return typeof e=="string"||typeof e=="symbol"}let X1=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const v0=Symbol("");X1.MATCHER_NOT_FOUND+"",X1.NAVIGATION_GUARD_REDIRECT+"",X1.NAVIGATION_ABORTED+"",X1.NAVIGATION_CANCELLED+"",X1.NAVIGATION_DUPLICATED+"";function fe(e,t){return Q1(new Error,{type:e,[v0]:!0},t)}function l3(e,t){return e instanceof Error&&v0 in e&&(t==null||!!(e.type&t))}const Pr=["params","query","hash"];function Tr(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Pr)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function Hr(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;lo&&rt(o)):[l&&rt(l)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Yr(e){const t={};for(const n in e){const l=e[n];l!==void 0&&(t[n]=W2(l)?l.map(o=>o==null?null:""+o):l==null?l:""+l)}return t}const Vr=Symbol(""),L6=Symbol(""),c5=Symbol(""),Kt=Symbol(""),it=Symbol("");function _e(){let e=[];function t(l){return e.push(l),()=>{const o=e.indexOf(l);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function _3(e,t,n,l,o,r=s=>s()){const s=l&&(l.enterCallbacks[o]=l.enterCallbacks[o]||[]);return()=>new Promise((a,i)=>{const c=A=>{A===!1?i(fe(X1.NAVIGATION_ABORTED,{from:n,to:t})):A instanceof Error?i(A):Lr(A)?i(fe(X1.NAVIGATION_GUARD_REDIRECT,{from:t,to:A})):(s&&l.enterCallbacks[o]===s&&typeof A=="function"&&s.push(A),a())},d=r(()=>e.call(l&&l.instances[o],t,n,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(A=>i(A))})}function B5(e,t,n,l,o=r=>r()){const r=[];for(const s of e)for(const a in s.components){let i=s.components[a];if(!(t!=="beforeRouteEnter"&&!s.instances[a]))if(u0(i)){const c=(i.__vccOpts||i)[t];c&&r.push(_3(c,n,l,s,a,o))}else{let c=i();r.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${s.path}"`);const u=pr(d)?d.default:d;s.mods[a]=d,s.components[a]=u;const A=(u.__vccOpts||u)[t];return A&&_3(A,n,l,s,a,o)()}))}}return r}function Ur(e,t){const n=[],l=[],o=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;sde(c,a))?l.push(a):n.push(a));const i=e.matched[s];i&&(t.matched.find(c=>de(c,i))||o.push(i))}return[n,l,o]}/*! + */const le=typeof document<"u";function h0(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function ks(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&h0(e.default)}const N1=Object.assign;function F5(e,t){const n={};for(const l in t){const o=t[l];n[l]=L2(o)?o.map(e):e(o)}return n}const Oe=()=>{},L2=Array.isArray;function O6(e,t){const n={};for(const l in e)n[l]=l in t?t[l]:e[l];return n}const p0=/#/g,Cs=/&/g,ws=/\//g,xs=/=/g,_s=/\?/g,m0=/\+/g,Is=/%5B/g,Ms=/%5D/g,g0=/%5E/g,Es=/%60/g,v0=/%7B/g,Ds=/%7C/g,y0=/%7D/g,Zs=/%20/g;function $t(e){return e==null?"":encodeURI(""+e).replace(Ds,"|").replace(Is,"[").replace(Ms,"]")}function Fs(e){return $t(e).replace(v0,"{").replace(y0,"}").replace(g0,"^")}function at(e){return $t(e).replace(m0,"%2B").replace(Zs,"+").replace(p0,"%23").replace(Cs,"%26").replace(Es,"`").replace(v0,"{").replace(y0,"}").replace(g0,"^")}function Bs(e){return at(e).replace(xs,"%3D")}function Ss(e){return $t(e).replace(p0,"%23").replace(_s,"%3F")}function Rs(e){return Ss(e).replace(ws,"%2F")}function e4(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const Qs=/\/$/,Ns=e=>e.replace(Qs,"");function B5(e,t,n="/"){let l,o={},s="",r="";const a=t.indexOf("#");let i=t.indexOf("?");return i=a>=0&&i>a?-1:i,i>=0&&(l=t.slice(0,i),s=t.slice(i,a>0?a:t.length),o=e(s.slice(1))),a>=0&&(l=l||t.slice(0,a),r=t.slice(a,t.length)),l=Os(l??t,n),{fullPath:l+s+r,path:l,query:o,hash:e4(r)}}function Ks(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function W6(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function Gs(e,t,n){const l=t.matched.length-1,o=n.matched.length-1;return l>-1&&l===o&&fe(t.matched[l],n.matched[o])&&b0(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function fe(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function b0(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!$s(e[n],t[n]))return!1;return!0}function $s(e,t){return L2(e)?L6(e,t):L2(t)?L6(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function L6(e,t){return L2(t)?e.length===t.length&&e.every((n,l)=>n===t[l]):e.length===1&&e[0]===t}function Os(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),l=e.split("/"),o=l[l.length-1];(o===".."||o===".")&&l.push("");let s=n.length-1,r,a;for(r=0;r1&&s--;else break;return n.slice(0,s).join("/")+"/"+l.slice(r).join("/")}const C3={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let it=(function(e){return e.pop="pop",e.push="push",e})({}),S5=(function(e){return e.back="back",e.forward="forward",e.unknown="",e})({});function Ws(e){if(!e)if(le){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ns(e)}const Ls=/^[^#]+#/;function Ps(e,t){return e.replace(Ls,"#")+t}function Ts(e,t){const n=document.documentElement.getBoundingClientRect(),l=e.getBoundingClientRect();return{behavior:t.behavior,left:l.left-n.left-(t.left||0),top:l.top-n.top-(t.top||0)}}const u5=()=>({left:window.scrollX,top:window.scrollY});function Hs(e){let t;if("el"in e){const n=e.el,l=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?l?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=Ts(o,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function P6(e,t){return(history.state?history.state.position-t:-1)+e}const ct=new Map;function Vs(e,t){ct.set(e,t)}function Ys(e){const t=ct.get(e);return ct.delete(e),t}function Us(e){return typeof e=="string"||e&&typeof e=="object"}function k0(e){return typeof e=="string"||typeof e=="symbol"}let X1=(function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e})({});const C0=Symbol("");X1.MATCHER_NOT_FOUND+"",X1.NAVIGATION_GUARD_REDIRECT+"",X1.NAVIGATION_ABORTED+"",X1.NAVIGATION_CANCELLED+"",X1.NAVIGATION_DUPLICATED+"";function Ae(e,t){return N1(new Error,{type:e,[C0]:!0},t)}function l3(e,t){return e instanceof Error&&C0 in e&&(t==null||!!(e.type&t))}const Js=["params","query","hash"];function zs(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const n of Js)n in e&&(t[n]=e[n]);return JSON.stringify(t,null,2)}function js(e){const t={};if(e===""||e==="?")return t;const n=(e[0]==="?"?e.slice(1):e).split("&");for(let l=0;lo&&at(o)):[l&&at(l)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Xs(e){const t={};for(const n in e){const l=e[n];l!==void 0&&(t[n]=L2(l)?l.map(o=>o==null?null:""+o):l==null?l:""+l)}return t}const qs=Symbol(""),H6=Symbol(""),d5=Symbol(""),Ot=Symbol(""),ut=Symbol("");function Ie(){let e=[];function t(l){return e.push(l),()=>{const o=e.indexOf(l);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function I3(e,t,n,l,o,s=r=>r()){const r=l&&(l.enterCallbacks[o]=l.enterCallbacks[o]||[]);return()=>new Promise((a,i)=>{const c=A=>{A===!1?i(Ae(X1.NAVIGATION_ABORTED,{from:n,to:t})):A instanceof Error?i(A):Us(A)?i(Ae(X1.NAVIGATION_GUARD_REDIRECT,{from:t,to:A})):(r&&l.enterCallbacks[o]===r&&typeof A=="function"&&r.push(A),a())},u=s(()=>e.call(l&&l.instances[o],t,n,c));let d=Promise.resolve(u);e.length<3&&(d=d.then(c)),d.catch(A=>i(A))})}function R5(e,t,n,l,o=s=>s()){const s=[];for(const r of e)for(const a in r.components){let i=r.components[a];if(!(t!=="beforeRouteEnter"&&!r.instances[a]))if(h0(i)){const c=(i.__vccOpts||i)[t];c&&s.push(I3(c,n,l,r,a,o))}else{let c=i();s.push(()=>c.then(u=>{if(!u)throw new Error(`Couldn't resolve component "${a}" at "${r.path}"`);const d=ks(u)?u.default:u;r.mods[a]=u,r.components[a]=d;const A=(d.__vccOpts||d)[t];return A&&I3(A,n,l,r,a,o)()}))}}return s}function er(e,t){const n=[],l=[],o=[],s=Math.max(t.matched.length,e.matched.length);for(let r=0;rfe(c,a))?l.push(a):n.push(a));const i=e.matched[r];i&&(t.matched.find(c=>fe(c,i))||o.push(i))}return[n,l,o]}/*! * vue-router v4.6.4 * (c) 2025 Eduardo San Martin Morote * @license MIT - */let Jr=()=>location.protocol+"//"+location.host;function y0(e,t){const{pathname:n,search:l,hash:o}=t,r=e.indexOf("#");if(r>-1){let s=o.includes(e.slice(r))?e.slice(r).length:1,a=o.slice(s);return a[0]!=="/"&&(a="/"+a),G6(a,"")}return G6(n,e)+l+o}function zr(e,t,n,l){let o=[],r=[],s=null;const a=({state:A})=>{const p=y0(e,location),m=n.value,k=t.value;let D=0;if(A){if(n.value=p,t.value=A,s&&s===m){s=null;return}D=k?A.position-k.position:0}else l(p);o.forEach(F=>{F(n.value,m,{delta:D,type:st.pop,direction:D?D>0?F5.forward:F5.back:F5.unknown})})};function i(){s=n.value}function c(A){o.push(A);const p=()=>{const m=o.indexOf(A);m>-1&&o.splice(m,1)};return r.push(p),p}function d(){if(document.visibilityState==="hidden"){const{history:A}=window;if(!A.state)return;A.replaceState(Q1({},A.state,{scroll:i5()}),"")}}function u(){for(const A of r)A();r=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:i,listen:c,destroy:u}}function P6(e,t,n,l=!1,o=!1){return{back:e,current:t,forward:n,replaced:l,position:window.history.length,scroll:o?i5():null}}function jr(e){const{history:t,location:n}=window,l={value:y0(e,n)},o={value:t.state};o.value||r(l.value,{back:null,current:l.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(i,c,d){const u=e.indexOf("#"),A=u>-1?(n.host&&document.querySelector("base")?e:e.slice(u))+i:Jr()+e+i;try{t[d?"replaceState":"pushState"](c,"",A),o.value=c}catch(p){console.error(p),n[d?"replace":"assign"](A)}}function s(i,c){r(i,Q1({},t.state,P6(o.value.back,i,o.value.forward,!0),c,{position:o.value.position}),!0),l.value=i}function a(i,c){const d=Q1({},o.value,t.state,{forward:i,scroll:i5()});r(d.current,d,!0),r(i,Q1({},P6(l.value,i,null),{position:d.position+1},c),!1),l.value=i}return{location:l,state:o,push:a,replace:s}}function Xr(e){e=Qr(e);const t=jr(e),n=zr(e,t.state,t.location,t.replace);function l(r,s=!0){s||n.pauseListeners(),history.go(r)}const o=Q1({location:"",base:e,go:l,createHref:Kr.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let H3=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var o2=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(o2||{});const qr={type:H3.Static,value:""},es=/[a-zA-Z0-9_]/;function ts(e){if(!e)return[[]];if(e==="/")return[[qr]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=o2.Static,l=n;const o=[];let r;function s(){r&&o.push(r),r=[]}let a=0,i,c="",d="";function u(){c&&(n===o2.Static?r.push({type:H3.Static,value:c}):n===o2.Param||n===o2.ParamRegExp||n===o2.ParamRegExpEnd?(r.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),r.push({type:H3.Param,value:c,regexp:d,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function A(){c+=i}for(;at.length?t.length===1&&t[0]===v2.Static+v2.Segment?1:-1:0}function b0(e,t){let n=0;const l=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const ss={strict:!1,end:!0,sensitive:!1};function as(e,t,n){const l=os(ts(e.path),n),o=Q1(l,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function is(e,t){const n=[],l=new Map;t=K6(ss,t);function o(u){return l.get(u)}function r(u,A,p){const m=!p,k=V6(u);k.aliasOf=p&&p.record;const D=K6(t,u),F=[k];if("alias"in u){const v=typeof u.alias=="string"?[u.alias]:u.alias;for(const S of v)F.push(V6(Q1({},k,{components:p?p.record.components:k.components,path:S,aliasOf:p?p.record:k})))}let C,I;for(const v of F){const{path:S}=v;if(A&&S[0]!=="/"){const L=A.record.path,Z=L[L.length-1]==="/"?"":"/";v.path=A.record.path+(S&&Z+S)}if(C=as(v,A,D),p?p.alias.push(C):(I=I||C,I!==C&&I.alias.push(C),m&&u.name&&!U6(C)&&s(u.name)),k0(C)&&i(C),k.children){const L=k.children;for(let Z=0;Z{s(I)}:$e}function s(u){if(g0(u)){const A=l.get(u);A&&(l.delete(u),n.splice(n.indexOf(A),1),A.children.forEach(s),A.alias.forEach(s))}else{const A=n.indexOf(u);A>-1&&(n.splice(A,1),u.record.name&&l.delete(u.record.name),u.children.forEach(s),u.alias.forEach(s))}}function a(){return n}function i(u){const A=ds(u,n);n.splice(A,0,u),u.record.name&&!U6(u)&&l.set(u.record.name,u)}function c(u,A){let p,m={},k,D;if("name"in u&&u.name){if(p=l.get(u.name),!p)throw fe(X1.MATCHER_NOT_FOUND,{location:u});D=p.record.name,m=Q1(Y6(A.params,p.keys.filter(I=>!I.optional).concat(p.parent?p.parent.keys.filter(I=>I.optional):[]).map(I=>I.name)),u.params&&Y6(u.params,p.keys.map(I=>I.name))),k=p.stringify(m)}else if(u.path!=null)k=u.path,p=n.find(I=>I.re.test(k)),p&&(m=p.parse(k),D=p.record.name);else{if(p=A.name?l.get(A.name):n.find(I=>I.re.test(A.path)),!p)throw fe(X1.MATCHER_NOT_FOUND,{location:u,currentLocation:A});D=p.record.name,m=Q1({},A.params,u.params),k=p.stringify(m)}const F=[];let C=p;for(;C;)F.unshift(C.record),C=C.parent;return{name:D,path:k,params:m,matched:F,meta:us(F)}}e.forEach(u=>r(u));function d(){n.length=0,l.clear()}return{addRoute:r,resolve:c,removeRoute:s,clearRoutes:d,getRoutes:a,getRecordMatcher:o}}function Y6(e,t){const n={};for(const l of t)l in e&&(n[l]=e[l]);return n}function V6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:cs(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function cs(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const l in e.components)t[l]=typeof n=="object"?n[l]:n;return t}function U6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function us(e){return e.reduce((t,n)=>Q1(t,n.meta),{})}function ds(e,t){let n=0,l=t.length;for(;n!==l;){const r=n+l>>1;b0(e,t[r])<0?l=r:n=r+1}const o=fs(e);return o&&(l=t.lastIndexOf(o,l-1)),l}function fs(e){let t=e;for(;t=t.parent;)if(k0(t)&&b0(e,t)===0)return t}function k0({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function J6(e){const t=G2(c5),n=G2(Kt),l=t1(()=>{const i=f(e.to);return t.resolve(i)}),o=t1(()=>{const{matched:i}=l.value,{length:c}=i,d=i[c-1],u=n.matched;if(!d||!u.length)return-1;const A=u.findIndex(de.bind(null,d));if(A>-1)return A;const p=z6(i[c-2]);return c>1&&z6(d)===p&&u[u.length-1].path!==p?u.findIndex(de.bind(null,i[c-2])):A}),r=t1(()=>o.value>-1&&gs(n.params,l.value.params)),s=t1(()=>o.value>-1&&o.value===n.matched.length-1&&m0(n.params,l.value.params));function a(i={}){if(ms(i)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch($e);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:l,href:t1(()=>l.value.href),isActive:r,isExactActive:s,navigate:a}}function As(e){return e.length===1?e[0]:e}const hs=W1({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:J6,setup(e,{slots:t}){const n=e5(J6(e)),{options:l}=G2(c5),o=t1(()=>({[j6(e.activeClass,l.linkActiveClass,"router-link-active")]:n.isActive,[j6(e.exactActiveClass,l.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&As(t.default(n));return e.custom?r:h3("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},r)}}}),ps=hs;function ms(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function gs(e,t){for(const n in t){const l=t[n],o=e[n];if(typeof l=="string"){if(l!==o)return!1}else if(!W2(o)||o.length!==l.length||l.some((r,s)=>r.valueOf()!==o[s].valueOf()))return!1}return!0}function z6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const j6=(e,t,n)=>e??t??n,vs=W1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const l=G2(it),o=t1(()=>e.route||l.value),r=G2(L6,0),s=t1(()=>{let c=f(r);const{matched:d}=o.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=t1(()=>o.value.matched[s.value]);D4(L6,t1(()=>s.value+1)),D4(Vr,a),D4(it,o);const i=j();return q1(()=>[i.value,a.value,e.name],([c,d,u],[A,p,m])=>{d&&(d.instances[u]=c,p&&p!==d&&c&&c===A&&(d.leaveGuards.size||(d.leaveGuards=p.leaveGuards),d.updateGuards.size||(d.updateGuards=p.updateGuards))),c&&d&&(!p||!de(d,p)||!A)&&(d.enterCallbacks[u]||[]).forEach(k=>k(c))},{flush:"post"}),()=>{const c=o.value,d=e.name,u=a.value,A=u&&u.components[d];if(!A)return X6(n.default,{Component:A,route:c});const p=u.props[d],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,D=h3(A,Q1({},m,t,{onVnodeUnmounted:F=>{F.component.isUnmounted&&(u.instances[d]=null)},ref:i}));return X6(n.default,{Component:D,route:c})||D}}});function X6(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ys=vs;function bs(e){const t=is(e.routes,e),n=e.parseQuery||Hr,l=e.stringifyQuery||W6,o=e.history,r=_e(),s=_e(),a=_e(),i=hl(k3);let c=k3;le&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=D5.bind(null,$=>""+$),u=D5.bind(null,Er),A=D5.bind(null,e4);function p($,z){let K,f1;return g0($)?(K=t.getRecordMatcher($),f1=z):f1=$,t.addRoute(f1,K)}function m($){const z=t.getRecordMatcher($);z&&t.removeRoute(z)}function k(){return t.getRoutes().map($=>$.record)}function D($){return!!t.getRecordMatcher($)}function F($,z){if(z=Q1({},z||i.value),typeof $=="string"){const E=Z5(n,$,z.path),P=t.resolve({path:E.path},z),Y=o.createHref(E.fullPath);return Q1(E,P,{params:A(P.params),hash:e4(E.hash),redirectedFrom:void 0,href:Y})}let K;if($.path!=null)K=Q1({},$,{path:Z5(n,$.path,z.path).path});else{const E=Q1({},$.params);for(const P in E)E[P]==null&&delete E[P];K=Q1({},$,{params:u(E)}),z.params=u(z.params)}const f1=t.resolve(K,z),x1=$.hash||"";f1.params=d(A(f1.params));const g=Fr(l,Q1({},$,{hash:_r(x1),path:f1.path})),b=o.createHref(g);return Q1({fullPath:g,hash:x1,query:l===W6?Yr($.query):$.query||{}},f1,{redirectedFrom:void 0,href:b})}function C($){return typeof $=="string"?Z5(n,$,i.value.path):Q1({},$)}function I($,z){if(c!==$)return fe(X1.NAVIGATION_CANCELLED,{from:z,to:$})}function v($){return Z($)}function S($){return v(Q1(C($),{replace:!0}))}function L($,z){const K=$.matched[$.matched.length-1];if(K&&K.redirect){const{redirect:f1}=K;let x1=typeof f1=="function"?f1($,z):f1;return typeof x1=="string"&&(x1=x1.includes("?")||x1.includes("#")?x1=C(x1):{path:x1},x1.params={}),Q1({query:$.query,hash:$.hash,params:x1.path!=null?{}:$.params},x1)}}function Z($,z){const K=c=F($),f1=i.value,x1=$.state,g=$.force,b=$.replace===!0,E=L(K,f1);if(E)return Z(Q1(C(E),{state:typeof E=="object"?Q1({},x1,E.state):x1,force:g,replace:b}),z||K);const P=K;P.redirectedFrom=z;let Y;return!g&&Br(l,f1,K)&&(Y=fe(X1.NAVIGATION_DUPLICATED,{to:P,from:f1}),O1(f1,f1,!0,!1)),(Y?Promise.resolve(Y):B(P,f1)).catch(T=>l3(T)?l3(T,X1.NAVIGATION_GUARD_REDIRECT)?T:s1(T):C1(T,P,f1)).then(T=>{if(T){if(l3(T,X1.NAVIGATION_GUARD_REDIRECT))return Z(Q1({replace:b},C(T.to),{state:typeof T.to=="object"?Q1({},x1,T.to.state):x1,force:g}),z||P)}else T=V(P,f1,!0,b,x1);return q(P,f1,T),T})}function _($,z){const K=I($,z);return K?Promise.reject(K):Promise.resolve()}function R($){const z=e2.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext($):$()}function B($,z){let K;const[f1,x1,g]=Ur($,z);K=B5(f1.reverse(),"beforeRouteLeave",$,z);for(const E of f1)E.leaveGuards.forEach(P=>{K.push(_3(P,$,z))});const b=_.bind(null,$,z);return K.push(b),h1(K).then(()=>{K=[];for(const E of r.list())K.push(_3(E,$,z));return K.push(b),h1(K)}).then(()=>{K=B5(x1,"beforeRouteUpdate",$,z);for(const E of x1)E.updateGuards.forEach(P=>{K.push(_3(P,$,z))});return K.push(b),h1(K)}).then(()=>{K=[];for(const E of g)if(E.beforeEnter)if(W2(E.beforeEnter))for(const P of E.beforeEnter)K.push(_3(P,$,z));else K.push(_3(E.beforeEnter,$,z));return K.push(b),h1(K)}).then(()=>($.matched.forEach(E=>E.enterCallbacks={}),K=B5(g,"beforeRouteEnter",$,z,R),K.push(b),h1(K))).then(()=>{K=[];for(const E of s.list())K.push(_3(E,$,z));return K.push(b),h1(K)}).catch(E=>l3(E,X1.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function q($,z,K){a.list().forEach(f1=>R(()=>f1($,z,K)))}function V($,z,K,f1,x1){const g=I($,z);if(g)return g;const b=z===k3,E=le?history.state:{};K&&(f1||b?o.replace($.fullPath,Q1({scroll:b&&E&&E.scroll},x1)):o.push($.fullPath,x1)),i.value=$,O1($,z,K,b),s1()}let m1;function y1(){m1||(m1=o.listen(($,z,K)=>{if(!a1.listening)return;const f1=F($),x1=L(f1,a1.currentRoute.value);if(x1){Z(Q1(x1,{replace:!0,force:!0}),f1).catch($e);return}c=f1;const g=i.value;le&&$r($6(g.fullPath,K.delta),i5()),B(f1,g).catch(b=>l3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_CANCELLED)?b:l3(b,X1.NAVIGATION_GUARD_REDIRECT)?(Z(Q1(C(b.to),{force:!0}),f1).then(E=>{l3(E,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&!K.delta&&K.type===st.pop&&o.go(-1,!1)}).catch($e),Promise.reject()):(K.delta&&o.go(-K.delta,!1),C1(b,f1,g))).then(b=>{b=b||V(f1,g,!1),b&&(K.delta&&!l3(b,X1.NAVIGATION_CANCELLED)?o.go(-K.delta,!1):K.type===st.pop&&l3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),q(f1,g,b)}).catch($e)}))}let l1=_e(),o1=_e(),v1;function C1($,z,K){s1($);const f1=o1.list();return f1.length?f1.forEach(x1=>x1($,z,K)):console.error($),Promise.reject($)}function k1(){return v1&&i.value!==k3?Promise.resolve():new Promise(($,z)=>{l1.add([$,z])})}function s1($){return v1||(v1=!$,y1(),l1.list().forEach(([z,K])=>$?K($):z()),l1.reset()),$}function O1($,z,K,f1){const{scrollBehavior:x1}=e;if(!le||!x1)return Promise.resolve();const g=!K&&Wr($6($.fullPath,0))||(f1||!K)&&history.state&&history.state.scroll||null;return v8().then(()=>x1($,z,g)).then(b=>b&&Or(b)).catch(b=>C1(b,$,z))}const F1=$=>o.go($);let V1;const e2=new Set,a1={currentRoute:i,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:D,getRoutes:k,resolve:F,options:e,push:v,replace:S,go:F1,back:()=>F1(-1),forward:()=>F1(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:o1.add,isReady:k1,install($){$.component("RouterLink",ps),$.component("RouterView",ys),$.config.globalProperties.$router=a1,Object.defineProperty($.config.globalProperties,"$route",{enumerable:!0,get:()=>f(i)}),le&&!V1&&i.value===k3&&(V1=!0,v(o.location).catch(f1=>{}));const z={};for(const f1 in k3)Object.defineProperty(z,f1,{get:()=>i.value[f1],enumerable:!0});$.provide(c5,a1),$.provide(Kt,h8(z)),$.provide(it,i);const K=$.unmount;e2.add($),$.unmount=function(){e2.delete($),e2.size<1&&(c=k3,m1&&m1(),m1=null,i.value=k3,V1=!1,v1=!1),K()}}};function h1($){return $.reduce((z,K)=>z.then(()=>R(K)),Promise.resolve())}return a1}function ve(){return G2(c5)}function u5(e){return G2(Kt)}function C0(e){var t,n,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const n=new Array(e.length+t.length);for(let l=0;l({classGroupId:e,validator:t}),x0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),T4="-",q6=[],ws="arbitrary..",xs=e=>{const t=Is(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:s=>{if(s.startsWith("[")&&s.endsWith("]"))return _s(s);const a=s.split(T4),i=a[0]===""&&a.length>1?1:0;return _0(a,i,t)},getConflictingClassGroupIds:(s,a)=>{if(a){const i=l[s],c=n[s];return i?c?ks(c,i):i:c||q6}return n[s]||q6}}},_0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],r=n.nextPart.get(o);if(r){const c=_0(e,t+1,r);if(c)return c}const s=n.validators;if(s===null)return;const a=t===0?e.join(T4):e.slice(t).join(T4),i=s.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),l=t.slice(0,n);return l?ws+l:void 0})(),Is=e=>{const{theme:t,classGroups:n}=e;return Ms(n,t)},Ms=(e,t)=>{const n=x0();for(const l in e){const o=e[l];Gt(o,n,l,t)}return n},Gt=(e,t,n,l)=>{const o=e.length;for(let r=0;r{if(typeof e=="string"){Ds(e,t,n);return}if(typeof e=="function"){Zs(e,t,n,l);return}Fs(e,t,n,l)},Ds=(e,t,n)=>{const l=e===""?t:I0(t,e);l.classGroupId=n},Zs=(e,t,n,l)=>{if(Bs(e)){Gt(e(l),t,n,l);return}t.validators===null&&(t.validators=[]),t.validators.push(Cs(n,e))},Fs=(e,t,n,l)=>{const o=Object.entries(e),r=o.length;for(let s=0;s{let n=e;const l=t.split(T4),o=l.length;for(let r=0;r"isThemeGetter"in e&&e.isThemeGetter===!0,Ss=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),l=Object.create(null);const o=(r,s)=>{n[r]=s,t++,t>e&&(t=0,l=n,n=Object.create(null))};return{get(r){let s=n[r];if(s!==void 0)return s;if((s=l[r])!==void 0)return o(r,s),s},set(r,s){r in n?n[r]=s:o(r,s)}}},ct="!",e7=":",Rs=[],t7=(e,t,n,l,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:l,isExternal:o}),Qs=e=>{const{prefix:t,experimentalParseClassName:n}=e;let l=o=>{const r=[];let s=0,a=0,i=0,c;const d=o.length;for(let k=0;ki?c-i:void 0;return t7(r,p,A,m)};if(t){const o=t+e7,r=l;l=s=>s.startsWith(o)?r(s.slice(o.length)):t7(Rs,!1,s,void 0,!0)}if(n){const o=l;l=r=>n({className:r,parseClassName:o})}return l},Ns=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,l)=>{t.set(n,1e6+l)}),n=>{const l=[];let o=[];for(let r=0;r0&&(o.sort(),l.push(...o),o=[]),l.push(s)):o.push(s)}return o.length>0&&(o.sort(),l.push(...o)),l}},Ks=e=>({cache:Ss(e.cacheSize),parseClassName:Qs(e),sortModifiers:Ns(e),postfixLookupClassGroupIds:Gs(e),...xs(e)}),Gs=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let l=0;l{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:r,postfixLookupClassGroupIds:s}=t,a=[],i=e.trim().split(Os);let c="";for(let d=i.length-1;d>=0;d-=1){const u=i[d],{isExternal:A,modifiers:p,hasImportantModifier:m,baseClassName:k,maybePostfixModifierPosition:D}=n(u);if(A){c=u+(c.length>0?" "+c:c);continue}let F=!!D,C;if(F){const Z=k.substring(0,D);C=l(Z);const _=C&&s[C]?l(k):void 0;_&&_!==C&&(C=_,F=!1)}else C=l(k);if(!C){if(!F){c=u+(c.length>0?" "+c:c);continue}if(C=l(k),!C){c=u+(c.length>0?" "+c:c);continue}F=!1}const I=p.length===0?"":p.length===1?p[0]:r(p).join(":"),v=m?I+ct:I,S=v+C;if(a.indexOf(S)>-1)continue;a.push(S);const L=o(C,F);for(let Z=0;Z0?" "+c:c)}return c},Ws=(...e)=>{let t=0,n,l,o="";for(;t{if(typeof e=="string")return e;let t,n="";for(let l=0;l{let n,l,o,r;const s=i=>{const c=t.reduce((d,u)=>u(d),e());return n=Ks(c),l=n.cache.get,o=n.cache.set,r=a,a(i)},a=i=>{const c=l(i);if(c)return c;const d=$s(i,n);return o(i,d),d};return r=s,(...i)=>r(Ws(...i))},Ps=[],l2=e=>{const t=n=>n[e]||Ps;return t.isThemeGetter=!0,t},E0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,D0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,Ts=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,Hs=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ys=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Vs=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,Us=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Js=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,C3=e=>Ts.test(e),E1=e=>!!e&&!Number.isNaN(Number(e)),P2=e=>!!e&&Number.isInteger(Number(e)),S5=e=>e.endsWith("%")&&E1(e.slice(0,-1)),o3=e=>Hs.test(e),Z0=()=>!0,zs=e=>Ys.test(e)&&!Vs.test(e),Ot=()=>!1,js=e=>Us.test(e),Xs=e=>Js.test(e),qs=e=>!c1(e)&&!u1(e),ea=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),ta=e=>B3(e,S0,Ot),c1=e=>E0.test(e),K3=e=>B3(e,R0,zs),n7=e=>B3(e,ca,E1),na=e=>B3(e,N0,Z0),la=e=>B3(e,Q0,Ot),l7=e=>B3(e,F0,Ot),oa=e=>B3(e,B0,Xs),k4=e=>B3(e,K0,js),u1=e=>D0.test(e),Ie=e=>j3(e,R0),ra=e=>j3(e,Q0),o7=e=>j3(e,F0),sa=e=>j3(e,S0),aa=e=>j3(e,B0),C4=e=>j3(e,K0,!0),ia=e=>j3(e,N0,!0),B3=(e,t,n)=>{const l=E0.exec(e);return l?l[1]?t(l[1]):n(l[2]):!1},j3=(e,t,n=!1)=>{const l=D0.exec(e);return l?l[1]?t(l[1]):n:!1},F0=e=>e==="position"||e==="percentage",B0=e=>e==="image"||e==="url",S0=e=>e==="length"||e==="size"||e==="bg-size",R0=e=>e==="length",ca=e=>e==="number",Q0=e=>e==="family-name",N0=e=>e==="number"||e==="weight",K0=e=>e==="shadow",ua=()=>{const e=l2("color"),t=l2("font"),n=l2("text"),l=l2("font-weight"),o=l2("tracking"),r=l2("leading"),s=l2("breakpoint"),a=l2("container"),i=l2("spacing"),c=l2("radius"),d=l2("shadow"),u=l2("inset-shadow"),A=l2("text-shadow"),p=l2("drop-shadow"),m=l2("blur"),k=l2("perspective"),D=l2("aspect"),F=l2("ease"),C=l2("animate"),I=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],S=()=>[...v(),u1,c1],L=()=>["auto","hidden","clip","visible","scroll"],Z=()=>["auto","contain","none"],_=()=>[u1,c1,i],R=()=>[C3,"full","auto",..._()],B=()=>[P2,"none","subgrid",u1,c1],q=()=>["auto",{span:["full",P2,u1,c1]},P2,u1,c1],V=()=>[P2,"auto",u1,c1],m1=()=>["auto","min","max","fr",u1,c1],y1=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],l1=()=>["start","end","center","stretch","center-safe","end-safe"],o1=()=>["auto",..._()],v1=()=>[C3,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],C1=()=>[C3,"screen","full","dvw","lvw","svw","min","max","fit",..._()],k1=()=>[C3,"screen","full","lh","dvh","lvh","svh","min","max","fit",..._()],s1=()=>[e,u1,c1],O1=()=>[...v(),o7,l7,{position:[u1,c1]}],F1=()=>["no-repeat",{repeat:["","x","y","space","round"]}],V1=()=>["auto","cover","contain",sa,ta,{size:[u1,c1]}],e2=()=>[S5,Ie,K3],a1=()=>["","none","full",c,u1,c1],h1=()=>["",E1,Ie,K3],$=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],K=()=>[E1,S5,o7,l7],f1=()=>["","none",m,u1,c1],x1=()=>["none",E1,u1,c1],g=()=>["none",E1,u1,c1],b=()=>[E1,u1,c1],E=()=>[C3,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[o3],breakpoint:[o3],color:[Z0],container:[o3],"drop-shadow":[o3],ease:["in","out","in-out"],font:[qs],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[o3],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[o3],shadow:[o3],spacing:["px",E1],text:[o3],"text-shadow":[o3],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",C3,c1,u1,D]}],container:["container"],"container-type":[{"@container":["","normal","size",u1,c1]}],"container-named":[ea],columns:[{columns:[E1,c1,u1,a]}],"break-after":[{"break-after":I()}],"break-before":[{"break-before":I()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:S()}],overflow:[{overflow:L()}],"overflow-x":[{"overflow-x":L()}],"overflow-y":[{"overflow-y":L()}],overscroll:[{overscroll:Z()}],"overscroll-x":[{"overscroll-x":Z()}],"overscroll-y":[{"overscroll-y":Z()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:R()}],"inset-x":[{"inset-x":R()}],"inset-y":[{"inset-y":R()}],start:[{"inset-s":R(),start:R()}],end:[{"inset-e":R(),end:R()}],"inset-bs":[{"inset-bs":R()}],"inset-be":[{"inset-be":R()}],top:[{top:R()}],right:[{right:R()}],bottom:[{bottom:R()}],left:[{left:R()}],visibility:["visible","invisible","collapse"],z:[{z:[P2,"auto",u1,c1]}],basis:[{basis:[C3,"full","auto",a,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[E1,C3,"auto","initial","none",c1]}],grow:[{grow:["",E1,u1,c1]}],shrink:[{shrink:["",E1,u1,c1]}],order:[{order:[P2,"first","last","none",u1,c1]}],"grid-cols":[{"grid-cols":B()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":V()}],"col-end":[{"col-end":V()}],"grid-rows":[{"grid-rows":B()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":V()}],"row-end":[{"row-end":V()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":m1()}],"auto-rows":[{"auto-rows":m1()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:[...y1(),"normal"]}],"justify-items":[{"justify-items":[...l1(),"normal"]}],"justify-self":[{"justify-self":["auto",...l1()]}],"align-content":[{content:["normal",...y1()]}],"align-items":[{items:[...l1(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...l1(),{baseline:["","last"]}]}],"place-content":[{"place-content":y1()}],"place-items":[{"place-items":[...l1(),"baseline"]}],"place-self":[{"place-self":["auto",...l1()]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pbs:[{pbs:_()}],pbe:[{pbe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:o1()}],mx:[{mx:o1()}],my:[{my:o1()}],ms:[{ms:o1()}],me:[{me:o1()}],mbs:[{mbs:o1()}],mbe:[{mbe:o1()}],mt:[{mt:o1()}],mr:[{mr:o1()}],mb:[{mb:o1()}],ml:[{ml:o1()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:v1()}],"inline-size":[{inline:["auto",...C1()]}],"min-inline-size":[{"min-inline":["auto",...C1()]}],"max-inline-size":[{"max-inline":["none",...C1()]}],"block-size":[{block:["auto",...k1()]}],"min-block-size":[{"min-block":["auto",...k1()]}],"max-block-size":[{"max-block":["none",...k1()]}],w:[{w:[a,"screen",...v1()]}],"min-w":[{"min-w":[a,"screen","none",...v1()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[s]},...v1()]}],h:[{h:["screen","lh",...v1()]}],"min-h":[{"min-h":["screen","lh","none",...v1()]}],"max-h":[{"max-h":["screen","lh",...v1()]}],"font-size":[{text:["base",n,Ie,K3]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ia,na]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",S5,c1]}],"font-family":[{font:[ra,la,t]}],"font-features":[{"font-features":[c1]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,u1,c1]}],"line-clamp":[{"line-clamp":[E1,"none",u1,n7]}],leading:[{leading:[r,..._()]}],"list-image":[{"list-image":["none",u1,c1]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u1,c1]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:s1()}],"text-color":[{text:s1()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...$(),"wavy"]}],"text-decoration-thickness":[{decoration:[E1,"from-font","auto",u1,K3]}],"text-decoration-color":[{decoration:s1()}],"underline-offset":[{"underline-offset":[E1,"auto",u1,c1]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"tab-size":[{tab:[P2,u1,c1]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u1,c1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u1,c1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O1()}],"bg-repeat":[{bg:F1()}],"bg-size":[{bg:V1()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},P2,u1,c1],radial:["",u1,c1],conic:[P2,u1,c1]},aa,oa]}],"bg-color":[{bg:s1()}],"gradient-from-pos":[{from:e2()}],"gradient-via-pos":[{via:e2()}],"gradient-to-pos":[{to:e2()}],"gradient-from":[{from:s1()}],"gradient-via":[{via:s1()}],"gradient-to":[{to:s1()}],rounded:[{rounded:a1()}],"rounded-s":[{"rounded-s":a1()}],"rounded-e":[{"rounded-e":a1()}],"rounded-t":[{"rounded-t":a1()}],"rounded-r":[{"rounded-r":a1()}],"rounded-b":[{"rounded-b":a1()}],"rounded-l":[{"rounded-l":a1()}],"rounded-ss":[{"rounded-ss":a1()}],"rounded-se":[{"rounded-se":a1()}],"rounded-ee":[{"rounded-ee":a1()}],"rounded-es":[{"rounded-es":a1()}],"rounded-tl":[{"rounded-tl":a1()}],"rounded-tr":[{"rounded-tr":a1()}],"rounded-br":[{"rounded-br":a1()}],"rounded-bl":[{"rounded-bl":a1()}],"border-w":[{border:h1()}],"border-w-x":[{"border-x":h1()}],"border-w-y":[{"border-y":h1()}],"border-w-s":[{"border-s":h1()}],"border-w-e":[{"border-e":h1()}],"border-w-bs":[{"border-bs":h1()}],"border-w-be":[{"border-be":h1()}],"border-w-t":[{"border-t":h1()}],"border-w-r":[{"border-r":h1()}],"border-w-b":[{"border-b":h1()}],"border-w-l":[{"border-l":h1()}],"divide-x":[{"divide-x":h1()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":h1()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...$(),"hidden","none"]}],"divide-style":[{divide:[...$(),"hidden","none"]}],"border-color":[{border:s1()}],"border-color-x":[{"border-x":s1()}],"border-color-y":[{"border-y":s1()}],"border-color-s":[{"border-s":s1()}],"border-color-e":[{"border-e":s1()}],"border-color-bs":[{"border-bs":s1()}],"border-color-be":[{"border-be":s1()}],"border-color-t":[{"border-t":s1()}],"border-color-r":[{"border-r":s1()}],"border-color-b":[{"border-b":s1()}],"border-color-l":[{"border-l":s1()}],"divide-color":[{divide:s1()}],"outline-style":[{outline:[...$(),"none","hidden"]}],"outline-offset":[{"outline-offset":[E1,u1,c1]}],"outline-w":[{outline:["",E1,Ie,K3]}],"outline-color":[{outline:s1()}],shadow:[{shadow:["","none",d,C4,k4]}],"shadow-color":[{shadow:s1()}],"inset-shadow":[{"inset-shadow":["none",u,C4,k4]}],"inset-shadow-color":[{"inset-shadow":s1()}],"ring-w":[{ring:h1()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:s1()}],"ring-offset-w":[{"ring-offset":[E1,K3]}],"ring-offset-color":[{"ring-offset":s1()}],"inset-ring-w":[{"inset-ring":h1()}],"inset-ring-color":[{"inset-ring":s1()}],"text-shadow":[{"text-shadow":["none",A,C4,k4]}],"text-shadow-color":[{"text-shadow":s1()}],opacity:[{opacity:[E1,u1,c1]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[E1]}],"mask-image-linear-from-pos":[{"mask-linear-from":K()}],"mask-image-linear-to-pos":[{"mask-linear-to":K()}],"mask-image-linear-from-color":[{"mask-linear-from":s1()}],"mask-image-linear-to-color":[{"mask-linear-to":s1()}],"mask-image-t-from-pos":[{"mask-t-from":K()}],"mask-image-t-to-pos":[{"mask-t-to":K()}],"mask-image-t-from-color":[{"mask-t-from":s1()}],"mask-image-t-to-color":[{"mask-t-to":s1()}],"mask-image-r-from-pos":[{"mask-r-from":K()}],"mask-image-r-to-pos":[{"mask-r-to":K()}],"mask-image-r-from-color":[{"mask-r-from":s1()}],"mask-image-r-to-color":[{"mask-r-to":s1()}],"mask-image-b-from-pos":[{"mask-b-from":K()}],"mask-image-b-to-pos":[{"mask-b-to":K()}],"mask-image-b-from-color":[{"mask-b-from":s1()}],"mask-image-b-to-color":[{"mask-b-to":s1()}],"mask-image-l-from-pos":[{"mask-l-from":K()}],"mask-image-l-to-pos":[{"mask-l-to":K()}],"mask-image-l-from-color":[{"mask-l-from":s1()}],"mask-image-l-to-color":[{"mask-l-to":s1()}],"mask-image-x-from-pos":[{"mask-x-from":K()}],"mask-image-x-to-pos":[{"mask-x-to":K()}],"mask-image-x-from-color":[{"mask-x-from":s1()}],"mask-image-x-to-color":[{"mask-x-to":s1()}],"mask-image-y-from-pos":[{"mask-y-from":K()}],"mask-image-y-to-pos":[{"mask-y-to":K()}],"mask-image-y-from-color":[{"mask-y-from":s1()}],"mask-image-y-to-color":[{"mask-y-to":s1()}],"mask-image-radial":[{"mask-radial":[u1,c1]}],"mask-image-radial-from-pos":[{"mask-radial-from":K()}],"mask-image-radial-to-pos":[{"mask-radial-to":K()}],"mask-image-radial-from-color":[{"mask-radial-from":s1()}],"mask-image-radial-to-color":[{"mask-radial-to":s1()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[E1]}],"mask-image-conic-from-pos":[{"mask-conic-from":K()}],"mask-image-conic-to-pos":[{"mask-conic-to":K()}],"mask-image-conic-from-color":[{"mask-conic-from":s1()}],"mask-image-conic-to-color":[{"mask-conic-to":s1()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O1()}],"mask-repeat":[{mask:F1()}],"mask-size":[{mask:V1()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u1,c1]}],filter:[{filter:["","none",u1,c1]}],blur:[{blur:f1()}],brightness:[{brightness:[E1,u1,c1]}],contrast:[{contrast:[E1,u1,c1]}],"drop-shadow":[{"drop-shadow":["","none",p,C4,k4]}],"drop-shadow-color":[{"drop-shadow":s1()}],grayscale:[{grayscale:["",E1,u1,c1]}],"hue-rotate":[{"hue-rotate":[E1,u1,c1]}],invert:[{invert:["",E1,u1,c1]}],saturate:[{saturate:[E1,u1,c1]}],sepia:[{sepia:["",E1,u1,c1]}],"backdrop-filter":[{"backdrop-filter":["","none",u1,c1]}],"backdrop-blur":[{"backdrop-blur":f1()}],"backdrop-brightness":[{"backdrop-brightness":[E1,u1,c1]}],"backdrop-contrast":[{"backdrop-contrast":[E1,u1,c1]}],"backdrop-grayscale":[{"backdrop-grayscale":["",E1,u1,c1]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[E1,u1,c1]}],"backdrop-invert":[{"backdrop-invert":["",E1,u1,c1]}],"backdrop-opacity":[{"backdrop-opacity":[E1,u1,c1]}],"backdrop-saturate":[{"backdrop-saturate":[E1,u1,c1]}],"backdrop-sepia":[{"backdrop-sepia":["",E1,u1,c1]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u1,c1]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[E1,"initial",u1,c1]}],ease:[{ease:["linear","initial",F,u1,c1]}],delay:[{delay:[E1,u1,c1]}],animate:[{animate:["none",C,u1,c1]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[k,u1,c1]}],"perspective-origin":[{"perspective-origin":S()}],rotate:[{rotate:x1()}],"rotate-x":[{"rotate-x":x1()}],"rotate-y":[{"rotate-y":x1()}],"rotate-z":[{"rotate-z":x1()}],scale:[{scale:g()}],"scale-x":[{"scale-x":g()}],"scale-y":[{"scale-y":g()}],"scale-z":[{"scale-z":g()}],"scale-3d":["scale-3d"],skew:[{skew:b()}],"skew-x":[{"skew-x":b()}],"skew-y":[{"skew-y":b()}],transform:[{transform:[u1,c1,"","none","gpu","cpu"]}],"transform-origin":[{origin:S()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:E()}],"translate-x":[{"translate-x":E()}],"translate-y":[{"translate-y":E()}],"translate-z":[{"translate-z":E()}],"translate-none":["translate-none"],zoom:[{zoom:[P2,u1,c1]}],accent:[{accent:s1()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:s1()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u1,c1]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":s1()}],"scrollbar-track-color":[{"scrollbar-track":s1()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mbs":[{"scroll-mbs":_()}],"scroll-mbe":[{"scroll-mbe":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pbs":[{"scroll-pbs":_()}],"scroll-pbe":[{"scroll-pbe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u1,c1]}],fill:[{fill:["none",...s1()]}],"stroke-w":[{stroke:[E1,Ie,K3,n7]}],stroke:[{stroke:["none",...s1()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},da=Ls(ua);function w1(...e){return da(w0(e))}const fa=["src","alt"],Aa={key:1,class:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground"},ha=W1({__name:"Avatar",props:{src:{},alt:{},fallback:{default:"?"},size:{default:"md"},class:{}},setup(e){const t=e,n={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},l=j(!1),o=t1(()=>!t.src||l.value);return(r,s)=>(h(),w("div",{class:i1(f(w1)("relative flex shrink-0 overflow-hidden rounded-full",n[e.size],t.class))},[o.value?(h(),w("div",Aa,Q(e.fallback),1)):(h(),w("img",{key:0,src:e.src??void 0,alt:e.alt,class:"aspect-square h-full w-full object-cover",onError:s[0]||(s[0]=a=>l.value=!0)},null,40,fa))],2))}}),r7=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,s7=w0,d5=(e,t)=>n=>{var l;if((t==null?void 0:t.variants)==null)return s7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:r}=t,s=Object.keys(o).map(c=>{const d=n==null?void 0:n[c],u=r==null?void 0:r[c];if(d===null)return null;const A=r7(d)||r7(u);return o[c][A]}),a=n&&Object.entries(n).reduce((c,d)=>{let[u,A]=d;return A===void 0||(c[u]=A),c},{}),i=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((c,d)=>{let{class:u,className:A,...p}=d;return Object.entries(p).every(m=>{let[k,D]=m;return Array.isArray(D)?D.includes({...r,...a}[k]):{...r,...a}[k]===D})?[...c,u,A]:c},[]);return s7(e,s,i,n==null?void 0:n.class,n==null?void 0:n.className)},c2=W1({__name:"Badge",props:{variant:{default:"default"},class:{}},setup(e){const t=d5("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground",success:"border-transparent bg-success/20 text-success",warning:"border-transparent bg-warning/20 text-warning",glow:"border-primary/30 bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}}),n=e;return(l,o)=>(h(),w("div",{class:i1(f(w1)(f(t)({variant:e.variant}),n.class))},[K1(l.$slots,"default")],2))}}),b1=W1({__name:"Button",props:{variant:{default:"default"},size:{default:"default"},as:{default:"button"},class:{},disabled:{type:Boolean}},setup(e){const t=d5("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glow:"bg-primary text-primary-foreground shadow-lg hover:bg-primary/90 glow-sm hover:glow"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=e;return(l,o)=>(h(),G(k2(e.as),{class:i1(f(w1)(f(t)({variant:e.variant,size:e.size}),n.class)),disabled:e.disabled},{default:x(()=>[K1(l.$slots,"default")]),_:3},8,["class","disabled"]))}}),z1=W1({__name:"Card",props:{class:{},hover:{type:Boolean,default:!1},glow:{type:Boolean,default:!1}},setup(e){const t=e;return(n,l)=>(h(),w("div",{class:i1(f(w1)("rounded-lg border bg-card text-card-foreground shadow-sm",e.hover&&"transition-all duration-200 hover:border-primary/50 hover:-translate-y-1",e.glow&&"glow-sm",t.class))},[K1(n.$slots,"default")],2))}}),pa="modulepreload",ma=function(e){return"/"+e},a7={},w4=function(t,n,l){let o=Promise.resolve();if(n&&n.length>0){let s=function(c){return Promise.all(c.map(d=>Promise.resolve(d).then(u=>({status:"fulfilled",value:u}),u=>({status:"rejected",reason:u}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=s(n.map(c=>{if(c=ma(c),c in a7)return;a7[c]=!0;const d=c.endsWith(".css"),u=d?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${u}`))return;const A=document.createElement("link");if(A.rel=d?"stylesheet":pa,d||(A.as="script"),A.crossOrigin="",A.href=c,i&&A.setAttribute("nonce",i),document.head.appendChild(A),d)return new Promise((p,m)=>{A.addEventListener("load",p),A.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function r(s){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=s,window.dispatchEvent(a),!a.defaultPrevented)throw s}return o.then(s=>{for(const a of s||[])a.status==="rejected"&&r(a.reason);return t().catch(r)})},i7={intent:"bg-fuchsia-600/10 text-fuchsia-600 border-fuchsia-600/20",decision:"bg-blue-600/10 text-blue-600 border-blue-600/20",constraint:"bg-amber-600/10 text-amber-600 border-amber-600/20",workaround:"bg-red-600/10 text-red-600 border-red-600/20",convention:"bg-violet-600/10 text-violet-600 border-violet-600/20",pattern:"bg-emerald-600/10 text-emerald-600 border-emerald-600/20",discussion:"bg-cyan-600/10 text-cyan-600 border-cyan-600/20",review:"bg-pink-600/10 text-pink-600 border-pink-600/20",plan:"bg-lime-600/10 text-lime-600 border-lime-600/20"},ga={intent:"bg-fuchsia-600",decision:"bg-blue-600",constraint:"bg-amber-600",workaround:"bg-red-600",convention:"bg-violet-600",pattern:"bg-emerald-600",discussion:"bg-cyan-600",review:"bg-pink-600",plan:"bg-lime-600"},R5={system:"#7c3aed",part:"#d97706",contract:"#0891b2",intent:"#c026d3",decision:"#2563eb",constraint:"#d97706",workaround:"#dc2626",convention:"#7c3aed",pattern:"#059669",discussion:"#0891b2",review:"#db2777",plan:"#65a30d"},va=["Intent","Decision","Constraint","Workaround","Convention","Pattern","Discussion","Review","Plan"],ya={Intent:"What this exists to do, who for, and what it deliberately is not",Decision:"A deliberate choice made about architecture, tooling, or approach",Constraint:"A hard limitation imposed by external factors or requirements",Workaround:"A temporary fix for a known issue or limitation",Convention:"An established principle or standard the team follows",Pattern:"An observed model, recurring choice, or emergent practice",Discussion:"Key points from a team discussion or debate",Review:"Insights surfaced during code review",Plan:"A future intention or roadmap item"};function G0(){const e="bg-muted text-muted-foreground border-border";function t(r){return i7[(r??"").toLowerCase()]??e}function n(r){return ga[(r??"").toLowerCase()]??"bg-muted-foreground"}function l(r){return R5[(r??"").toLowerCase()]??"#a1a1aa"}const o=Object.keys(R5).map(r=>({kind:r,label:r.charAt(0).toUpperCase()+r.slice(1),color:R5[r]}));return{tone:t,fill:n,ink:l,legend:o,kinds:Object.keys(i7),kindOptions:va,kindDescriptions:ya}}const x4="#6b7280",ba=W1({__name:"CodeGraph",props:{height:{default:"460px"},repo:{default:""},mode:{default:"2d"},data:{default:null},hidden:{default:()=>[]}},emits:["select"],setup(e,{expose:t,emit:n}){const l=n,o=e,r=R=>[typeof R.source=="object"?R.source:null,typeof R.target=="object"?R.target:null],s=R=>{const[B,q]=r(R);return B&&q&&B.community===q.community&&B.community!==null?B:null},a=j(null);let i=null,c=null,d=null;const u=new Map,{ink:A}=G0(),p=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];function m(R){if(typeof R.community=="number")return p[R.community%p.length];const B=(R.kind||"").toLowerCase();return B==="code"?"#E20C18":B==="file"||["class","function","method","module","route","variable","symbol"].includes(B)?x4:A(B)}function k(R){return R&&R.length>28?`${R.slice(0,27)}…`:R}const D=t1(()=>!!o.data&&o.data.nodes.length>0);t({hasGraph:D});const F=t1(()=>new Set(o.hidden));function C(){const R=o.data??{nodes:[],links:[]},B=R.nodes.filter(l1=>typeof l1.community!="number"||!F.value.has(l1.community)),q=new Set(B.map(l1=>l1.id)),V=Math.max(1,...B.map(l1=>l1.degree??0)),m1=B.map(l1=>{const o1=u.get(l1.id);return{...l1,...o1??{},color:m(l1),radius:Math.min(3+2.4*Math.sqrt(l1.degree??0),11),named:(l1.degree??0)>=Math.max(4,V*.5)}}),y1=R.links.filter(l1=>q.has(String(l1.source))&&q.has(String(l1.target))).map(l1=>({...l1}));return{nodes:m1,links:y1}}function I(R){return Math.max(.06,Math.min(.5,Math.sqrt(400/Math.max(1,R))))}function v(R,B){const q=parseInt(R.slice(1),16),V=Math.max(0,Math.min(1,B)).toFixed(3);return`rgba(${q>>16&255}, ${q>>8&255}, ${q&255}, ${V})`}const S=R=>R==="tree"?"td":R==="radial"?"radialout":R==="layered"?"zout":null;function L(){if(i)for(const R of i.graphData().nodes)Number.isFinite(R.x)&&u.set(R.id,{x:R.x,y:R.y,z:R.z??0})}function Z(){var R;L(),i&&((R=i._destructor)==null||R.call(i),i=null),a.value&&(a.value.innerHTML="")}async function _(R){var y1,l1;if(!a.value)return;const B=R==="2d"?"2d":"3d";if(i&&c===B){B==="3d"&&i.dagMode(S(R)),L(),i.graphData(C());return}if(Z(),c=B,B==="2d"){const o1=(await w4(async()=>{const{default:a1}=await import("./force-graph-HZtkkbK0.js");return{default:a1}},__vite__mapDeps([0,1,2]))).default,{forceCollide:v1,forceManyBody:C1,forceX:k1,forceY:s1}=await w4(async()=>{const{forceCollide:a1,forceManyBody:h1,forceX:$,forceY:z}=await import("./index-DHVCIEzJ.js");return{forceCollide:a1,forceManyBody:h1,forceX:$,forceY:z}},__vite__mapDeps([3,1])),O1=C(),F1=I(O1.links.length);let V1=null;i=new o1(a.value),i.backgroundColor("rgba(0,0,0,0)").graphData(O1).nodeRelSize(4).nodeColor(a1=>a1.color).nodeLabel(a1=>a1.path?`${a1.name} — ${a1.path}`:a1.name).nodeCanvasObject((a1,h1,$)=>{const z=!V1||V1===a1.id;if(h1.globalAlpha=z?1:.25,h1.beginPath(),h1.arc(a1.x,a1.y,a1.radius,0,2*Math.PI),h1.fillStyle=a1.color,h1.fill(),!a1.named&&V1!==a1.id){h1.globalAlpha=1;return}const K=Math.max(11/$,1.5);h1.font=`${K}px ui-sans-serif, system-ui, sans-serif`,h1.fillStyle=a1.color,h1.textAlign="left",h1.textBaseline="middle",h1.fillText(k(a1.name),a1.x+a1.radius+2/$,a1.y),h1.globalAlpha=1}).nodePointerAreaPaint((a1,h1,$)=>{$.fillStyle=h1,$.beginPath(),$.arc(a1.x,a1.y,a1.radius+2,0,2*Math.PI),$.fill()}).linkColor(a1=>{const h1=s(a1);return v(h1?h1.color:x4,F1*(h1?1.6:1))}).linkWidth(.6).linkDirectionalArrowLength(2.5).linkDirectionalArrowRelPos(1).linkLabel(a1=>a1.type??"").onNodeHover(a1=>{var h1;V1=a1?a1.id:null,a.value&&(a.value.style.cursor=a1?"pointer":""),(h1=i==null?void 0:i.refresh)==null||h1.call(i)}).width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(a1=>l("select",String(a1.id))),i.d3AlphaDecay(.02).d3VelocityDecay(.35).cooldownTicks(220),i.d3Force("charge",C1().strength(-140).distanceMax(420)),i.d3Force("center",null),i.d3Force("x",k1(0).strength(.03)),i.d3Force("y",s1(0).strength(.03)),i.d3Force("collide",v1(a1=>a1.radius+2).iterations(2)),(y1=i.d3Force("link"))==null||y1.distance(a1=>s(a1)?26:70).strength(a1=>s(a1)?.7:.08);let e2=!1;i.onEngineTick(()=>{!e2&&i.d3Force("link")&&(e2=!0,setTimeout(()=>i==null?void 0:i.zoomToFit(600,60),700))}),i.onEngineStop(()=>{L(),i==null||i.zoomToFit(600,60)});return}const q=(await w4(async()=>{const{default:o1}=await import("./3d-force-graph-B8lgMx4q.js");return{default:o1}},__vite__mapDeps([4,5,2,1]))).default,V=await w4(()=>import("./three.module-D-PgY1-x.js").then(o1=>o1.df),[]),m1=C();i=new q(a.value),i.backgroundColor("rgba(0,0,0,0)").showNavInfo(!1).onDagError(()=>{}).dagLevelDistance(46).dagMode(S(R)).graphData(m1).nodeLabel(o1=>o1.path?`${o1.name} — ${o1.path}`:o1.name).nodeThreeObject(o1=>{const v1=new V.SphereGeometry(o1.radius,12,10),C1=new V.MeshLambertMaterial({color:o1.color,transparent:!0,opacity:.92});return new V.Mesh(v1,C1)}).linkColor(()=>x4).linkOpacity(I(m1.links.length)).linkWidth(.5).linkDirectionalArrowLength(2).linkDirectionalArrowRelPos(1).linkLabel(o1=>o1.type??"").width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(o1=>l("select",String(o1.id))),(l1=i.d3Force("charge"))==null||l1.strength(-140).distanceMax(420),i.onEngineStop(()=>{L(),i==null||i.zoomToFit(600,60)})}return d2(async()=>{await _(o.mode),d=new ResizeObserver(()=>{i&&a.value&&i.width(a.value.clientWidth).height(a.value.clientHeight)}),a.value&&d.observe(a.value)}),q1(()=>o.mode,R=>_(R)),q1(()=>o.repo,()=>{u.clear(),_(o.mode)}),q1(()=>o.data,()=>_(o.mode)),q1(()=>o.hidden,()=>_(o.mode),{deep:!0}),Ft(()=>{d&&(d.disconnect(),d=null),Z()}),(R,B)=>(h(),w("div",{ref_key:"el",ref:a,style:M2({height:o.height}),class:"w-full"},null,4))}}),ka=["for"],Ca={key:1,class:"mt-1 text-xs text-destructive"},wa={key:2,class:"mt-1 text-xs text-muted-foreground"},Q2=W1({__name:"Field",props:{label:{},hint:{},error:{},for:{},class:{}},setup(e){const t=e;return(n,l)=>(h(),w("div",{class:i1(f(w1)("w-full",t.class))},[e.label?(h(),w("label",{key:0,for:t.for,class:"mb-1.5 flex items-center gap-2 text-xs font-medium uppercase tracking-wider text-muted-foreground"},[U(Q(e.label)+" ",1),K1(n.$slots,"label")],8,ka)):W("",!0),K1(n.$slots,"default"),e.error?(h(),w("p",Ca,Q(e.error),1)):e.hint?(h(),w("p",wa,Q(e.hint),1)):W("",!0)],2))}}),O0=d5(["w-full rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"h-8 px-3 text-xs",default:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),xa=d5(["w-full resize-y rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"px-3 py-1.5 text-xs",default:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),_a=["value"],J3=W1({__name:"Input",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),w("input",{value:e.modelValue,class:i1(f(w1)(f(O0)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,_a))}}),Ia={class:"flex items-start gap-4"},Ma={class:"min-w-0 flex-1"},Ea={class:"mb-1 flex flex-wrap items-center gap-2"},Da={class:"break-all font-semibold"},Za={key:0,class:"break-all font-mono text-sm text-muted-foreground"},Fa={key:1,class:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"},Ba={key:1,class:"flex shrink-0 items-center gap-1"},z3=W1({__name:"ItemCard",props:{title:{},subtitle:{},pillar:{default:"graph"},hover:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"};return(l,o)=>(h(),G(z1,{hover:e.hover,class:i1(f(w1)("p-5",t.class))},{default:x(()=>[y("div",Ia,[l.$slots.icon?(h(),w("div",{key:0,class:i1(f(w1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",n[e.pillar]))},[K1(l.$slots,"icon")],2)):W("",!0),y("div",Ma,[y("div",Ea,[y("h3",Da,Q(e.title),1),K1(l.$slots,"badges")]),e.subtitle?(h(),w("p",Za,Q(e.subtitle),1)):W("",!0),K1(l.$slots,"default"),l.$slots.meta?(h(),w("div",Fa,[K1(l.$slots,"meta")])):W("",!0)]),l.$slots.actions?(h(),w("div",Ba,[K1(l.$slots,"actions")])):W("",!0)])]),_:3},8,["hover","class"]))}}),Sa={class:"flex min-w-0 items-center gap-3"},Ra={class:"min-w-0"},Qa={class:"flex flex-wrap items-center gap-2"},Na={class:"text-xl font-semibold"},Ka={key:1,class:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-sm text-muted-foreground"},Ga={key:0,class:"flex flex-wrap items-center gap-2"},g3=W1({__name:"PageHead",props:{title:{},sub:{},pillar:{default:"graph"},tone:{},mono:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"},l={neutral:"bg-muted text-muted-foreground",info:"bg-primary/15 text-primary",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-destructive/15 text-destructive"},o=t1(()=>t.tone?l[t.tone]:n[t.pillar]);return(r,s)=>(h(),w("div",{class:i1(f(w1)("mb-6 flex flex-wrap items-start justify-between gap-4",t.class))},[y("div",Sa,[K1(r.$slots,"back"),r.$slots.icon?(h(),w("div",{key:0,class:i1(f(w1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",o.value))},[K1(r.$slots,"icon")],2)):W("",!0),y("div",Ra,[y("div",Qa,[y("h1",Na,Q(e.title),1),K1(r.$slots,"badges")]),e.sub?(h(),w("p",{key:0,class:i1(f(w1)("text-sm text-muted-foreground",e.mono&&"break-all font-mono"))},Q(e.sub),3)):W("",!0),r.$slots.meta?(h(),w("div",Ka,[K1(r.$slots,"meta")])):W("",!0)])]),r.$slots.actions?(h(),w("div",Ga,[K1(r.$slots,"actions")])):W("",!0)],2))}}),Oa=["value"],X2=W1({__name:"Select",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),w("select",{value:e.modelValue,class:i1(f(w1)(f(O0)({size:e.size,invalid:e.invalid}),"w-auto",t.class)),onChange:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},[K1(n.$slots,"default")],42,Oa))}});/** + */let tr=()=>location.protocol+"//"+location.host;function w0(e,t){const{pathname:n,search:l,hash:o}=t,s=e.indexOf("#");if(s>-1){let r=o.includes(e.slice(s))?e.slice(s).length:1,a=o.slice(r);return a[0]!=="/"&&(a="/"+a),W6(a,"")}return W6(n,e)+l+o}function nr(e,t,n,l){let o=[],s=[],r=null;const a=({state:A})=>{const p=w0(e,location),m=n.value,v=t.value;let M=0;if(A){if(n.value=p,t.value=A,r&&r===m){r=null;return}M=v?A.position-v.position:0}else l(p);o.forEach(Z=>{Z(n.value,m,{delta:M,type:it.pop,direction:M?M>0?S5.forward:S5.back:S5.unknown})})};function i(){r=n.value}function c(A){o.push(A);const p=()=>{const m=o.indexOf(A);m>-1&&o.splice(m,1)};return s.push(p),p}function u(){if(document.visibilityState==="hidden"){const{history:A}=window;if(!A.state)return;A.replaceState(N1({},A.state,{scroll:u5()}),"")}}function d(){for(const A of s)A();s=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",u),document.removeEventListener("visibilitychange",u)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",u),document.addEventListener("visibilitychange",u),{pauseListeners:i,listen:c,destroy:d}}function V6(e,t,n,l=!1,o=!1){return{back:e,current:t,forward:n,replaced:l,position:window.history.length,scroll:o?u5():null}}function lr(e){const{history:t,location:n}=window,l={value:w0(e,n)},o={value:t.state};o.value||s(l.value,{back:null,current:l.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function s(i,c,u){const d=e.indexOf("#"),A=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+i:tr()+e+i;try{t[u?"replaceState":"pushState"](c,"",A),o.value=c}catch(p){console.error(p),n[u?"replace":"assign"](A)}}function r(i,c){s(i,N1({},t.state,V6(o.value.back,i,o.value.forward,!0),c,{position:o.value.position}),!0),l.value=i}function a(i,c){const u=N1({},o.value,t.state,{forward:i,scroll:u5()});s(u.current,u,!0),s(i,N1({},V6(l.value,i,null),{position:u.position+1},c),!1),l.value=i}return{location:l,state:o,push:a,replace:r}}function or(e){e=Ws(e);const t=lr(e),n=nr(e,t.state,t.location,t.replace);function l(s,r=!0){r||n.pauseListeners(),history.go(s)}const o=N1({location:"",base:e,go:l,createHref:Ps.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}let H3=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e})({});var s2=(function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e})(s2||{});const sr={type:H3.Static,value:""},rr=/[a-zA-Z0-9_]/;function ar(e){if(!e)return[[]];if(e==="/")return[[sr]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${c}": ${p}`)}let n=s2.Static,l=n;const o=[];let s;function r(){s&&o.push(s),s=[]}let a=0,i,c="",u="";function d(){c&&(n===s2.Static?s.push({type:H3.Static,value:c}):n===s2.Param||n===s2.ParamRegExp||n===s2.ParamRegExpEnd?(s.length>1&&(i==="*"||i==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),s.push({type:H3.Param,value:c,regexp:u,repeatable:i==="*"||i==="+",optional:i==="*"||i==="?"})):t("Invalid state to consume buffer"),c="")}function A(){c+=i}for(;at.length?t.length===1&&t[0]===b2.Static+b2.Segment?1:-1:0}function x0(e,t){let n=0;const l=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const fr={strict:!1,end:!0,sensitive:!1};function Ar(e,t,n){const l=ur(ar(e.path),n),o=N1(l,{record:e,parent:t,children:[],alias:[]});return t&&!o.record.aliasOf==!t.record.aliasOf&&t.children.push(o),o}function hr(e,t){const n=[],l=new Map;t=O6(fr,t);function o(d){return l.get(d)}function s(d,A,p){const m=!p,v=z6(d);v.aliasOf=p&&p.record;const M=O6(t,d),Z=[v];if("alias"in d){const _=typeof d.alias=="string"?[d.alias]:d.alias;for(const B of _)Z.push(z6(N1({},v,{components:p?p.record.components:v.components,path:B,aliasOf:p?p.record:v})))}let k,F;for(const _ of Z){const{path:B}=_;if(A&&B[0]!=="/"){const $=A.record.path,D=$[$.length-1]==="/"?"":"/";_.path=A.record.path+(B&&D+B)}if(k=Ar(_,A,M),p?p.alias.push(k):(F=F||k,F!==k&&F.alias.push(k),m&&d.name&&!j6(k)&&r(d.name)),_0(k)&&i(k),v.children){const $=v.children;for(let D=0;D<$.length;D++)s($[D],k,p&&p.children[D])}p=p||k}return F?()=>{r(F)}:Oe}function r(d){if(k0(d)){const A=l.get(d);A&&(l.delete(d),n.splice(n.indexOf(A),1),A.children.forEach(r),A.alias.forEach(r))}else{const A=n.indexOf(d);A>-1&&(n.splice(A,1),d.record.name&&l.delete(d.record.name),d.children.forEach(r),d.alias.forEach(r))}}function a(){return n}function i(d){const A=gr(d,n);n.splice(A,0,d),d.record.name&&!j6(d)&&l.set(d.record.name,d)}function c(d,A){let p,m={},v,M;if("name"in d&&d.name){if(p=l.get(d.name),!p)throw Ae(X1.MATCHER_NOT_FOUND,{location:d});M=p.record.name,m=N1(J6(A.params,p.keys.filter(F=>!F.optional).concat(p.parent?p.parent.keys.filter(F=>F.optional):[]).map(F=>F.name)),d.params&&J6(d.params,p.keys.map(F=>F.name))),v=p.stringify(m)}else if(d.path!=null)v=d.path,p=n.find(F=>F.re.test(v)),p&&(m=p.parse(v),M=p.record.name);else{if(p=A.name?l.get(A.name):n.find(F=>F.re.test(A.path)),!p)throw Ae(X1.MATCHER_NOT_FOUND,{location:d,currentLocation:A});M=p.record.name,m=N1({},A.params,d.params),v=p.stringify(m)}const Z=[];let k=p;for(;k;)Z.unshift(k.record),k=k.parent;return{name:M,path:v,params:m,matched:Z,meta:mr(Z)}}e.forEach(d=>s(d));function u(){n.length=0,l.clear()}return{addRoute:s,resolve:c,removeRoute:r,clearRoutes:u,getRoutes:a,getRecordMatcher:o}}function J6(e,t){const n={};for(const l of t)l in e&&(n[l]=e[l]);return n}function z6(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:pr(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function pr(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const l in e.components)t[l]=typeof n=="object"?n[l]:n;return t}function j6(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function mr(e){return e.reduce((t,n)=>N1(t,n.meta),{})}function gr(e,t){let n=0,l=t.length;for(;n!==l;){const s=n+l>>1;x0(e,t[s])<0?l=s:n=s+1}const o=vr(e);return o&&(l=t.lastIndexOf(o,l-1)),l}function vr(e){let t=e;for(;t=t.parent;)if(_0(t)&&x0(e,t)===0)return t}function _0({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function X6(e){const t=$2(d5),n=$2(Ot),l=e1(()=>{const i=f(e.to);return t.resolve(i)}),o=e1(()=>{const{matched:i}=l.value,{length:c}=i,u=i[c-1],d=n.matched;if(!u||!d.length)return-1;const A=d.findIndex(fe.bind(null,u));if(A>-1)return A;const p=q6(i[c-2]);return c>1&&q6(u)===p&&d[d.length-1].path!==p?d.findIndex(fe.bind(null,i[c-2])):A}),s=e1(()=>o.value>-1&&wr(n.params,l.value.params)),r=e1(()=>o.value>-1&&o.value===n.matched.length-1&&b0(n.params,l.value.params));function a(i={}){if(Cr(i)){const c=t[f(e.replace)?"replace":"push"](f(e.to)).catch(Oe);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:l,href:e1(()=>l.value.href),isActive:s,isExactActive:r,navigate:a}}function yr(e){return e.length===1?e[0]:e}const br=L1({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:X6,setup(e,{slots:t}){const n=n5(X6(e)),{options:l}=$2(d5),o=e1(()=>({[e7(e.activeClass,l.linkActiveClass,"router-link-active")]:n.isActive,[e7(e.exactActiveClass,l.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const s=t.default&&yr(t.default(n));return e.custom?s:h3("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},s)}}}),kr=br;function Cr(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function wr(e,t){for(const n in t){const l=t[n],o=e[n];if(typeof l=="string"){if(l!==o)return!1}else if(!L2(o)||o.length!==l.length||l.some((s,r)=>s.valueOf()!==o[r].valueOf()))return!1}return!0}function q6(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const e7=(e,t,n)=>e??t??n,xr=L1({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const l=$2(ut),o=e1(()=>e.route||l.value),s=$2(H6,0),r=e1(()=>{let c=f(s);const{matched:u}=o.value;let d;for(;(d=u[c])&&!d.components;)c++;return c}),a=e1(()=>o.value.matched[r.value]);D4(H6,e1(()=>r.value+1)),D4(qs,a),D4(ut,o);const i=j();return q1(()=>[i.value,a.value,e.name],([c,u,d],[A,p,m])=>{u&&(u.instances[d]=c,p&&p!==u&&c&&c===A&&(u.leaveGuards.size||(u.leaveGuards=p.leaveGuards),u.updateGuards.size||(u.updateGuards=p.updateGuards))),c&&u&&(!p||!fe(u,p)||!A)&&(u.enterCallbacks[d]||[]).forEach(v=>v(c))},{flush:"post"}),()=>{const c=o.value,u=e.name,d=a.value,A=d&&d.components[u];if(!A)return t7(n.default,{Component:A,route:c});const p=d.props[u],m=p?p===!0?c.params:typeof p=="function"?p(c):p:null,M=h3(A,N1({},m,t,{onVnodeUnmounted:Z=>{Z.component.isUnmounted&&(d.instances[u]=null)},ref:i}));return t7(n.default,{Component:M,route:c})||M}}});function t7(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const _r=xr;function Ir(e){const t=hr(e.routes,e),n=e.parseQuery||js,l=e.stringifyQuery||T6,o=e.history,s=Ie(),r=Ie(),a=Ie(),i=vl(C3);let c=C3;le&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const u=F5.bind(null,W=>""+W),d=F5.bind(null,Rs),A=F5.bind(null,e4);function p(W,z){let G,f1;return k0(W)?(G=t.getRecordMatcher(W),f1=z):f1=W,t.addRoute(f1,G)}function m(W){const z=t.getRecordMatcher(W);z&&t.removeRoute(z)}function v(){return t.getRoutes().map(W=>W.record)}function M(W){return!!t.getRecordMatcher(W)}function Z(W,z){if(z=N1({},z||i.value),typeof W=="string"){const E=B5(n,W,z.path),P=t.resolve({path:E.path},z),V=o.createHref(E.fullPath);return N1(E,P,{params:A(P.params),hash:e4(E.hash),redirectedFrom:void 0,href:V})}let G;if(W.path!=null)G=N1({},W,{path:B5(n,W.path,z.path).path});else{const E=N1({},W.params);for(const P in E)E[P]==null&&delete E[P];G=N1({},W,{params:d(E)}),z.params=d(z.params)}const f1=t.resolve(G,z),_1=W.hash||"";f1.params=u(A(f1.params));const g=Ks(l,N1({},W,{hash:Fs(_1),path:f1.path})),b=o.createHref(g);return N1({fullPath:g,hash:_1,query:l===T6?Xs(W.query):W.query||{}},f1,{redirectedFrom:void 0,href:b})}function k(W){return typeof W=="string"?B5(n,W,i.value.path):N1({},W)}function F(W,z){if(c!==W)return Ae(X1.NAVIGATION_CANCELLED,{from:z,to:W})}function _(W){return D(W)}function B(W){return _(N1(k(W),{replace:!0}))}function $(W,z){const G=W.matched[W.matched.length-1];if(G&&G.redirect){const{redirect:f1}=G;let _1=typeof f1=="function"?f1(W,z):f1;return typeof _1=="string"&&(_1=_1.includes("?")||_1.includes("#")?_1=k(_1):{path:_1},_1.params={}),N1({query:W.query,hash:W.hash,params:_1.path!=null?{}:W.params},_1)}}function D(W,z){const G=c=Z(W),f1=i.value,_1=W.state,g=W.force,b=W.replace===!0,E=$(G,f1);if(E)return D(N1(k(E),{state:typeof E=="object"?N1({},_1,E.state):_1,force:g,replace:b}),z||G);const P=G;P.redirectedFrom=z;let V;return!g&&Gs(l,f1,G)&&(V=Ae(X1.NAVIGATION_DUPLICATED,{to:P,from:f1}),O1(f1,f1,!0,!1)),(V?Promise.resolve(V):S(P,f1)).catch(T=>l3(T)?l3(T,X1.NAVIGATION_GUARD_REDIRECT)?T:r1(T):C1(T,P,f1)).then(T=>{if(T){if(l3(T,X1.NAVIGATION_GUARD_REDIRECT))return D(N1({replace:b},k(T.to),{state:typeof T.to=="object"?N1({},_1,T.to.state):_1,force:g}),z||P)}else T=Y(P,f1,!0,b,_1);return q(P,f1,T),T})}function w(W,z){const G=F(W,z);return G?Promise.reject(G):Promise.resolve()}function Q(W){const z=e2.values().next().value;return z&&typeof z.runWithContext=="function"?z.runWithContext(W):W()}function S(W,z){let G;const[f1,_1,g]=er(W,z);G=R5(f1.reverse(),"beforeRouteLeave",W,z);for(const E of f1)E.leaveGuards.forEach(P=>{G.push(I3(P,W,z))});const b=w.bind(null,W,z);return G.push(b),h1(G).then(()=>{G=[];for(const E of s.list())G.push(I3(E,W,z));return G.push(b),h1(G)}).then(()=>{G=R5(_1,"beforeRouteUpdate",W,z);for(const E of _1)E.updateGuards.forEach(P=>{G.push(I3(P,W,z))});return G.push(b),h1(G)}).then(()=>{G=[];for(const E of g)if(E.beforeEnter)if(L2(E.beforeEnter))for(const P of E.beforeEnter)G.push(I3(P,W,z));else G.push(I3(E.beforeEnter,W,z));return G.push(b),h1(G)}).then(()=>(W.matched.forEach(E=>E.enterCallbacks={}),G=R5(g,"beforeRouteEnter",W,z,Q),G.push(b),h1(G))).then(()=>{G=[];for(const E of r.list())G.push(I3(E,W,z));return G.push(b),h1(G)}).catch(E=>l3(E,X1.NAVIGATION_CANCELLED)?E:Promise.reject(E))}function q(W,z,G){a.list().forEach(f1=>Q(()=>f1(W,z,G)))}function Y(W,z,G,f1,_1){const g=F(W,z);if(g)return g;const b=z===C3,E=le?history.state:{};G&&(f1||b?o.replace(W.fullPath,N1({scroll:b&&E&&E.scroll},_1)):o.push(W.fullPath,_1)),i.value=W,O1(W,z,G,b),r1()}let g1;function y1(){g1||(g1=o.listen((W,z,G)=>{if(!a1.listening)return;const f1=Z(W),_1=$(f1,a1.currentRoute.value);if(_1){D(N1(_1,{replace:!0,force:!0}),f1).catch(Oe);return}c=f1;const g=i.value;le&&Vs(P6(g.fullPath,G.delta),u5()),S(f1,g).catch(b=>l3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_CANCELLED)?b:l3(b,X1.NAVIGATION_GUARD_REDIRECT)?(D(N1(k(b.to),{force:!0}),f1).then(E=>{l3(E,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&!G.delta&&G.type===it.pop&&o.go(-1,!1)}).catch(Oe),Promise.reject()):(G.delta&&o.go(-G.delta,!1),C1(b,f1,g))).then(b=>{b=b||Y(f1,g,!1),b&&(G.delta&&!l3(b,X1.NAVIGATION_CANCELLED)?o.go(-G.delta,!1):G.type===it.pop&&l3(b,X1.NAVIGATION_ABORTED|X1.NAVIGATION_DUPLICATED)&&o.go(-1,!1)),q(f1,g,b)}).catch(Oe)}))}let l1=Ie(),o1=Ie(),v1;function C1(W,z,G){r1(W);const f1=o1.list();return f1.length?f1.forEach(_1=>_1(W,z,G)):console.error(W),Promise.reject(W)}function k1(){return v1&&i.value!==C3?Promise.resolve():new Promise((W,z)=>{l1.add([W,z])})}function r1(W){return v1||(v1=!W,y1(),l1.list().forEach(([z,G])=>W?G(W):z()),l1.reset()),W}function O1(W,z,G,f1){const{scrollBehavior:_1}=e;if(!le||!_1)return Promise.resolve();const g=!G&&Ys(P6(W.fullPath,0))||(f1||!G)&&history.state&&history.state.scroll||null;return C8().then(()=>_1(W,z,g)).then(b=>b&&Hs(b)).catch(b=>C1(b,W,z))}const F1=W=>o.go(W);let Y1;const e2=new Set,a1={currentRoute:i,listening:!0,addRoute:p,removeRoute:m,clearRoutes:t.clearRoutes,hasRoute:M,getRoutes:v,resolve:Z,options:e,push:_,replace:B,go:F1,back:()=>F1(-1),forward:()=>F1(1),beforeEach:s.add,beforeResolve:r.add,afterEach:a.add,onError:o1.add,isReady:k1,install(W){W.component("RouterLink",kr),W.component("RouterView",_r),W.config.globalProperties.$router=a1,Object.defineProperty(W.config.globalProperties,"$route",{enumerable:!0,get:()=>f(i)}),le&&!Y1&&i.value===C3&&(Y1=!0,_(o.location).catch(f1=>{}));const z={};for(const f1 in C3)Object.defineProperty(z,f1,{get:()=>i.value[f1],enumerable:!0});W.provide(d5,a1),W.provide(Ot,v8(z)),W.provide(ut,i);const G=W.unmount;e2.add(W),W.unmount=function(){e2.delete(W),e2.size<1&&(c=C3,g1&&g1(),g1=null,i.value=C3,Y1=!1,v1=!1),G()}}};function h1(W){return W.reduce((z,G)=>z.then(()=>Q(G)),Promise.resolve())}return a1}function ye(){return $2(d5)}function f5(e){return $2(Ot)}function I0(e){var t,n,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{const n=new Array(e.length+t.length);for(let l=0;l({classGroupId:e,validator:t}),E0=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),H4="-",n7=[],Dr="arbitrary..",Zr=e=>{const t=Br(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:r=>{if(r.startsWith("[")&&r.endsWith("]"))return Fr(r);const a=r.split(H4),i=a[0]===""&&a.length>1?1:0;return D0(a,i,t)},getConflictingClassGroupIds:(r,a)=>{if(a){const i=l[r],c=n[r];return i?c?Mr(c,i):i:c||n7}return n[r]||n7}}},D0=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;const o=e[t],s=n.nextPart.get(o);if(s){const c=D0(e,t+1,s);if(c)return c}const r=n.validators;if(r===null)return;const a=t===0?e.join(H4):e.slice(t).join(H4),i=r.length;for(let c=0;ce.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),n=t.indexOf(":"),l=t.slice(0,n);return l?Dr+l:void 0})(),Br=e=>{const{theme:t,classGroups:n}=e;return Sr(n,t)},Sr=(e,t)=>{const n=E0();for(const l in e){const o=e[l];Wt(o,n,l,t)}return n},Wt=(e,t,n,l)=>{const o=e.length;for(let s=0;s{if(typeof e=="string"){Qr(e,t,n);return}if(typeof e=="function"){Nr(e,t,n,l);return}Kr(e,t,n,l)},Qr=(e,t,n)=>{const l=e===""?t:Z0(t,e);l.classGroupId=n},Nr=(e,t,n,l)=>{if(Gr(e)){Wt(e(l),t,n,l);return}t.validators===null&&(t.validators=[]),t.validators.push(Er(n,e))},Kr=(e,t,n,l)=>{const o=Object.entries(e),s=o.length;for(let r=0;r{let n=e;const l=t.split(H4),o=l.length;for(let s=0;s"isThemeGetter"in e&&e.isThemeGetter===!0,$r=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),l=Object.create(null);const o=(s,r)=>{n[s]=r,t++,t>e&&(t=0,l=n,n=Object.create(null))};return{get(s){let r=n[s];if(r!==void 0)return r;if((r=l[s])!==void 0)return o(s,r),r},set(s,r){s in n?n[s]=r:o(s,r)}}},dt="!",l7=":",Or=[],o7=(e,t,n,l,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:l,isExternal:o}),Wr=e=>{const{prefix:t,experimentalParseClassName:n}=e;let l=o=>{const s=[];let r=0,a=0,i=0,c;const u=o.length;for(let v=0;vi?c-i:void 0;return o7(s,p,A,m)};if(t){const o=t+l7,s=l;l=r=>r.startsWith(o)?s(r.slice(o.length)):o7(Or,!1,r,void 0,!0)}if(n){const o=l;l=s=>n({className:s,parseClassName:o})}return l},Lr=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((n,l)=>{t.set(n,1e6+l)}),n=>{const l=[];let o=[];for(let s=0;s0&&(o.sort(),l.push(...o),o=[]),l.push(r)):o.push(r)}return o.length>0&&(o.sort(),l.push(...o)),l}},Pr=e=>({cache:$r(e.cacheSize),parseClassName:Wr(e),sortModifiers:Lr(e),postfixLookupClassGroupIds:Tr(e),...Zr(e)}),Tr=e=>{const t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let l=0;l{const{parseClassName:n,getClassGroupId:l,getConflictingClassGroupIds:o,sortModifiers:s,postfixLookupClassGroupIds:r}=t,a=[],i=e.trim().split(Hr);let c="";for(let u=i.length-1;u>=0;u-=1){const d=i[u],{isExternal:A,modifiers:p,hasImportantModifier:m,baseClassName:v,maybePostfixModifierPosition:M}=n(d);if(A){c=d+(c.length>0?" "+c:c);continue}let Z=!!M,k;if(Z){const D=v.substring(0,M);k=l(D);const w=k&&r[k]?l(v):void 0;w&&w!==k&&(k=w,Z=!1)}else k=l(v);if(!k){if(!Z){c=d+(c.length>0?" "+c:c);continue}if(k=l(v),!k){c=d+(c.length>0?" "+c:c);continue}Z=!1}const F=p.length===0?"":p.length===1?p[0]:s(p).join(":"),_=m?F+dt:F,B=_+k;if(a.indexOf(B)>-1)continue;a.push(B);const $=o(k,Z);for(let D=0;D<$.length;++D){const w=$[D];a.push(_+w)}c=d+(c.length>0?" "+c:c)}return c},Yr=(...e)=>{let t=0,n,l,o="";for(;t{if(typeof e=="string")return e;let t,n="";for(let l=0;l{let n,l,o,s;const r=i=>{const c=t.reduce((u,d)=>d(u),e());return n=Pr(c),l=n.cache.get,o=n.cache.set,s=a,a(i)},a=i=>{const c=l(i);if(c)return c;const u=Vr(i,n);return o(i,u),u};return s=r,(...i)=>s(Yr(...i))},Jr=[],o2=e=>{const t=n=>n[e]||Jr;return t.isThemeGetter=!0,t},B0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,S0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,zr=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,jr=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Xr=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,qr=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ea=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ta=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,w3=e=>zr.test(e),D1=e=>!!e&&!Number.isNaN(Number(e)),T2=e=>!!e&&Number.isInteger(Number(e)),Q5=e=>e.endsWith("%")&&D1(e.slice(0,-1)),o3=e=>jr.test(e),R0=()=>!0,na=e=>Xr.test(e)&&!qr.test(e),Lt=()=>!1,la=e=>ea.test(e),oa=e=>ta.test(e),sa=e=>!c1(e)&&!u1(e),ra=e=>e.startsWith("@container")&&(e[10]==="/"&&e[11]!==void 0||e[11]==="s"&&e[16]!==void 0&&e.startsWith("-size/",10)||e[11]==="n"&&e[18]!==void 0&&e.startsWith("-normal/",10)),aa=e=>B3(e,K0,Lt),c1=e=>B0.test(e),K3=e=>B3(e,G0,na),s7=e=>B3(e,pa,D1),ia=e=>B3(e,O0,R0),ca=e=>B3(e,$0,Lt),r7=e=>B3(e,Q0,Lt),ua=e=>B3(e,N0,oa),k4=e=>B3(e,W0,la),u1=e=>S0.test(e),Me=e=>j3(e,G0),da=e=>j3(e,$0),a7=e=>j3(e,Q0),fa=e=>j3(e,K0),Aa=e=>j3(e,N0),C4=e=>j3(e,W0,!0),ha=e=>j3(e,O0,!0),B3=(e,t,n)=>{const l=B0.exec(e);return l?l[1]?t(l[1]):n(l[2]):!1},j3=(e,t,n=!1)=>{const l=S0.exec(e);return l?l[1]?t(l[1]):n:!1},Q0=e=>e==="position"||e==="percentage",N0=e=>e==="image"||e==="url",K0=e=>e==="length"||e==="size"||e==="bg-size",G0=e=>e==="length",pa=e=>e==="number",$0=e=>e==="family-name",O0=e=>e==="number"||e==="weight",W0=e=>e==="shadow",ma=()=>{const e=o2("color"),t=o2("font"),n=o2("text"),l=o2("font-weight"),o=o2("tracking"),s=o2("leading"),r=o2("breakpoint"),a=o2("container"),i=o2("spacing"),c=o2("radius"),u=o2("shadow"),d=o2("inset-shadow"),A=o2("text-shadow"),p=o2("drop-shadow"),m=o2("blur"),v=o2("perspective"),M=o2("aspect"),Z=o2("ease"),k=o2("animate"),F=()=>["auto","avoid","all","avoid-page","page","left","right","column"],_=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],B=()=>[..._(),u1,c1],$=()=>["auto","hidden","clip","visible","scroll"],D=()=>["auto","contain","none"],w=()=>[u1,c1,i],Q=()=>[w3,"full","auto",...w()],S=()=>[T2,"none","subgrid",u1,c1],q=()=>["auto",{span:["full",T2,u1,c1]},T2,u1,c1],Y=()=>[T2,"auto",u1,c1],g1=()=>["auto","min","max","fr",u1,c1],y1=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],l1=()=>["start","end","center","stretch","center-safe","end-safe"],o1=()=>["auto",...w()],v1=()=>[w3,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...w()],C1=()=>[w3,"screen","full","dvw","lvw","svw","min","max","fit",...w()],k1=()=>[w3,"screen","full","lh","dvh","lvh","svh","min","max","fit",...w()],r1=()=>[e,u1,c1],O1=()=>[..._(),a7,r7,{position:[u1,c1]}],F1=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Y1=()=>["auto","cover","contain",fa,aa,{size:[u1,c1]}],e2=()=>[Q5,Me,K3],a1=()=>["","none","full",c,u1,c1],h1=()=>["",D1,Me,K3],W=()=>["solid","dashed","dotted","double"],z=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],G=()=>[D1,Q5,a7,r7],f1=()=>["","none",m,u1,c1],_1=()=>["none",D1,u1,c1],g=()=>["none",D1,u1,c1],b=()=>[D1,u1,c1],E=()=>[w3,"full",...w()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[o3],breakpoint:[o3],color:[R0],container:[o3],"drop-shadow":[o3],ease:["in","out","in-out"],font:[sa],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[o3],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[o3],shadow:[o3],spacing:["px",D1],text:[o3],"text-shadow":[o3],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",w3,c1,u1,M]}],container:["container"],"container-type":[{"@container":["","normal","size",u1,c1]}],"container-named":[ra],columns:[{columns:[D1,c1,u1,a]}],"break-after":[{"break-after":F()}],"break-before":[{"break-before":F()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:B()}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:D()}],"overscroll-x":[{"overscroll-x":D()}],"overscroll-y":[{"overscroll-y":D()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:Q()}],"inset-x":[{"inset-x":Q()}],"inset-y":[{"inset-y":Q()}],start:[{"inset-s":Q(),start:Q()}],end:[{"inset-e":Q(),end:Q()}],"inset-bs":[{"inset-bs":Q()}],"inset-be":[{"inset-be":Q()}],top:[{top:Q()}],right:[{right:Q()}],bottom:[{bottom:Q()}],left:[{left:Q()}],visibility:["visible","invisible","collapse"],z:[{z:[T2,"auto",u1,c1]}],basis:[{basis:[w3,"full","auto",a,...w()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[D1,w3,"auto","initial","none",c1]}],grow:[{grow:["",D1,u1,c1]}],shrink:[{shrink:["",D1,u1,c1]}],order:[{order:[T2,"first","last","none",u1,c1]}],"grid-cols":[{"grid-cols":S()}],"col-start-end":[{col:q()}],"col-start":[{"col-start":Y()}],"col-end":[{"col-end":Y()}],"grid-rows":[{"grid-rows":S()}],"row-start-end":[{row:q()}],"row-start":[{"row-start":Y()}],"row-end":[{"row-end":Y()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":g1()}],"auto-rows":[{"auto-rows":g1()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...y1(),"normal"]}],"justify-items":[{"justify-items":[...l1(),"normal"]}],"justify-self":[{"justify-self":["auto",...l1()]}],"align-content":[{content:["normal",...y1()]}],"align-items":[{items:[...l1(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...l1(),{baseline:["","last"]}]}],"place-content":[{"place-content":y1()}],"place-items":[{"place-items":[...l1(),"baseline"]}],"place-self":[{"place-self":["auto",...l1()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:o1()}],mx:[{mx:o1()}],my:[{my:o1()}],ms:[{ms:o1()}],me:[{me:o1()}],mbs:[{mbs:o1()}],mbe:[{mbe:o1()}],mt:[{mt:o1()}],mr:[{mr:o1()}],mb:[{mb:o1()}],ml:[{ml:o1()}],"space-x":[{"space-x":w()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":w()}],"space-y-reverse":["space-y-reverse"],size:[{size:v1()}],"inline-size":[{inline:["auto",...C1()]}],"min-inline-size":[{"min-inline":["auto",...C1()]}],"max-inline-size":[{"max-inline":["none",...C1()]}],"block-size":[{block:["auto",...k1()]}],"min-block-size":[{"min-block":["auto",...k1()]}],"max-block-size":[{"max-block":["none",...k1()]}],w:[{w:[a,"screen",...v1()]}],"min-w":[{"min-w":[a,"screen","none",...v1()]}],"max-w":[{"max-w":[a,"screen","none","prose",{screen:[r]},...v1()]}],h:[{h:["screen","lh",...v1()]}],"min-h":[{"min-h":["screen","lh","none",...v1()]}],"max-h":[{"max-h":["screen","lh",...v1()]}],"font-size":[{text:["base",n,Me,K3]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,ha,ia]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Q5,c1]}],"font-family":[{font:[da,ca,t]}],"font-features":[{"font-features":[c1]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,u1,c1]}],"line-clamp":[{"line-clamp":[D1,"none",u1,s7]}],leading:[{leading:[s,...w()]}],"list-image":[{"list-image":["none",u1,c1]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u1,c1]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:r1()}],"text-color":[{text:r1()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...W(),"wavy"]}],"text-decoration-thickness":[{decoration:[D1,"from-font","auto",u1,K3]}],"text-decoration-color":[{decoration:r1()}],"underline-offset":[{"underline-offset":[D1,"auto",u1,c1]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:w()}],"tab-size":[{tab:[T2,u1,c1]}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u1,c1]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u1,c1]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:O1()}],"bg-repeat":[{bg:F1()}],"bg-size":[{bg:Y1()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},T2,u1,c1],radial:["",u1,c1],conic:[T2,u1,c1]},Aa,ua]}],"bg-color":[{bg:r1()}],"gradient-from-pos":[{from:e2()}],"gradient-via-pos":[{via:e2()}],"gradient-to-pos":[{to:e2()}],"gradient-from":[{from:r1()}],"gradient-via":[{via:r1()}],"gradient-to":[{to:r1()}],rounded:[{rounded:a1()}],"rounded-s":[{"rounded-s":a1()}],"rounded-e":[{"rounded-e":a1()}],"rounded-t":[{"rounded-t":a1()}],"rounded-r":[{"rounded-r":a1()}],"rounded-b":[{"rounded-b":a1()}],"rounded-l":[{"rounded-l":a1()}],"rounded-ss":[{"rounded-ss":a1()}],"rounded-se":[{"rounded-se":a1()}],"rounded-ee":[{"rounded-ee":a1()}],"rounded-es":[{"rounded-es":a1()}],"rounded-tl":[{"rounded-tl":a1()}],"rounded-tr":[{"rounded-tr":a1()}],"rounded-br":[{"rounded-br":a1()}],"rounded-bl":[{"rounded-bl":a1()}],"border-w":[{border:h1()}],"border-w-x":[{"border-x":h1()}],"border-w-y":[{"border-y":h1()}],"border-w-s":[{"border-s":h1()}],"border-w-e":[{"border-e":h1()}],"border-w-bs":[{"border-bs":h1()}],"border-w-be":[{"border-be":h1()}],"border-w-t":[{"border-t":h1()}],"border-w-r":[{"border-r":h1()}],"border-w-b":[{"border-b":h1()}],"border-w-l":[{"border-l":h1()}],"divide-x":[{"divide-x":h1()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":h1()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...W(),"hidden","none"]}],"divide-style":[{divide:[...W(),"hidden","none"]}],"border-color":[{border:r1()}],"border-color-x":[{"border-x":r1()}],"border-color-y":[{"border-y":r1()}],"border-color-s":[{"border-s":r1()}],"border-color-e":[{"border-e":r1()}],"border-color-bs":[{"border-bs":r1()}],"border-color-be":[{"border-be":r1()}],"border-color-t":[{"border-t":r1()}],"border-color-r":[{"border-r":r1()}],"border-color-b":[{"border-b":r1()}],"border-color-l":[{"border-l":r1()}],"divide-color":[{divide:r1()}],"outline-style":[{outline:[...W(),"none","hidden"]}],"outline-offset":[{"outline-offset":[D1,u1,c1]}],"outline-w":[{outline:["",D1,Me,K3]}],"outline-color":[{outline:r1()}],shadow:[{shadow:["","none",u,C4,k4]}],"shadow-color":[{shadow:r1()}],"inset-shadow":[{"inset-shadow":["none",d,C4,k4]}],"inset-shadow-color":[{"inset-shadow":r1()}],"ring-w":[{ring:h1()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:r1()}],"ring-offset-w":[{"ring-offset":[D1,K3]}],"ring-offset-color":[{"ring-offset":r1()}],"inset-ring-w":[{"inset-ring":h1()}],"inset-ring-color":[{"inset-ring":r1()}],"text-shadow":[{"text-shadow":["none",A,C4,k4]}],"text-shadow-color":[{"text-shadow":r1()}],opacity:[{opacity:[D1,u1,c1]}],"mix-blend":[{"mix-blend":[...z(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":z()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[D1]}],"mask-image-linear-from-pos":[{"mask-linear-from":G()}],"mask-image-linear-to-pos":[{"mask-linear-to":G()}],"mask-image-linear-from-color":[{"mask-linear-from":r1()}],"mask-image-linear-to-color":[{"mask-linear-to":r1()}],"mask-image-t-from-pos":[{"mask-t-from":G()}],"mask-image-t-to-pos":[{"mask-t-to":G()}],"mask-image-t-from-color":[{"mask-t-from":r1()}],"mask-image-t-to-color":[{"mask-t-to":r1()}],"mask-image-r-from-pos":[{"mask-r-from":G()}],"mask-image-r-to-pos":[{"mask-r-to":G()}],"mask-image-r-from-color":[{"mask-r-from":r1()}],"mask-image-r-to-color":[{"mask-r-to":r1()}],"mask-image-b-from-pos":[{"mask-b-from":G()}],"mask-image-b-to-pos":[{"mask-b-to":G()}],"mask-image-b-from-color":[{"mask-b-from":r1()}],"mask-image-b-to-color":[{"mask-b-to":r1()}],"mask-image-l-from-pos":[{"mask-l-from":G()}],"mask-image-l-to-pos":[{"mask-l-to":G()}],"mask-image-l-from-color":[{"mask-l-from":r1()}],"mask-image-l-to-color":[{"mask-l-to":r1()}],"mask-image-x-from-pos":[{"mask-x-from":G()}],"mask-image-x-to-pos":[{"mask-x-to":G()}],"mask-image-x-from-color":[{"mask-x-from":r1()}],"mask-image-x-to-color":[{"mask-x-to":r1()}],"mask-image-y-from-pos":[{"mask-y-from":G()}],"mask-image-y-to-pos":[{"mask-y-to":G()}],"mask-image-y-from-color":[{"mask-y-from":r1()}],"mask-image-y-to-color":[{"mask-y-to":r1()}],"mask-image-radial":[{"mask-radial":[u1,c1]}],"mask-image-radial-from-pos":[{"mask-radial-from":G()}],"mask-image-radial-to-pos":[{"mask-radial-to":G()}],"mask-image-radial-from-color":[{"mask-radial-from":r1()}],"mask-image-radial-to-color":[{"mask-radial-to":r1()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":_()}],"mask-image-conic-pos":[{"mask-conic":[D1]}],"mask-image-conic-from-pos":[{"mask-conic-from":G()}],"mask-image-conic-to-pos":[{"mask-conic-to":G()}],"mask-image-conic-from-color":[{"mask-conic-from":r1()}],"mask-image-conic-to-color":[{"mask-conic-to":r1()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:O1()}],"mask-repeat":[{mask:F1()}],"mask-size":[{mask:Y1()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u1,c1]}],filter:[{filter:["","none",u1,c1]}],blur:[{blur:f1()}],brightness:[{brightness:[D1,u1,c1]}],contrast:[{contrast:[D1,u1,c1]}],"drop-shadow":[{"drop-shadow":["","none",p,C4,k4]}],"drop-shadow-color":[{"drop-shadow":r1()}],grayscale:[{grayscale:["",D1,u1,c1]}],"hue-rotate":[{"hue-rotate":[D1,u1,c1]}],invert:[{invert:["",D1,u1,c1]}],saturate:[{saturate:[D1,u1,c1]}],sepia:[{sepia:["",D1,u1,c1]}],"backdrop-filter":[{"backdrop-filter":["","none",u1,c1]}],"backdrop-blur":[{"backdrop-blur":f1()}],"backdrop-brightness":[{"backdrop-brightness":[D1,u1,c1]}],"backdrop-contrast":[{"backdrop-contrast":[D1,u1,c1]}],"backdrop-grayscale":[{"backdrop-grayscale":["",D1,u1,c1]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D1,u1,c1]}],"backdrop-invert":[{"backdrop-invert":["",D1,u1,c1]}],"backdrop-opacity":[{"backdrop-opacity":[D1,u1,c1]}],"backdrop-saturate":[{"backdrop-saturate":[D1,u1,c1]}],"backdrop-sepia":[{"backdrop-sepia":["",D1,u1,c1]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u1,c1]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[D1,"initial",u1,c1]}],ease:[{ease:["linear","initial",Z,u1,c1]}],delay:[{delay:[D1,u1,c1]}],animate:[{animate:["none",k,u1,c1]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,u1,c1]}],"perspective-origin":[{"perspective-origin":B()}],rotate:[{rotate:_1()}],"rotate-x":[{"rotate-x":_1()}],"rotate-y":[{"rotate-y":_1()}],"rotate-z":[{"rotate-z":_1()}],scale:[{scale:g()}],"scale-x":[{"scale-x":g()}],"scale-y":[{"scale-y":g()}],"scale-z":[{"scale-z":g()}],"scale-3d":["scale-3d"],skew:[{skew:b()}],"skew-x":[{"skew-x":b()}],"skew-y":[{"skew-y":b()}],transform:[{transform:[u1,c1,"","none","gpu","cpu"]}],"transform-origin":[{origin:B()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:E()}],"translate-x":[{"translate-x":E()}],"translate-y":[{"translate-y":E()}],"translate-z":[{"translate-z":E()}],"translate-none":["translate-none"],zoom:[{zoom:[T2,u1,c1]}],accent:[{accent:r1()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:r1()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u1,c1]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scrollbar-thumb-color":[{"scrollbar-thumb":r1()}],"scrollbar-track-color":[{"scrollbar-track":r1()}],"scrollbar-gutter":[{"scrollbar-gutter":["auto","stable","both"]}],"scrollbar-w":[{scrollbar:["auto","thin","none"]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u1,c1]}],fill:[{fill:["none",...r1()]}],"stroke-w":[{stroke:[D1,Me,K3,s7]}],stroke:[{stroke:["none",...r1()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{"container-named":["container-type"],overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","inset-bs","inset-be","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pbs","pbe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mbs","mbe","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-bs","border-w-be","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-bs","border-color-be","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mbs","scroll-mbe","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pbs","scroll-pbe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},postfixLookupClassGroups:["container-type"],orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},ga=Ur(ma);function x1(...e){return ga(M0(e))}const va=["src","alt"],ya={key:1,class:"flex h-full w-full items-center justify-center bg-muted font-medium text-muted-foreground"},ba=L1({__name:"Avatar",props:{src:{},alt:{},fallback:{default:"?"},size:{default:"md"},class:{}},setup(e){const t=e,n={sm:"h-8 w-8 text-xs",md:"h-10 w-10 text-sm",lg:"h-12 w-12 text-base"},l=j(!1),o=e1(()=>!t.src||l.value);return(s,r)=>(h(),C("div",{class:i1(f(x1)("relative flex shrink-0 overflow-hidden rounded-full",n[e.size],t.class))},[o.value?(h(),C("div",ya,R(e.fallback),1)):(h(),C("img",{key:0,src:e.src??void 0,alt:e.alt,class:"aspect-square h-full w-full object-cover",onError:r[0]||(r[0]=a=>l.value=!0)},null,40,va))],2))}}),i7=e=>typeof e=="boolean"?`${e}`:e===0?"0":e,c7=M0,A5=(e,t)=>n=>{var l;if((t==null?void 0:t.variants)==null)return c7(e,n==null?void 0:n.class,n==null?void 0:n.className);const{variants:o,defaultVariants:s}=t,r=Object.keys(o).map(c=>{const u=n==null?void 0:n[c],d=s==null?void 0:s[c];if(u===null)return null;const A=i7(u)||i7(d);return o[c][A]}),a=n&&Object.entries(n).reduce((c,u)=>{let[d,A]=u;return A===void 0||(c[d]=A),c},{}),i=t==null||(l=t.compoundVariants)===null||l===void 0?void 0:l.reduce((c,u)=>{let{class:d,className:A,...p}=u;return Object.entries(p).every(m=>{let[v,M]=m;return Array.isArray(M)?M.includes({...s,...a}[v]):{...s,...a}[v]===M})?[...c,d,A]:c},[]);return c7(e,r,i,n==null?void 0:n.class,n==null?void 0:n.className)},u2=L1({__name:"Badge",props:{variant:{default:"default"},class:{}},setup(e){const t=A5("inline-flex items-center rounded-full border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow",secondary:"border-transparent bg-secondary text-secondary-foreground",destructive:"border-transparent bg-destructive text-destructive-foreground shadow",outline:"text-foreground",success:"border-transparent bg-success/20 text-success",warning:"border-transparent bg-warning/20 text-warning",glow:"border-primary/30 bg-primary/10 text-primary"}},defaultVariants:{variant:"default"}}),n=e;return(l,o)=>(h(),C("div",{class:i1(f(x1)(f(t)({variant:e.variant}),n.class))},[G1(l.$slots,"default")],2))}}),b1=L1({__name:"Button",props:{variant:{default:"default"},size:{default:"default"},as:{default:"button"},class:{},disabled:{type:Boolean}},setup(e){const t=A5("inline-flex items-center justify-center whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50",{variants:{variant:{default:"bg-primary text-primary-foreground shadow hover:bg-primary/90",destructive:"bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90",outline:"border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground",secondary:"bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground",link:"text-primary underline-offset-4 hover:underline",glow:"bg-primary text-primary-foreground shadow-lg hover:bg-primary/90 glow-sm hover:glow"},size:{default:"h-9 px-4 py-2",sm:"h-8 rounded-md px-3 text-xs",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-9 w-9"}},defaultVariants:{variant:"default",size:"default"}}),n=e;return(l,o)=>(h(),K(C2(e.as),{class:i1(f(x1)(f(t)({variant:e.variant,size:e.size}),n.class)),disabled:e.disabled},{default:x(()=>[G1(l.$slots,"default")]),_:3},8,["class","disabled"]))}}),z1=L1({__name:"Card",props:{class:{},hover:{type:Boolean,default:!1},glow:{type:Boolean,default:!1}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:i1(f(x1)("rounded-lg border bg-card text-card-foreground shadow-sm",e.hover&&"transition-all duration-200 hover:border-primary/50 hover:-translate-y-1",e.glow&&"glow-sm",t.class))},[G1(n.$slots,"default")],2))}}),ka="modulepreload",Ca=function(e){return"/"+e},u7={},w4=function(t,n,l){let o=Promise.resolve();if(n&&n.length>0){let r=function(c){return Promise.all(c.map(u=>Promise.resolve(u).then(d=>({status:"fulfilled",value:d}),d=>({status:"rejected",reason:d}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),i=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=r(n.map(c=>{if(c=Ca(c),c in u7)return;u7[c]=!0;const u=c.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${c}"]${d}`))return;const A=document.createElement("link");if(A.rel=u?"stylesheet":ka,u||(A.as="script"),A.crossOrigin="",A.href=c,i&&A.setAttribute("nonce",i),document.head.appendChild(A),u)return new Promise((p,m)=>{A.addEventListener("load",p),A.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${c}`)))})}))}function s(r){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=r,window.dispatchEvent(a),!a.defaultPrevented)throw r}return o.then(r=>{for(const a of r||[])a.status==="rejected"&&s(a.reason);return t().catch(s)})},d7={intent:"bg-fuchsia-600/10 text-fuchsia-600 border-fuchsia-600/20",decision:"bg-blue-600/10 text-blue-600 border-blue-600/20",constraint:"bg-amber-600/10 text-amber-600 border-amber-600/20",workaround:"bg-red-600/10 text-red-600 border-red-600/20",convention:"bg-violet-600/10 text-violet-600 border-violet-600/20",pattern:"bg-emerald-600/10 text-emerald-600 border-emerald-600/20",discussion:"bg-cyan-600/10 text-cyan-600 border-cyan-600/20",review:"bg-pink-600/10 text-pink-600 border-pink-600/20",plan:"bg-lime-600/10 text-lime-600 border-lime-600/20"},wa={intent:"bg-fuchsia-600",decision:"bg-blue-600",constraint:"bg-amber-600",workaround:"bg-red-600",convention:"bg-violet-600",pattern:"bg-emerald-600",discussion:"bg-cyan-600",review:"bg-pink-600",plan:"bg-lime-600"},N5={system:"#7c3aed",part:"#d97706",contract:"#0891b2",intent:"#c026d3",decision:"#2563eb",constraint:"#d97706",workaround:"#dc2626",convention:"#7c3aed",pattern:"#059669",discussion:"#0891b2",review:"#db2777",plan:"#65a30d"},xa=["Intent","Decision","Constraint","Workaround","Convention","Pattern","Discussion","Review","Plan"],_a={Intent:"What this exists to do, who for, and what it deliberately is not",Decision:"A deliberate choice made about architecture, tooling, or approach",Constraint:"A hard limitation imposed by external factors or requirements",Workaround:"A temporary fix for a known issue or limitation",Convention:"An established principle or standard the team follows",Pattern:"An observed model, recurring choice, or emergent practice",Discussion:"Key points from a team discussion or debate",Review:"Insights surfaced during code review",Plan:"A future intention or roadmap item"};function L0(){const e="bg-muted text-muted-foreground border-border";function t(s){return d7[(s??"").toLowerCase()]??e}function n(s){return wa[(s??"").toLowerCase()]??"bg-muted-foreground"}function l(s){return N5[(s??"").toLowerCase()]??"#a1a1aa"}const o=Object.keys(N5).map(s=>({kind:s,label:s.charAt(0).toUpperCase()+s.slice(1),color:N5[s]}));return{tone:t,fill:n,ink:l,legend:o,kinds:Object.keys(d7),kindOptions:xa,kindDescriptions:_a}}const x4="#6b7280",Ia=L1({__name:"CodeGraph",props:{height:{default:"460px"},repo:{default:""},mode:{default:"2d"},data:{default:null},hidden:{default:()=>[]}},emits:["select"],setup(e,{expose:t,emit:n}){const l=n,o=e,s=Q=>[typeof Q.source=="object"?Q.source:null,typeof Q.target=="object"?Q.target:null],r=Q=>{const[S,q]=s(Q);return S&&q&&S.community===q.community&&S.community!==null?S:null},a=j(null);let i=null,c=null,u=null;const d=new Map,{ink:A}=L0(),p=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];function m(Q){if(typeof Q.community=="number")return p[Q.community%p.length];const S=(Q.kind||"").toLowerCase();return S==="code"?"#E20C18":S==="file"||["class","function","method","module","route","variable","symbol"].includes(S)?x4:A(S)}function v(Q){return Q&&Q.length>28?`${Q.slice(0,27)}…`:Q}const M=e1(()=>!!o.data&&o.data.nodes.length>0);t({hasGraph:M});const Z=e1(()=>new Set(o.hidden));function k(){const Q=o.data??{nodes:[],links:[]},S=Q.nodes.filter(l1=>typeof l1.community!="number"||!Z.value.has(l1.community)),q=new Set(S.map(l1=>l1.id)),Y=Math.max(1,...S.map(l1=>l1.degree??0)),g1=S.map(l1=>{const o1=d.get(l1.id);return{...l1,...o1??{},color:m(l1),radius:Math.min(3+2.4*Math.sqrt(l1.degree??0),11),named:(l1.degree??0)>=Math.max(4,Y*.5)}}),y1=Q.links.filter(l1=>q.has(String(l1.source))&&q.has(String(l1.target))).map(l1=>({...l1}));return{nodes:g1,links:y1}}function F(Q){return Math.max(.06,Math.min(.5,Math.sqrt(400/Math.max(1,Q))))}function _(Q,S){const q=parseInt(Q.slice(1),16),Y=Math.max(0,Math.min(1,S)).toFixed(3);return`rgba(${q>>16&255}, ${q>>8&255}, ${q&255}, ${Y})`}const B=Q=>Q==="tree"?"td":Q==="radial"?"radialout":Q==="layered"?"zout":null;function $(){if(i)for(const Q of i.graphData().nodes)Number.isFinite(Q.x)&&d.set(Q.id,{x:Q.x,y:Q.y,z:Q.z??0})}function D(){var Q;$(),i&&((Q=i._destructor)==null||Q.call(i),i=null),a.value&&(a.value.innerHTML="")}async function w(Q){var y1,l1;if(!a.value)return;const S=Q==="2d"?"2d":"3d";if(i&&c===S){S==="3d"&&i.dagMode(B(Q)),$(),i.graphData(k());return}if(D(),c=S,S==="2d"){const o1=(await w4(async()=>{const{default:a1}=await import("./force-graph-HZtkkbK0.js");return{default:a1}},__vite__mapDeps([0,1,2]))).default,{forceCollide:v1,forceManyBody:C1,forceX:k1,forceY:r1}=await w4(async()=>{const{forceCollide:a1,forceManyBody:h1,forceX:W,forceY:z}=await import("./index-DHVCIEzJ.js");return{forceCollide:a1,forceManyBody:h1,forceX:W,forceY:z}},__vite__mapDeps([3,1])),O1=k(),F1=F(O1.links.length);let Y1=null;i=new o1(a.value),i.backgroundColor("rgba(0,0,0,0)").graphData(O1).nodeRelSize(4).nodeColor(a1=>a1.color).nodeLabel(a1=>a1.path?`${a1.name} — ${a1.path}`:a1.name).nodeCanvasObject((a1,h1,W)=>{const z=!Y1||Y1===a1.id;if(h1.globalAlpha=z?1:.25,h1.beginPath(),h1.arc(a1.x,a1.y,a1.radius,0,2*Math.PI),h1.fillStyle=a1.color,h1.fill(),!a1.named&&Y1!==a1.id){h1.globalAlpha=1;return}const G=Math.max(11/W,1.5);h1.font=`${G}px ui-sans-serif, system-ui, sans-serif`,h1.fillStyle=a1.color,h1.textAlign="left",h1.textBaseline="middle",h1.fillText(v(a1.name),a1.x+a1.radius+2/W,a1.y),h1.globalAlpha=1}).nodePointerAreaPaint((a1,h1,W)=>{W.fillStyle=h1,W.beginPath(),W.arc(a1.x,a1.y,a1.radius+2,0,2*Math.PI),W.fill()}).linkColor(a1=>{const h1=r(a1);return _(h1?h1.color:x4,F1*(h1?1.6:1))}).linkWidth(.6).linkDirectionalArrowLength(2.5).linkDirectionalArrowRelPos(1).linkLabel(a1=>a1.type??"").onNodeHover(a1=>{var h1;Y1=a1?a1.id:null,a.value&&(a.value.style.cursor=a1?"pointer":""),(h1=i==null?void 0:i.refresh)==null||h1.call(i)}).width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(a1=>l("select",String(a1.id))),i.d3AlphaDecay(.02).d3VelocityDecay(.35).cooldownTicks(220),i.d3Force("charge",C1().strength(-140).distanceMax(420)),i.d3Force("center",null),i.d3Force("x",k1(0).strength(.03)),i.d3Force("y",r1(0).strength(.03)),i.d3Force("collide",v1(a1=>a1.radius+2).iterations(2)),(y1=i.d3Force("link"))==null||y1.distance(a1=>r(a1)?26:70).strength(a1=>r(a1)?.7:.08);let e2=!1;i.onEngineTick(()=>{!e2&&i.d3Force("link")&&(e2=!0,setTimeout(()=>i==null?void 0:i.zoomToFit(600,60),700))}),i.onEngineStop(()=>{$(),i==null||i.zoomToFit(600,60)});return}const q=(await w4(async()=>{const{default:o1}=await import("./3d-force-graph-B8lgMx4q.js");return{default:o1}},__vite__mapDeps([4,5,2,1]))).default,Y=await w4(()=>import("./three.module-D-PgY1-x.js").then(o1=>o1.df),[]),g1=k();i=new q(a.value),i.backgroundColor("rgba(0,0,0,0)").showNavInfo(!1).onDagError(()=>{}).dagLevelDistance(46).dagMode(B(Q)).graphData(g1).nodeLabel(o1=>o1.path?`${o1.name} — ${o1.path}`:o1.name).nodeThreeObject(o1=>{const v1=new Y.SphereGeometry(o1.radius,12,10),C1=new Y.MeshLambertMaterial({color:o1.color,transparent:!0,opacity:.92});return new Y.Mesh(v1,C1)}).linkColor(()=>x4).linkOpacity(F(g1.links.length)).linkWidth(.5).linkDirectionalArrowLength(2).linkDirectionalArrowRelPos(1).linkLabel(o1=>o1.type??"").width(a.value.clientWidth).height(a.value.clientHeight).onNodeClick(o1=>l("select",String(o1.id))),(l1=i.d3Force("charge"))==null||l1.strength(-140).distanceMax(420),i.onEngineStop(()=>{$(),i==null||i.zoomToFit(600,60)})}return f2(async()=>{await w(o.mode),u=new ResizeObserver(()=>{i&&a.value&&i.width(a.value.clientWidth).height(a.value.clientHeight)}),a.value&&u.observe(a.value)}),q1(()=>o.mode,Q=>w(Q)),q1(()=>o.repo,()=>{d.clear(),w(o.mode)}),q1(()=>o.data,()=>w(o.mode)),q1(()=>o.hidden,()=>w(o.mode),{deep:!0}),St(()=>{u&&(u.disconnect(),u=null),D()}),(Q,S)=>(h(),C("div",{ref_key:"el",ref:a,style:E2({height:o.height}),class:"w-full"},null,4))}}),Ma=["for"],Ea={key:1,class:"mt-1 text-xs text-destructive"},Da={key:2,class:"mt-1 text-xs text-muted-foreground"},N2=L1({__name:"Field",props:{label:{},hint:{},error:{},for:{},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("div",{class:i1(f(x1)("w-full",t.class))},[e.label?(h(),C("label",{key:0,for:t.for,class:"mb-1.5 flex items-center gap-2 text-xs font-medium uppercase tracking-wider text-muted-foreground"},[U(R(e.label)+" ",1),G1(n.$slots,"label")],8,Ma)):L("",!0),G1(n.$slots,"default"),e.error?(h(),C("p",Ea,R(e.error),1)):e.hint?(h(),C("p",Da,R(e.hint),1)):L("",!0)],2))}}),P0=A5(["w-full rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"h-8 px-3 text-xs",default:"h-9 px-3 text-sm",lg:"h-11 px-4 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),Za=A5(["w-full resize-y rounded-md border bg-muted/50 text-foreground outline-none transition-colors","placeholder:text-muted-foreground focus:border-primary/50","disabled:cursor-not-allowed disabled:opacity-50"].join(" "),{variants:{size:{sm:"px-3 py-1.5 text-xs",default:"px-3 py-2 text-sm",lg:"px-4 py-2.5 text-base"},invalid:{true:"border-destructive/60 focus:border-destructive",false:""}},defaultVariants:{size:"default",invalid:!1}}),Fa=["value"],J3=L1({__name:"Input",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("input",{value:e.modelValue,class:i1(f(x1)(f(P0)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,Fa))}}),Ba={class:"flex items-start gap-4"},Sa={class:"min-w-0 flex-1"},Ra={class:"mb-1 flex flex-wrap items-center gap-2"},Qa={class:"break-all font-semibold"},Na={key:0,class:"break-all font-mono text-sm text-muted-foreground"},Ka={key:1,class:"mt-2 flex flex-wrap items-center gap-x-4 gap-y-1 text-sm text-muted-foreground"},Ga={key:1,class:"flex shrink-0 items-center gap-1"},z3=L1({__name:"ItemCard",props:{title:{},subtitle:{},pillar:{default:"graph"},hover:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"};return(l,o)=>(h(),K(z1,{hover:e.hover,class:i1(f(x1)("p-5",t.class))},{default:x(()=>[y("div",Ba,[l.$slots.icon?(h(),C("div",{key:0,class:i1(f(x1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",n[e.pillar]))},[G1(l.$slots,"icon")],2)):L("",!0),y("div",Sa,[y("div",Ra,[y("h3",Qa,R(e.title),1),G1(l.$slots,"badges")]),e.subtitle?(h(),C("p",Na,R(e.subtitle),1)):L("",!0),G1(l.$slots,"default"),l.$slots.meta?(h(),C("div",Ka,[G1(l.$slots,"meta")])):L("",!0)]),l.$slots.actions?(h(),C("div",Ga,[G1(l.$slots,"actions")])):L("",!0)])]),_:3},8,["hover","class"]))}}),$a={class:"flex min-w-0 items-center gap-3"},Oa={class:"min-w-0"},Wa={class:"flex flex-wrap items-center gap-2"},La={class:"text-xl font-semibold"},Pa={key:1,class:"mt-1.5 flex flex-wrap items-center gap-x-3 gap-y-1.5 text-sm text-muted-foreground"},Ta={key:0,class:"flex flex-wrap items-center gap-2"},v3=L1({__name:"PageHead",props:{title:{},sub:{},pillar:{default:"graph"},tone:{},mono:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={memory:"bg-pillar-memory/15 text-pillar-memory",graph:"bg-pillar-graph/15 text-pillar-graph",review:"bg-pillar-review/15 text-pillar-review",tokens:"bg-pillar-tokens/15 text-pillar-tokens",brand:"bg-primary/15 text-primary"},l={neutral:"bg-muted text-muted-foreground",info:"bg-primary/15 text-primary",success:"bg-success/15 text-success",warning:"bg-warning/15 text-warning",danger:"bg-destructive/15 text-destructive"},o=e1(()=>t.tone?l[t.tone]:n[t.pillar]);return(s,r)=>(h(),C("div",{class:i1(f(x1)("mb-6 flex flex-wrap items-start justify-between gap-4",t.class))},[y("div",$a,[G1(s.$slots,"back"),s.$slots.icon?(h(),C("div",{key:0,class:i1(f(x1)("flex h-11 w-11 shrink-0 items-center justify-center rounded-lg",o.value))},[G1(s.$slots,"icon")],2)):L("",!0),y("div",Oa,[y("div",Wa,[y("h1",La,R(e.title),1),G1(s.$slots,"badges")]),e.sub?(h(),C("p",{key:0,class:i1(f(x1)("text-sm text-muted-foreground",e.mono&&"break-all font-mono"))},R(e.sub),3)):L("",!0),s.$slots.meta?(h(),C("div",Pa,[G1(s.$slots,"meta")])):L("",!0)])]),s.$slots.actions?(h(),C("div",Ta,[G1(s.$slots,"actions")])):L("",!0)],2))}}),Ha=["value"],X2=L1({__name:"Select",props:{modelValue:{},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("select",{value:e.modelValue,class:i1(f(x1)(f(P0)({size:e.size,invalid:e.invalid}),"w-auto",t.class)),onChange:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},[G1(n.$slots,"default")],42,Ha))}});/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $a=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + */const Va=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const c7=e=>e==="";/** + */const f7=e=>e==="";/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Wa=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** + */const Ya=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const u7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const A7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const La=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** + */const Ua=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Pa=e=>{const t=La(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + */const Ja=e=>{const t=Ua(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Me={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + */var Ee={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ta=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Me.width,color:a=Me.stroke,...i},{slots:c})=>h3("svg",{...Me,...i,width:s,height:s,stroke:a,"stroke-width":c7(n)||c7(l)||n===!0||l===!0?Number(o||r||Me["stroke-width"])*24/Number(s):o||r||Me["stroke-width"],class:Wa("lucide",i.class,...e?[`lucide-${u7(Pa(e))}-icon`,`lucide-${u7(e)}`]:["lucide-icon"]),...!c.default&&!$a(i)&&{"aria-hidden":"true"}},[...t.map(d=>h3(...d)),...c.default?[c.default()]:[]]);/** + */const za=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":s,size:r=Ee.width,color:a=Ee.stroke,...i},{slots:c})=>h3("svg",{...Ee,...i,width:r,height:r,stroke:a,"stroke-width":f7(n)||f7(l)||n===!0||l===!0?Number(o||s||Ee["stroke-width"])*24/Number(r):o||s||Ee["stroke-width"],class:Ya("lucide",i.class,...e?[`lucide-${A7(Ja(e))}-icon`,`lucide-${A7(e)}`]:["lucide-icon"]),...!c.default&&!Va(i)&&{"aria-hidden":"true"}},[...t.map(u=>h3(...u)),...c.default?[c.default()]:[]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const X3=(e,t)=>(n,{slots:l,attrs:o})=>h3(Ta,{...o,...n,iconNode:t,name:e},l);/** + */const X3=(e,t)=>(n,{slots:l,attrs:o})=>h3(za,{...o,...n,iconNode:t,name:e},l);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ha=X3("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** + */const ja=X3("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ya=X3("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const Xa=X3("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Va=X3("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const qa=X3("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ua=X3("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** + */const ei=X3("info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Ja=X3("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + */const ti=X3("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const za=X3("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const ni=X3("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const $t=X3("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),ja=["aria-label"],Xa=["aria-pressed","disabled","title","onClick"],qa={key:1,class:"opacity-60"},ye=W1({__name:"Tabs",props:{modelValue:{},tabs:{},label:{},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e){const t=e,n={sm:"gap-1 px-1.5 py-0.5 text-[10px]",default:"gap-1.5 px-2.5 py-1 text-xs",lg:"gap-2 px-3 py-1 text-sm"};return(l,o)=>(h(),w("div",{role:"group","aria-label":e.label,class:i1(f(w1)("inline-flex rounded-md border bg-card p-0.5",t.class))},[(h(!0),w(n1,null,_1(e.tabs,r=>(h(),w("button",{key:r.id,type:"button","aria-pressed":e.modelValue===r.id,disabled:r.disabled,title:r.title,class:i1(f(w1)("inline-flex shrink-0 items-center rounded font-medium transition-colors disabled:pointer-events-none disabled:opacity-40",n[e.size],e.modelValue===r.id?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground")),onClick:s=>l.$emit("update:modelValue",r.id)},[r.icon?(h(),G(k2(r.icon),{key:0,class:i1(e.size==="sm"?"h-3 w-3":"h-3.5 w-3.5")},null,8,["class"])):W("",!0),U(" "+Q(r.label)+" ",1),r.count?(h(),w("span",qa,Q(r.count),1)):W("",!0)],10,Xa))),128))],10,ja))}}),ei=["value","rows"],ut=W1({__name:"Textarea",props:{modelValue:{},rows:{default:3},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),w("textarea",{value:e.modelValue,rows:e.rows,class:i1(f(w1)(f(xa)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,ei))}}),ti={key:0,class:"space-y-1.5"},ni={class:"flex gap-2"},$0=W1({__name:"ListInput",props:{modelValue:{default:()=>[]},placeholder:{},noun:{default:"entry"},mono:{type:Boolean,default:!1},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,o=j("");function r(){const a=o.value.trim();if(!a||n.modelValue.includes(a)){o.value="";return}l("update:modelValue",[...n.modelValue,a]),o.value=""}function s(a){l("update:modelValue",n.modelValue.filter(i=>i!==a))}return(a,i)=>(h(),w("div",{class:i1(f(w1)("space-y-2",n.class))},[e.modelValue.length?(h(),w("ul",ti,[(h(!0),w(n1,null,_1(e.modelValue,c=>(h(),w("li",{key:c,class:"flex items-center gap-2 rounded-md border bg-muted/40 py-1 pl-3 pr-1 text-sm"},[y("span",{class:i1(f(w1)("min-w-0 flex-1 break-all",e.mono&&"font-mono text-xs"))},Q(c),3),M(b1,{variant:"ghost",size:"icon",class:"h-6 w-6 shrink-0","aria-label":`Remove ${c}`,onClick:d=>s(c)},{default:x(()=>[M(f($t),{class:"h-3.5 w-3.5"})]),_:1},8,["aria-label","onClick"])]))),128))])):W("",!0),y("div",ni,[M(J3,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c),size:e.size,placeholder:e.placeholder,class:i1(e.mono?"font-mono":void 0),"aria-label":`Add ${e.noun}`,onKeydown:cr(qe(r,["prevent"]),["enter"])},null,8,["modelValue","size","placeholder","class","aria-label","onKeydown"]),M(b1,{size:e.size,variant:"outline",class:"shrink-0",disabled:!o.value.trim(),onClick:r},{default:x(()=>[M(f(Ja),{class:"mr-1.5 h-3.5 w-3.5"}),i[1]||(i[1]=U(" Add ",-1))]),_:1},8,["size","disabled"])])],2))}}),li={class:"min-w-0 truncate"},oi=["aria-label"],d7=W1({__name:"Chip",props:{tone:{default:"default"},removable:{type:Boolean,default:!1},label:{},class:{}},emits:["remove"],setup(e){const t=e,n={default:"border-primary/30 bg-primary/10 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground",muted:"border-border bg-muted/60 text-muted-foreground"};return(l,o)=>(h(),w("span",{class:i1(f(w1)("inline-flex max-w-full items-center gap-1 rounded-full border py-0.5 pl-2.5 text-xs",e.removable?"pr-1":"pr-2.5",n[e.tone],t.class))},[K1(l.$slots,"mark"),y("span",li,[K1(l.$slots,"default")]),e.removable?(h(),w("button",{key:0,type:"button",class:"shrink-0 rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground","aria-label":e.label?`Remove ${e.label}`:"Remove",onClick:o[0]||(o[0]=r=>l.$emit("remove"))},[M(f($t),{class:"h-3 w-3"})],8,oi)):W("",!0)],2))}}),ri=["title"],si={class:"relative flex h-2 w-2 shrink-0"},ai={key:1,class:"sr-only"},We=W1({__name:"DotIndicator",props:{tone:{default:"neutral"},title:{},label:{},pulse:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"};return(o,r)=>(h(),w("span",{class:i1(f(w1)("inline-flex items-center gap-1.5 align-middle",t.class)),title:e.title},[y("span",si,[e.pulse?(h(),w("span",{key:0,class:i1(f(w1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):W("",!0),y("span",{class:i1(f(w1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),e.label?(h(),w("span",{key:0,class:i1(f(w1)("text-xs font-medium",l[e.tone]))},Q(e.label),3)):(h(),w("span",ai,Q(e.title),1))],10,ri))}}),f7={};function ii(e){let t=f7[e];if(t)return t;t=f7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);t.push(l)}for(let n=0;n=55296&&d<=57343?o+="���":o+=String.fromCharCode(d),r+=6;continue}}if((a&248)===240&&r+91114111?o+="����":(u-=65536,o+=String.fromCharCode(55296+(u>>10),56320+(u&1023))),r+=9;continue}}o+="�"}return o})}Ae.defaultChars=";/?:@&=+$,#";Ae.componentChars="";const A7={};function ci(e){let t=A7[e];if(t)return t;t=A7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);/^[0-9a-z]$/i.test(l)?t.push(l):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const l=ci(t);let o="";for(let r=0,s=e.length;r=55296&&a<=57343){if(a>=55296&&a<=56319&&r+1=56320&&i<=57343){o+=encodeURIComponent(e[r]+e[r+1]),r++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[r])}return o}c3.defaultChars=";/?:@&=+$,-_.!~*'()#";c3.componentChars="-_.!~*'()";function dt(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function H4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const ui=/^([a-z0-9.+-]+:)/i,di=/:[0-9]*$/,fi=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Ai=["<",">",'"',"`"," ","\r",` -`," "],hi=["{","}","|","\\","^","`"].concat(Ai),pi=["'"].concat(hi),h7=["%","/","?",";","#"].concat(pi),p7=["/","?","#"],mi=255,m7=/^[+a-z0-9A-Z_-]{0,63}$/,gi=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,g7={javascript:!0,"javascript:":!0},v7={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ft(e,t){if(e&&e instanceof H4)return e;const n=new H4;return n.parse(e,t),n}H4.prototype.parse=function(e,t){let n,l,o,r=e;if(r=r.trim(),!t&&e.split("#").length===1){const c=fi.exec(r);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let s=ui.exec(r);if(s&&(s=s[0],n=s.toLowerCase(),this.protocol=s,r=r.substr(s.length)),(t||s||r.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=r.substr(0,2)==="//",o&&!(s&&g7[s])&&(r=r.substr(2),this.slashes=!0)),!g7[s]&&(o||s&&!v7[s])){let c=-1;for(let m=0;m127?C+="x":C+=F[I];if(!C.match(m7)){const I=m.slice(0,k),v=m.slice(k+1),S=F.match(gi);S&&(I.push(S[1]),v.unshift(S[2])),v.length&&(r=v.join(".")+r),this.hostname=I.join(".");break}}}}this.hostname.length>mi&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=r.indexOf("#");a!==-1&&(this.hash=r.substr(a),r=r.slice(0,a));const i=r.indexOf("?");return i!==-1&&(this.search=r.substr(i),r=r.slice(0,i)),r&&(this.pathname=r),v7[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};H4.prototype.parseHost=function(e){let t=di.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const vi=Object.freeze(Object.defineProperty({__proto__:null,decode:Ae,encode:c3,format:dt,parse:ft},Symbol.toStringTag,{value:"Module"})),W0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,L0=/[\0-\x1F\x7F-\x9F]/,yi=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Wt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,P0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,T0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,bi=Object.freeze(Object.defineProperty({__proto__:null,Any:W0,Cc:L0,Cf:yi,P:Wt,S:P0,Z:T0},Symbol.toStringTag,{value:"Module"})),ki=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Ci(e){return e>=55296&&e<=57343||e>1114111?65533:ki.get(e)??e}function wi(e){const t=atob(e),n=t.length&-2,l=new Uint16Array(n/2);for(let o=0,r=0;o=J1.ZERO&&e<=J1.NINE}function _i(e){return e>=J1.UPPER_A&&e<=J1.UPPER_F||e>=J1.LOWER_A&&e<=J1.LOWER_F}function Ii(e){return e>=J1.UPPER_A&&e<=J1.UPPER_Z||e>=J1.LOWER_A&&e<=J1.LOWER_Z||At(e)}function Mi(e){return e===J1.EQUALS||Ii(e)}var s2;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(s2||(s2={}));var M3;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(M3||(M3={}));class Ei{constructor(t,n,l){$1(this,"decodeTree");$1(this,"emitCodePoint");$1(this,"errors");$1(this,"state",s2.EntityStart);$1(this,"consumed",1);$1(this,"result",0);$1(this,"treeIndex",0);$1(this,"excess",1);$1(this,"decodeMode",M3.Strict);$1(this,"runConsumed",0);this.decodeTree=t,this.emitCodePoint=n,this.errors=l}startEntity(t){this.decodeMode=t,this.state=s2.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,n){switch(this.state){case s2.EntityStart:return t.charCodeAt(n)===J1.NUM?(this.state=s2.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=s2.NamedEntity,this.stateNamedEntity(t,n));case s2.NumericStart:return this.stateNumericStart(t,n);case s2.NumericDecimal:return this.stateNumericDecimal(t,n);case s2.NumericHex:return this.stateNumericHex(t,n);case s2.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|y7)===J1.LOWER_X?(this.state=s2.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=s2.NumericDecimal,this.stateNumericDecimal(t,n))}stateNumericHex(t,n){for(;n>14;for(;n>7;if(this.runConsumed===0){const i=o&g2.JUMP_TABLE;if(t.charCodeAt(n)!==i)return this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}for(;this.runConsumed=t.length)return-1;const i=this.runConsumed-1,c=l[this.treeIndex+1+(i>>1)],d=i%2===0?c&255:c>>8&255;if(t.charCodeAt(n)!==d)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14}if(n>=t.length)break;const s=t.charCodeAt(n);if(s===J1.SEMI&&r!==0&&(o&g2.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);if(this.treeIndex=Zi(l,o,this.treeIndex+Math.max(1,r),s),this.treeIndex<0)return this.result===0||this.decodeMode===M3.Attribute&&(r===0||Mi(s))?0:this.emitNotTerminatedNamedEntity();if(o=l[this.treeIndex],r=(o&g2.VALUE_LENGTH)>>14,r!==0){if(s===J1.SEMI)return this.emitNamedEntityData(this.treeIndex,r,this.consumed+this.excess);this.decodeMode!==M3.Strict&&(o&g2.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}n++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var o;const{result:t,decodeTree:n}=this,l=(n[t]&g2.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,l,this.consumed),(o=this.errors)==null||o.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,l){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~(g2.VALUE_LENGTH|g2.FLAG13):o[t+1],l),n===3&&this.emitCodePoint(o[t+2],l),l}end(){var t;switch(this.state){case s2.NamedEntity:return this.result!==0&&(this.decodeMode!==M3.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case s2.NumericDecimal:return this.emitNumericEntity(0,2);case s2.NumericHex:return this.emitNumericEntity(0,3);case s2.NumericStart:return(t=this.errors)==null||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case s2.EntityStart:return 0}}}function Di(e){let t="";const n=new Ei(e,l=>t+=String.fromCodePoint(l));return function(o,r){let s=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(s,a),n.startEntity(r);const c=n.write(o,a+1);if(c<0){s=a+n.end();break}s=a+c,a=c===0?s+1:s}const i=t+o.slice(s);return t="",i}}function Zi(e,t,n,l){const o=(t&g2.BRANCH_LENGTH)>>7,r=t&g2.JUMP_TABLE;if(o===0)return r!==0&&l===r?n:-1;if(r){const c=l-r;return c<0||c>=o?-1:e[n+c]-1}const s=o+1>>1;let a=0,i=o-1;for(;a<=i;){const c=a+i>>>1,d=c>>1,A=e[n+d]>>(c&1)*8&255;if(Al)i=c-1;else return e[n+s+c]}return-1}const Fi=Di(xi);function H0(e){return Fi(e,M3.Strict)}var Bi=class{constructor(e={}){$1(this,"src_Any",W0.source);$1(this,"src_Cc",L0.source);$1(this,"src_Z",T0.source);$1(this,"src_P",Wt.source);$1(this,"src_ZPCc",[this.src_Z,this.src_P,this.src_Cc].join("|"));$1(this,"src_ZCc",[this.src_Z,this.src_Cc].join("|"));$1(this,"cache",{});$1(this,"opts",{maxLength:1e4,urlAuth:!1,schema_names:[]});this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const l=this.escapeRE(e),o=this.escapeRE(t),r=`(?:(?!${this.src_ZCc}|${l}|${o}).)`;let s=`${l}${r}{0,1000}${o}`;for(let a=2;a<=n;a++)s=`${l}(?:${r}|${s}){0,1000}${o}`;return s}get_text_separators(){var e;return(e=this.cache).text_separators??(e.text_separators=/[><\uff5c]/)}get_pseudo_letter(){var e;return(e=this.cache).src_pseudo_letter??(e.src_pseudo_letter=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`))}get_ipv4_addr(){var e;return(e=this.cache).src_ip4??(e.src_ip4=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])"))}get_ipv6_addr(){var n;const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return(n=this.cache).src_ip6_addr??(n.src_ip6_addr=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`))}get_ipv6_url_host(){var e;return(e=this.cache).src_ip6_host??(e.src_ip6_host=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`))}get_ipv6_mail_host(){var e;return(e=this.cache).src_ipv6_mail_host??(e.src_ipv6_mail_host=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`))}get_auth(){var e;return(e=this.cache).src_auth??(e.src_auth=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`))}get_port(){var e;return(e=this.cache).src_port??(e.src_port=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?"))}get_host_terminator(){var e;return(e=this.cache).src_host_terminator??(e.src_host_terminator=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`))}get_path_terminator(){var e;return(e=this.cache).src_path_terminator??(e.src_path_terminator=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`))}get_path(){var e;return(e=this.cache).src_path??(e.src_path=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`))}get_mail_name(){var e;return(e=this.cache).src_mail_name??(e.src_mail_name=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}"))}get_xn(){var e;return(e=this.cache).src_xn??(e.src_xn=new RegExp("xn--[a-z0-9\\-]{1,59}"))}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){var e;return(e=this.cache).src_domain_root??(e.src_domain_root=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`))}get_domain(){var e;return(e=this.cache).src_domain??(e.src_domain=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`))}get_url_host_port(){var e;return(e=this.cache).url_host_port??(e.url_host_port=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source))}get_fuzzy_url_host_port(){var e;return(e=this.cache).fuzzy_url_host_port??(e.fuzzy_url_host_port=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source))}get_mail_host(){var e;return(e=this.cache).src_mail_host??(e.src_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source))}get_fuzzy_mail_host(){var e;return(e=this.cache).src_fuzzy_mail_host??(e.src_fuzzy_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source))}get_path_extra(){var e;return(e=this.cache).src_path_extra??(e.src_path_extra=new RegExp(""))}get_fuzzy_mail_host_search(){var e;return(e=this.cache).mail_fuzzy_host_search??(e.mail_fuzzy_host_search=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig"))}get_fuzzy_link_search(){var e;return(e=this.cache).link_fuzzy_search??(e.link_fuzzy_search=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig"))}get_http_validator(){var e;return(e=this.cache).http_validator??(e.http_validator=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy"))}get_relative_proto_validator(){var e;return(e=this.cache).relative_proto_validator??(e.relative_proto_validator=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy"))}get_mail_name_validator(){var e;return(e=this.cache).mail_name_validator??(e.mail_name_validator=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`))}get_mailto_validator(){var e;return(e=this.cache).mailto_validator??(e.mailto_validator=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy"))}get_schema_names(){var e;return(e=this.cache).schema_names??(e.schema_names=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|")))}get_schema_search(){var e;return(e=this.cache).schema_search??(e.schema_search=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig"))}get_schema_at_start(){var e;return(e=this.cache).schema_at_start??(e.schema_at_start=new RegExp(`^${this.get_schema_search().source}`,"i"))}},Q5={validate:(e,t,n)=>{const l=n.re.get_http_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},Si={"http:":Q5,"https:":Q5,"ftp:":Q5,"//":{validate:function(e,t,n){const l=n.re.get_relative_proto_validator();l.lastIndex=t;const o=l.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const l=n.re.get_mailto_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Ri="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Qi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function Ni(){const e=Qi.split("|");return Ri.split("|").forEach(t=>{const n=t.indexOf(":"),l=t.slice(0,n);for(const o of t.slice(n+1))e.push(l+o)}),e}var Ki={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Ni(),urlAuth:!1,maxLength:1e4},b7=class{constructor(e,t,n,l){$1(this,"schema");$1(this,"index");$1(this,"lastIndex");$1(this,"raw");$1(this,"text");$1(this,"url");const o=e.slice(n,l);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=l,this.raw=o,this.text=o,this.url=o}},Gi=class{constructor(e={}){$1(this,"__opts__");$1(this,"__schemas__");$1(this,"re");const{rebuilder:t,...n}=e;this.__opts__={...Ki,...n},this.__schemas__={...Si},this.re=t||new Bi,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(l,o)=>o.normalize(l),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const l=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(l.lastIndex=0;(t=l.exec(e))!==null;){const r=e.slice(Math.max(0,t.index-65),t.index);if(o.test(r))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let l,o,r,s,a,i,c=!1,d=!1,u=!1,A=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(l=this.re.get_fuzzy_link_search(),l.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,r=this.re.get_mail_name_validator());;){const p=Math.max(A-1,0);if(o&&r&&!u&&(!a||a.index=A)break;o.lastIndex=A)break;l.lastIndexm.lastIndex))&&(m=s);let k;if(!c)for(;;){if(!i){n.lastIndexm.index)break;const C=i;i=void 0;const I=this.testSchemaAt(e,C.schema,C.lastIndex);if(I){k={schema:C.schema,index:C.index,lastIndex:C.lastIndex+I};break}}let D=k;if((!D||a&&(a.indexD.lastIndex))&&(D=a),(!D||s&&(s.indexD.lastIndex))&&(D=s),!D)break;D===a?a=void 0:D===s&&(s=void 0);const F=new b7(e,D.schema,D.index,D.lastIndex);F.schema?this.__schemas__[F.schema].normalize(F,this):this.normalize(F),t.push(F),A=D.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const l=new b7(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[l.schema].normalize(l,this),l}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const ie=2147483647,J2=36,Lt=1,t4=26,Oi=38,$i=700,Y0=72,V0=128,U0="-",Wi=/^xn--/,Li=/[^\0-\x7F]/,Pi=/[\x2E\u3002\uFF0E\uFF61]/g,Ti={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N5=J2-Lt,z2=Math.floor,K5=String.fromCharCode;function I3(e){throw new RangeError(Ti[e])}function Hi(e,t){const n=[];let l=e.length;for(;l--;)n[l]=t(e[l]);return n}function J0(e,t){const n=e.split("@");let l="";n.length>1&&(l=n[0]+"@",e=n[1]),e=e.replace(Pi,".");const o=e.split("."),r=Hi(o,t).join(".");return l+r}function z0(e){const t=[];let n=0;const l=e.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...e),Vi=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:J2},k7=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},j0=function(e,t,n){let l=0;for(e=n?z2(e/$i):e>>1,e+=z2(e/t);e>N5*t4>>1;l+=J2)e=z2(e/N5);return z2(l+(N5+1)*e/(e+Oi))},X0=function(e){const t=[],n=e.length;let l=0,o=V0,r=Y0,s=e.lastIndexOf(U0);s<0&&(s=0);for(let a=0;a=128&&I3("not-basic"),t.push(e.charCodeAt(a));for(let a=s>0?s+1:0;a=n&&I3("invalid-input");const A=Vi(e.charCodeAt(a++));A>=J2&&I3("invalid-input"),A>z2((ie-l)/d)&&I3("overflow"),l+=A*d;const p=u<=r?Lt:u>=r+t4?t4:u-r;if(Az2(ie/m)&&I3("overflow"),d*=m}const c=t.length+1;r=j0(l-i,c,i==0),z2(l/c)>ie-o&&I3("overflow"),o+=z2(l/c),l%=c,t.splice(l++,0,o)}return String.fromCodePoint(...t)},q0=function(e){const t=[];e=z0(e);const n=e.length;let l=V0,o=0,r=Y0;for(const i of e)i<128&&t.push(K5(i));const s=t.length;let a=s;for(s&&t.push(U0);a=l&&dz2((ie-o)/c)&&I3("overflow"),o+=(i-l)*c,l=i;for(const d of e)if(die&&I3("overflow"),d===l){let u=o;for(let A=J2;;A+=J2){const p=A<=r?Lt:A>=r+t4?t4:A-r;if(u{let n={};for(var l in e)w7(n,l,{get:e[l],enumerable:!0});return w7(n,Symbol.toStringTag,{value:"Module"}),n},zi=en({arrayReplaceAt:()=>ji,asciiTrim:()=>A5,callable:()=>tn,escapeHtml:()=>Z3,escapeRE:()=>ac,fromCodePoint:()=>n4,isMdAsciiPunct:()=>r4,isPunctChar:()=>ln,isPunctCharCode:()=>o4,isSpace:()=>H1,isValidEntityCode:()=>Pt,isWhiteSpace:()=>l4,lib:()=>ic,normalizeReference:()=>f5,unescapeAll:()=>he,unescapeMd:()=>tc});function tn(e){const t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function ji(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Pt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function n4(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var nn=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,Xi=new RegExp(`${nn.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),qi=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ec(e,t){if(t.charCodeAt(0)===35&&qi.test(t)){const l=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Pt(l)?n4(l):e}const n=H0(e);return n!==e?n:e}function tc(e){return e.indexOf("\\")<0?e:e.replace(nn,"$1")}function he(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(Xi,function(t,n,l){return n||ec(t,l)})}var nc=/[&<>"]/,lc=/[&<>"]/g,oc={"&":"&","<":"<",">":">",'"':"""};function rc(e){return oc[e]}function Z3(e){return nc.test(e)?e.replace(lc,rc):e}var sc=/[.?*+^$[\]\\(){}|-]/g;function ac(e){return e.replace(sc,"\\$&")}function H1(e){switch(e){case 9:case 32:return!0}return!1}function l4(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function ln(e){return Wt.test(e)||P0.test(e)}function o4(e){return ln(n4(e))}function r4(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function f5(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function x7(e){return e===32||e===9||e===10||e===13}function A5(e){let t=0;for(;t=t&&x7(e.charCodeAt(n));n--);return e.slice(t,n+1)}var ic={mdurl:vi,ucmicro:bi};function cc(e,t,n){let l,o,r,s;const a=e.posMax,i=e.pos;for(e.pos=t+1,l=1;e.pos32))return r;if(l===41){if(s===0)break;s--}o++}return t===o||s!==0||(r.str=he(e.slice(t,o)),r.pos=o,r.ok=!0),r}function dc(e,t,n,l){let o,r=t;const s={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(l)s.str=l.str,s.marker=l.marker;else{if(r>=n)return s;let a=e.charCodeAt(r);if(a!==34&&a!==39&&a!==40)return s;t++,r++,a===40&&(a=41),s.marker=a}for(;ruc,parseLinkLabel:()=>cc,parseLinkTitle:()=>dc});function s4(e){"@babel/helpers - typeof";return s4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s4(e)}function Ac(e,t){if(s4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var l=n.call(e,t);if(s4(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hc(e){var t=Ac(e,"string");return s4(t)=="symbol"?t:t+""}function A1(e,t,n){return(t=hc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U3=class{constructor(e,t,n){A1(this,"map",null),A1(this,"level",0),A1(this,"children",null),A1(this,"content",""),A1(this,"markup",""),A1(this,"info",""),A1(this,"block",!1),A1(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,l=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},a4=class{constructor(){A1(this,"__rules__",[]),A1(this,"__cache__",null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){const l=this.__find__(e);if(l===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[l].fn=t,this.__rules__[l].alt=n.alt||[],this.__cache__=null}before(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}after(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!0,n.push(l)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!1,n.push(l)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},q2={};q2.code_inline=function(e,t,n,l,o){const r=e[t];return`${Z3(r.content)}`};q2.code_block=function(e,t,n,l,o){const r=e[t];return`${Z3(e[t].content)} -`};q2.fence=function(e,t,n,l,o){const r=e[t],s=r.info?he(r.info).trim():"";let a="",i="";if(s){const d=s.split(/(\s+)/g);a=d[0],i=d.slice(2).join("")}let c;if(n.highlight?c=n.highlight(r.content,a,i)||Z3(r.content):c=Z3(r.content),c.indexOf("${c} -`}return`
${c}
-`};q2.image=function(e,t,n,l,o){const r=e[t];return r.attrs[r.attrIndex("alt")][1]=o.renderInlineAsText(r.children,n,l),o.renderToken(e,t,n)};q2.hardbreak=function(e,t,n){return n.xhtmlOut?`
+ */const Pt=X3("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),li=["aria-label"],oi=["aria-pressed","disabled","title","onClick"],si={key:1,class:"opacity-60"},be=L1({__name:"Tabs",props:{modelValue:{},tabs:{},label:{},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e){const t=e,n={sm:"gap-1 px-1.5 py-0.5 text-[10px]",default:"gap-1.5 px-2.5 py-1 text-xs",lg:"gap-2 px-3 py-1 text-sm"};return(l,o)=>(h(),C("div",{role:"group","aria-label":e.label,class:i1(f(x1)("inline-flex rounded-md border bg-card p-0.5",t.class))},[(h(!0),C(n1,null,w1(e.tabs,s=>(h(),C("button",{key:s.id,type:"button","aria-pressed":e.modelValue===s.id,disabled:s.disabled,title:s.title,class:i1(f(x1)("inline-flex shrink-0 items-center rounded font-medium transition-colors disabled:pointer-events-none disabled:opacity-40",n[e.size],e.modelValue===s.id?"bg-primary/15 text-primary":"text-muted-foreground hover:text-foreground")),onClick:r=>l.$emit("update:modelValue",s.id)},[s.icon?(h(),K(C2(s.icon),{key:0,class:i1(e.size==="sm"?"h-3 w-3":"h-3.5 w-3.5")},null,8,["class"])):L("",!0),U(" "+R(s.label)+" ",1),s.count?(h(),C("span",si,R(s.count),1)):L("",!0)],10,oi))),128))],10,li))}}),ri=["value","rows"],ft=L1({__name:"Textarea",props:{modelValue:{},rows:{default:3},size:{default:"default"},class:{},invalid:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e){const t=e;return(n,l)=>(h(),C("textarea",{value:e.modelValue,rows:e.rows,class:i1(f(x1)(f(Za)({size:e.size,invalid:e.invalid}),t.class)),onInput:l[0]||(l[0]=o=>n.$emit("update:modelValue",o.target.value))},null,42,ri))}}),ai={key:0,class:"space-y-1.5"},ii={class:"flex gap-2"},T0=L1({__name:"ListInput",props:{modelValue:{default:()=>[]},placeholder:{},noun:{default:"entry"},mono:{type:Boolean,default:!1},size:{default:"default"},class:{}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,l=t,o=j("");function s(){const a=o.value.trim();if(!a||n.modelValue.includes(a)){o.value="";return}l("update:modelValue",[...n.modelValue,a]),o.value=""}function r(a){l("update:modelValue",n.modelValue.filter(i=>i!==a))}return(a,i)=>(h(),C("div",{class:i1(f(x1)("space-y-2",n.class))},[e.modelValue.length?(h(),C("ul",ai,[(h(!0),C(n1,null,w1(e.modelValue,c=>(h(),C("li",{key:c,class:"flex items-center gap-2 rounded-md border bg-muted/40 py-1 pl-3 pr-1 text-sm"},[y("span",{class:i1(f(x1)("min-w-0 flex-1 break-all",e.mono&&"font-mono text-xs"))},R(c),3),I(b1,{variant:"ghost",size:"icon",class:"h-6 w-6 shrink-0","aria-label":`Remove ${c}`,onClick:u=>r(c)},{default:x(()=>[I(f(Pt),{class:"h-3.5 w-3.5"})]),_:1},8,["aria-label","onClick"])]))),128))])):L("",!0),y("div",ii,[I(J3,{modelValue:o.value,"onUpdate:modelValue":i[0]||(i[0]=c=>o.value=c),size:e.size,placeholder:e.placeholder,class:i1(e.mono?"font-mono":void 0),"aria-label":`Add ${e.noun}`,onKeydown:ps(qe(s,["prevent"]),["enter"])},null,8,["modelValue","size","placeholder","class","aria-label","onKeydown"]),I(b1,{size:e.size,variant:"outline",class:"shrink-0",disabled:!o.value.trim(),onClick:s},{default:x(()=>[I(f(ti),{class:"mr-1.5 h-3.5 w-3.5"}),i[1]||(i[1]=U(" Add ",-1))]),_:1},8,["size","disabled"])])],2))}}),ci={class:"min-w-0 truncate"},ui=["aria-label"],h7=L1({__name:"Chip",props:{tone:{default:"default"},removable:{type:Boolean,default:!1},label:{},class:{}},emits:["remove"],setup(e){const t=e,n={default:"border-primary/30 bg-primary/10 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground",muted:"border-border bg-muted/60 text-muted-foreground"};return(l,o)=>(h(),C("span",{class:i1(f(x1)("inline-flex max-w-full items-center gap-1 rounded-full border py-0.5 pl-2.5 text-xs",e.removable?"pr-1":"pr-2.5",n[e.tone],t.class))},[G1(l.$slots,"mark"),y("span",ci,[G1(l.$slots,"default")]),e.removable?(h(),C("button",{key:0,type:"button",class:"shrink-0 rounded-full p-0.5 text-muted-foreground transition-colors hover:bg-background/60 hover:text-foreground","aria-label":e.label?`Remove ${e.label}`:"Remove",onClick:o[0]||(o[0]=s=>l.$emit("remove"))},[I(f(Pt),{class:"h-3 w-3"})],8,ui)):L("",!0)],2))}}),di=["title"],fi={class:"relative flex h-2 w-2 shrink-0"},Ai={key:1,class:"sr-only"},We=L1({__name:"DotIndicator",props:{tone:{default:"neutral"},title:{},label:{},pulse:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"};return(o,s)=>(h(),C("span",{class:i1(f(x1)("inline-flex items-center gap-1.5 align-middle",t.class)),title:e.title},[y("span",fi,[e.pulse?(h(),C("span",{key:0,class:i1(f(x1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):L("",!0),y("span",{class:i1(f(x1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),e.label?(h(),C("span",{key:0,class:i1(f(x1)("text-xs font-medium",l[e.tone]))},R(e.label),3)):(h(),C("span",Ai,R(e.title),1))],10,di))}}),p7={};function hi(e){let t=p7[e];if(t)return t;t=p7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);t.push(l)}for(let n=0;n=55296&&u<=57343?o+="���":o+=String.fromCharCode(u),s+=6;continue}}if((a&248)===240&&s+91114111?o+="����":(d-=65536,o+=String.fromCharCode(55296+(d>>10),56320+(d&1023))),s+=9;continue}}o+="�"}return o})}he.defaultChars=";/?:@&=+$,#";he.componentChars="";const m7={};function pi(e){let t=m7[e];if(t)return t;t=m7[e]=[];for(let n=0;n<128;n++){const l=String.fromCharCode(n);/^[0-9a-z]$/i.test(l)?t.push(l):t.push("%"+("0"+n.toString(16).toUpperCase()).slice(-2))}for(let n=0;n"u"&&(n=!0);const l=pi(t);let o="";for(let s=0,r=e.length;s=55296&&a<=57343){if(a>=55296&&a<=56319&&s+1=56320&&i<=57343){o+=encodeURIComponent(e[s]+e[s+1]),s++;continue}}o+="%EF%BF%BD";continue}o+=encodeURIComponent(e[s])}return o}c3.defaultChars=";/?:@&=+$,-_.!~*'()#";c3.componentChars="-_.!~*'()";function At(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&e.hostname.indexOf(":")!==-1?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function V4(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}const mi=/^([a-z0-9.+-]+:)/i,gi=/:[0-9]*$/,vi=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,yi=["<",">",'"',"`"," ","\r",` +`," "],bi=["{","}","|","\\","^","`"].concat(yi),ki=["'"].concat(bi),g7=["%","/","?",";","#"].concat(ki),v7=["/","?","#"],Ci=255,y7=/^[+a-z0-9A-Z_-]{0,63}$/,wi=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,b7={javascript:!0,"javascript:":!0},k7={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function ht(e,t){if(e&&e instanceof V4)return e;const n=new V4;return n.parse(e,t),n}V4.prototype.parse=function(e,t){let n,l,o,s=e;if(s=s.trim(),!t&&e.split("#").length===1){const c=vi.exec(s);if(c)return this.pathname=c[1],c[2]&&(this.search=c[2]),this}let r=mi.exec(s);if(r&&(r=r[0],n=r.toLowerCase(),this.protocol=r,s=s.substr(r.length)),(t||r||s.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o=s.substr(0,2)==="//",o&&!(r&&b7[r])&&(s=s.substr(2),this.slashes=!0)),!b7[r]&&(o||r&&!k7[r])){let c=-1;for(let m=0;m127?k+="x":k+=Z[F];if(!k.match(y7)){const F=m.slice(0,v),_=m.slice(v+1),B=Z.match(wi);B&&(F.push(B[1]),_.unshift(B[2])),_.length&&(s=_.join(".")+s),this.hostname=F.join(".");break}}}}this.hostname.length>Ci&&(this.hostname=""),p&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const a=s.indexOf("#");a!==-1&&(this.hash=s.substr(a),s=s.slice(0,a));const i=s.indexOf("?");return i!==-1&&(this.search=s.substr(i),s=s.slice(0,i)),s&&(this.pathname=s),k7[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this};V4.prototype.parseHost=function(e){let t=gi.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};const xi=Object.freeze(Object.defineProperty({__proto__:null,decode:he,encode:c3,format:At,parse:ht},Symbol.toStringTag,{value:"Module"})),H0=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,V0=/[\0-\x1F\x7F-\x9F]/,_i=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,Tt=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B4E\u1B4F\u1B5A-\u1B60\u1B7D-\u1B7F\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDD6E\uDEAD\uDED0\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9\uDFD4\uDFD5\uDFD7\uDFD8]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09\uDFE1]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDD6D-\uDD6F\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD839\uDDFF|\uD83A[\uDD5E\uDD5F]/,Y0=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C1\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2429\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E5\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBD2\uFD40-\uFD4F\uFD90\uFD91\uFDC8-\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD803[\uDD8E\uDD8F\uDED1-\uDED8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDC00-\uDCEF\uDCFA-\uDCFC\uDD00-\uDEB3\uDEBA-\uDED0\uDEE0-\uDEF0\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED8\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0-\uDCBB\uDCC0\uDCC1\uDCD0-\uDCD8\uDD00-\uDE57\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF-\uDEF8\uDF00-\uDF92\uDF94-\uDFEF\uDFFA]/,U0=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Ii=Object.freeze(Object.defineProperty({__proto__:null,Any:H0,Cc:V0,Cf:_i,P:Tt,S:Y0,Z:U0},Symbol.toStringTag,{value:"Module"})),Mi=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function Ei(e){return e>=55296&&e<=57343||e>1114111?65533:Mi.get(e)??e}function Di(e){const t=atob(e),n=t.length&-2,l=new Uint16Array(n/2);for(let o=0,s=0;o=J1.ZERO&&e<=J1.NINE}function Fi(e){return e>=J1.UPPER_A&&e<=J1.UPPER_F||e>=J1.LOWER_A&&e<=J1.LOWER_F}function Bi(e){return e>=J1.UPPER_A&&e<=J1.UPPER_Z||e>=J1.LOWER_A&&e<=J1.LOWER_Z||pt(e)}function Si(e){return e===J1.EQUALS||Bi(e)}var r2;(function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"})(r2||(r2={}));var E3;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(E3||(E3={}));class Ri{constructor(t,n,l){W1(this,"decodeTree");W1(this,"emitCodePoint");W1(this,"errors");W1(this,"state",r2.EntityStart);W1(this,"consumed",1);W1(this,"result",0);W1(this,"treeIndex",0);W1(this,"excess",1);W1(this,"decodeMode",E3.Strict);W1(this,"runConsumed",0);this.decodeTree=t,this.emitCodePoint=n,this.errors=l}startEntity(t){this.decodeMode=t,this.state=r2.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1,this.runConsumed=0}write(t,n){switch(this.state){case r2.EntityStart:return t.charCodeAt(n)===J1.NUM?(this.state=r2.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=r2.NamedEntity,this.stateNamedEntity(t,n));case r2.NumericStart:return this.stateNumericStart(t,n);case r2.NumericDecimal:return this.stateNumericDecimal(t,n);case r2.NumericHex:return this.stateNumericHex(t,n);case r2.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|C7)===J1.LOWER_X?(this.state=r2.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=r2.NumericDecimal,this.stateNumericDecimal(t,n))}stateNumericHex(t,n){for(;n>14;for(;n>7;if(this.runConsumed===0){const i=o&y2.JUMP_TABLE;if(t.charCodeAt(n)!==i)return this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}for(;this.runConsumed=t.length)return-1;const i=this.runConsumed-1,c=l[this.treeIndex+1+(i>>1)],u=i%2===0?c&255:c>>8&255;if(t.charCodeAt(n)!==u)return this.runConsumed=0,this.result===0?0:this.emitNotTerminatedNamedEntity();n++,this.excess++,this.runConsumed++}this.runConsumed=0,this.treeIndex+=1+(a>>1),o=l[this.treeIndex],s=(o&y2.VALUE_LENGTH)>>14}if(n>=t.length)break;const r=t.charCodeAt(n);if(r===J1.SEMI&&s!==0&&(o&y2.FLAG13)!==0)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);if(this.treeIndex=Ni(l,o,this.treeIndex+Math.max(1,s),r),this.treeIndex<0)return this.result===0||this.decodeMode===E3.Attribute&&(s===0||Si(r))?0:this.emitNotTerminatedNamedEntity();if(o=l[this.treeIndex],s=(o&y2.VALUE_LENGTH)>>14,s!==0){if(r===J1.SEMI)return this.emitNamedEntityData(this.treeIndex,s,this.consumed+this.excess);this.decodeMode!==E3.Strict&&(o&y2.FLAG13)===0&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}n++,this.excess++}return-1}emitNotTerminatedNamedEntity(){var o;const{result:t,decodeTree:n}=this,l=(n[t]&y2.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,l,this.consumed),(o=this.errors)==null||o.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,l){const{decodeTree:o}=this;return this.emitCodePoint(n===1?o[t]&~(y2.VALUE_LENGTH|y2.FLAG13):o[t+1],l),n===3&&this.emitCodePoint(o[t+2],l),l}end(){var t;switch(this.state){case r2.NamedEntity:return this.result!==0&&(this.decodeMode!==E3.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case r2.NumericDecimal:return this.emitNumericEntity(0,2);case r2.NumericHex:return this.emitNumericEntity(0,3);case r2.NumericStart:return(t=this.errors)==null||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case r2.EntityStart:return 0}}}function Qi(e){let t="";const n=new Ri(e,l=>t+=String.fromCodePoint(l));return function(o,s){let r=0,a=0;for(;(a=o.indexOf("&",a))>=0;){t+=o.slice(r,a),n.startEntity(s);const c=n.write(o,a+1);if(c<0){r=a+n.end();break}r=a+c,a=c===0?r+1:r}const i=t+o.slice(r);return t="",i}}function Ni(e,t,n,l){const o=(t&y2.BRANCH_LENGTH)>>7,s=t&y2.JUMP_TABLE;if(o===0)return s!==0&&l===s?n:-1;if(s){const c=l-s;return c<0||c>=o?-1:e[n+c]-1}const r=o+1>>1;let a=0,i=o-1;for(;a<=i;){const c=a+i>>>1,u=c>>1,A=e[n+u]>>(c&1)*8&255;if(Al)i=c-1;else return e[n+r+c]}return-1}const Ki=Qi(Zi);function J0(e){return Ki(e,E3.Strict)}var Gi=class{constructor(e={}){W1(this,"src_Any",H0.source);W1(this,"src_Cc",V0.source);W1(this,"src_Z",U0.source);W1(this,"src_P",Tt.source);W1(this,"src_ZPCc",[this.src_Z,this.src_P,this.src_Cc].join("|"));W1(this,"src_ZCc",[this.src_Z,this.src_Cc].join("|"));W1(this,"cache",{});W1(this,"opts",{maxLength:1e4,urlAuth:!1,schema_names:[]});this.opts={...this.opts,...e}}set(e={}){return this.opts={...this.opts,...e},this.cache={},this}escapeRE(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}nestedPairRE(e,t,n=4){const l=this.escapeRE(e),o=this.escapeRE(t),s=`(?:(?!${this.src_ZCc}|${l}|${o}).)`;let r=`${l}${s}{0,1000}${o}`;for(let a=2;a<=n;a++)r=`${l}(?:${s}|${r}){0,1000}${o}`;return r}get_text_separators(){var e;return(e=this.cache).text_separators??(e.text_separators=/[><\uff5c]/)}get_pseudo_letter(){var e;return(e=this.cache).src_pseudo_letter??(e.src_pseudo_letter=new RegExp(`(?:(?!${this.get_text_separators().source}|${this.src_ZPCc})${this.src_Any})`))}get_ipv4_addr(){var e;return(e=this.cache).src_ip4??(e.src_ip4=new RegExp("(?:(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])[.]){3}(?:25[0-5]|2[0-4][0-9]|1[0-9]{2}|[1-9][0-9]|[0-9])"))}get_ipv6_addr(){var n;const e="[0-9A-Fa-f]{1,4}",t=`(?:(?:${e}:${e})|${this.get_ipv4_addr().source})`;return(n=this.cache).src_ip6_addr??(n.src_ip6_addr=new RegExp(`(?:(?:${e}:){6}${t}|::(?:${e}:){5}${t}|(?:${e})?::(?:${e}:){4}${t}|(?:(?:${e}:){0,1}${e})?::(?:${e}:){3}${t}|(?:(?:${e}:){0,2}${e})?::(?:${e}:){2}${t}|(?:(?:${e}:){0,3}${e})?::${e}:${t}|(?:(?:${e}:){0,4}${e})?::${t}|(?:(?:${e}:){0,5}${e})?::${e}|(?:(?:${e}:){0,6}${e})?::)`))}get_ipv6_url_host(){var e;return(e=this.cache).src_ip6_host??(e.src_ip6_host=new RegExp(`\\[${this.get_ipv6_addr().source}\\]`))}get_ipv6_mail_host(){var e;return(e=this.cache).src_ipv6_mail_host??(e.src_ipv6_mail_host=new RegExp(`\\[IPv6:${this.get_ipv6_addr().source}\\]`))}get_auth(){var e;return(e=this.cache).src_auth??(e.src_auth=new RegExp(`(?:(?:(?!${this.src_ZCc}|[@/\\[\\]()]).){1,50}@)?`))}get_port(){var e;return(e=this.cache).src_port??(e.src_port=new RegExp("(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?"))}get_host_terminator(){var e;return(e=this.cache).src_host_terminator??(e.src_host_terminator=new RegExp(`(?=$|${this.get_text_separators().source}|${this.src_ZPCc})(?!${this.opts["---"]?"-(?!--)|":"-|"}_|:\\d|\\.-|\\.(?!$|${this.src_ZPCc}))`))}get_path_terminator(){var e;return(e=this.cache).src_path_terminator??(e.src_path_terminator=new RegExp(`${this.src_ZPCc}|${this.get_text_separators().source}`))}get_path(){var e;return(e=this.cache).src_path??(e.src_path=new RegExp(`(?:[/?#](?:${this.nestedPairRE("[","]")}|${this.nestedPairRE("(",")")}|${this.nestedPairRE("{","}")}|\\"(?:(?!${this.src_ZCc}|["]).){1,100}\\"|\\'(?:(?!${this.src_ZCc}|[']).){1,100}\\'|\\'(?=${this.get_pseudo_letter().source}|[-])|\\.{2,20}[:]?[a-zA-Z0-9%/&]|\\.(?!${this.src_ZCc}|[.]|$)|`+(this.opts["---"]?"\\-(?!--(?:[^-]|$))(?:-{0,19})|":"\\-{1,20}|")+`,(?!${this.src_ZCc}|$)|;(?!${this.src_ZCc}|$)|\\!{1,20}(?!${this.src_ZCc}|[!]|$)|\\?(?!${this.src_ZCc}|[?]|$)|`+this.get_path_extra().source+`[\\\\/:%@#&=_~*]|(?!${this.get_path_terminator().source}).){1,${this.opts.maxLength}}|\\/)?`))}get_mail_name(){var e;return(e=this.cache).src_mail_name??(e.src_mail_name=new RegExp("[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9](?:[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9]|[.](?=[-!#$%&'*+/=?^_`{|}~a-zA-Z0-9])){0,63}"))}get_xn(){var e;return(e=this.cache).src_xn??(e.src_xn=new RegExp("xn--[a-z0-9\\-]{1,59}"))}get_tld(){if(this.cache.tld)return this.cache.tld;const e=[...new Set(this.opts.tlds||[])].sort().reverse().join("|");return this.cache.tld=new RegExp(`${e||"$#none#$"}|${this.get_xn().source}`),this.cache.tld}get_domain_root(){var e;return(e=this.cache).src_domain_root??(e.src_domain_root=new RegExp("(?:"+this.get_xn().source+`|${this.get_pseudo_letter().source}{1,63})`))}get_domain(){var e;return(e=this.cache).src_domain??(e.src_domain=new RegExp("(?:"+this.get_xn().source+`|(?:${this.get_pseudo_letter().source})|(?:${this.get_pseudo_letter().source}(?:-|${this.get_pseudo_letter().source}){0,61}${this.get_pseudo_letter().source}))`))}get_url_host_port(){var e;return(e=this.cache).url_host_port??(e.url_host_port=new RegExp("(?:"+this.get_ipv6_url_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,10}${this.get_domain().source}))`+this.get_port().source+this.get_host_terminator().source))}get_fuzzy_url_host_port(){var e;return(e=this.cache).fuzzy_url_host_port??(e.fuzzy_url_host_port=new RegExp("(?:"+(this.opts.fuzzyIP?this.get_ipv4_addr().source+"|":"")+`(?:(?:(?:${this.get_domain().source})\\.){1,10}(?:${this.get_tld().source})))`+this.get_host_terminator().source))}get_mail_host(){var e;return(e=this.cache).src_mail_host??(e.src_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})\\.){0,4}${this.get_domain().source}))`+this.get_host_terminator().source))}get_fuzzy_mail_host(){var e;return(e=this.cache).src_fuzzy_mail_host??(e.src_fuzzy_mail_host=new RegExp("(?:"+this.get_ipv6_mail_host().source+`|(?:(?:(?:${this.get_domain().source})[.]){1,4}${this.get_domain_root().source}))`+this.get_host_terminator().source))}get_path_extra(){var e;return(e=this.cache).src_path_extra??(e.src_path_extra=new RegExp(""))}get_fuzzy_mail_host_search(){var e;return(e=this.cache).mail_fuzzy_host_search??(e.mail_fuzzy_host_search=new RegExp(`@${this.get_fuzzy_mail_host().source}`,"ig"))}get_fuzzy_link_search(){var e;return(e=this.cache).link_fuzzy_search??(e.link_fuzzy_search=new RegExp(`(^|(?![.:/\\-_@])(?:[$+<=>^\`||]|${this.src_ZPCc}))(?:(?![$+<=>^\`||])${this.get_fuzzy_url_host_port().source}${this.get_path().source})`,"ig"))}get_http_validator(){var e;return(e=this.cache).http_validator??(e.http_validator=new RegExp("\\/\\/"+(this.opts.urlAuth?this.get_auth().source:"")+this.get_url_host_port().source+this.get_path().source,"iy"))}get_relative_proto_validator(){var e;return(e=this.cache).relative_proto_validator??(e.relative_proto_validator=new RegExp((this.opts.urlAuth?this.get_auth().source:"")+`(?:localhost|${this.get_ipv6_url_host().source}|(?:(?:${this.get_domain().source})[.]){1,10}${this.get_domain_root().source})`+this.get_port().source+this.get_host_terminator().source+this.get_path().source,"iy"))}get_mail_name_validator(){var e;return(e=this.cache).mail_name_validator??(e.mail_name_validator=new RegExp(`(?:^|${this.get_text_separators().source}|"|\\(|${this.src_ZCc})(${this.get_mail_name().source})$`))}get_mailto_validator(){var e;return(e=this.cache).mailto_validator??(e.mailto_validator=new RegExp(`${this.get_mail_name().source}@${this.get_mail_host().source}`,"iy"))}get_schema_names(){var e;return(e=this.cache).schema_names??(e.schema_names=new RegExp((this.opts.schema_names||[]).map(t=>this.escapeRE(t)).join("|")))}get_schema_search(){var e;return(e=this.cache).schema_search??(e.schema_search=new RegExp(`(^|(?!_)(?:[><|]|${this.src_ZPCc}))(${this.get_schema_names().source})`,"ig"))}get_schema_at_start(){var e;return(e=this.cache).schema_at_start??(e.schema_at_start=new RegExp(`^${this.get_schema_search().source}`,"i"))}},K5={validate:(e,t,n)=>{const l=n.re.get_http_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)},$i={"http:":K5,"https:":K5,"ftp:":K5,"//":{validate:function(e,t,n){const l=n.re.get_relative_proto_validator();l.lastIndex=t;const o=l.exec(e);return o?t>=3&&e[t-3]===":"||t>=3&&e[t-3]==="/"?0:o[0].length:0},normalize:(e,t)=>t.normalize(e)},"mailto:":{validate:function(e,t,n){const l=n.re.get_mailto_validator();l.lastIndex=t;const o=l.exec(e);return o?o[0].length:0},normalize:(e,t)=>t.normalize(e)}},Oi="a:cdefgilmnoqrstuwxz|b:abdefghijmnorstvwyz|c:acdfghiklmnoruvwxyz|d:ejkmoz|e:cegrstu|f:ijkmor|g:abdefghilmnpqrstuwy|h:kmnrtu|i:delmnoqrst|j:emop|k:eghimnprwyz|l:abcikrstuvy|m:acdeghklmnopqrstuvwxyz|n:acefgilopruz|o:m|p:aefghklmnrstwy|q:a|r:eosuw|s:abcdeghijklmnortuvxyz|t:cdfghjklmnortvwz|u:agksyz|v:aceginu|w:fs|y:et|z:amw",Wi="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф";function Li(){const e=Wi.split("|");return Oi.split("|").forEach(t=>{const n=t.indexOf(":"),l=t.slice(0,n);for(const o of t.slice(n+1))e.push(l+o)}),e}var Pi={fuzzyLink:!1,fuzzyEmail:!0,fuzzyIP:!1,"---":!1,tlds:Li(),urlAuth:!1,maxLength:1e4},w7=class{constructor(e,t,n,l){W1(this,"schema");W1(this,"index");W1(this,"lastIndex");W1(this,"raw");W1(this,"text");W1(this,"url");const o=e.slice(n,l);this.schema=t.toLowerCase(),this.index=n,this.lastIndex=l,this.raw=o,this.text=o,this.url=o}},Ti=class{constructor(e={}){W1(this,"__opts__");W1(this,"__schemas__");W1(this,"re");const{rebuilder:t,...n}=e;this.__opts__={...Pi,...n},this.__schemas__={...$i},this.re=t||new Gi,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)})}add(e,t=null){if(!t)delete this.__schemas__[e];else{const n={normalize:(l,o)=>o.normalize(l),...t};this.__schemas__[e]=n}return this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}set(e={}){return this.__opts__={...this.__opts__,...e},this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}test(e){if(!e.length)return!1;let t,n;for(n=this.re.get_schema_search(),n.lastIndex=0;(t=n.exec(e))!==null;)if(this.testSchemaAt(e,t[2],n.lastIndex))return!0;if(this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(n=this.re.get_fuzzy_link_search(),n.lastIndex=0,n.exec(e)!==null))return!0;if(this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&e.indexOf("@")>=0){const l=this.re.get_fuzzy_mail_host_search(),o=this.re.get_mail_name_validator();for(l.lastIndex=0;(t=l.exec(e))!==null;){const s=e.slice(Math.max(0,t.index-65),t.index);if(o.test(s))return!0}}return!1}testSchemaAt(e,t,n){return this.__schemas__[t.toLowerCase()]?this.__schemas__[t.toLowerCase()].validate(e.slice(0,n+this.__opts__.maxLength),n,this):0}match(e){const t=[],n=this.re.get_schema_search();let l,o,s,r,a,i,c=!1,u=!1,d=!1,A=0;if(!e.length)return null;for(n.lastIndex=0,this.__opts__.fuzzyLink&&this.__schemas__["http:"]&&(l=this.re.get_fuzzy_link_search(),l.lastIndex=0),this.__opts__.fuzzyEmail&&this.__schemas__["mailto:"]&&(o=this.re.get_fuzzy_mail_host_search(),o.lastIndex=0,s=this.re.get_mail_name_validator());;){const p=Math.max(A-1,0);if(o&&s&&!d&&(!a||a.index=A)break;o.lastIndex=A)break;l.lastIndexm.lastIndex))&&(m=r);let v;if(!c)for(;;){if(!i){n.lastIndexm.index)break;const k=i;i=void 0;const F=this.testSchemaAt(e,k.schema,k.lastIndex);if(F){v={schema:k.schema,index:k.index,lastIndex:k.lastIndex+F};break}}let M=v;if((!M||a&&(a.indexM.lastIndex))&&(M=a),(!M||r&&(r.indexM.lastIndex))&&(M=r),!M)break;M===a?a=void 0:M===r&&(r=void 0);const Z=new w7(e,M.schema,M.index,M.lastIndex);Z.schema?this.__schemas__[Z.schema].normalize(Z,this):this.normalize(Z),t.push(Z),A=M.lastIndex}return t.length?t:null}matchAtStart(e){if(!e.length)return null;const t=this.re.get_schema_at_start().exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);if(!n)return null;const l=new w7(e,t[2],t.index+t[1].length,t.index+t[0].length+n);return this.__schemas__[l.schema].normalize(l,this),l}tlds(e,t=!1){return e=Array.isArray(e)?e:[e],t?this.__opts__.tlds=this.__opts__.tlds.concat(e):this.__opts__.tlds=e,this.re.set({...this.__opts__,schema_names:Object.keys(this.__schemas__)}),this}normalize(e){e.schema||(e.url=`http://${e.url}`),e.schema==="mailto:"&&!/^mailto:/i.test(e.url)&&(e.url=`mailto:${e.url}`)}};const ce=2147483647,J2=36,Ht=1,t4=26,Hi=38,Vi=700,z0=72,j0=128,X0="-",Yi=/^xn--/,Ui=/[^\0-\x7F]/,Ji=/[\x2E\u3002\uFF0E\uFF61]/g,zi={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},G5=J2-Ht,z2=Math.floor,$5=String.fromCharCode;function M3(e){throw new RangeError(zi[e])}function ji(e,t){const n=[];let l=e.length;for(;l--;)n[l]=t(e[l]);return n}function q0(e,t){const n=e.split("@");let l="";n.length>1&&(l=n[0]+"@",e=n[1]),e=e.replace(Ji,".");const o=e.split("."),s=ji(o,t).join(".");return l+s}function en(e){const t=[];let n=0;const l=e.length;for(;n=55296&&o<=56319&&nString.fromCodePoint(...e),qi=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:J2},x7=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},tn=function(e,t,n){let l=0;for(e=n?z2(e/Vi):e>>1,e+=z2(e/t);e>G5*t4>>1;l+=J2)e=z2(e/G5);return z2(l+(G5+1)*e/(e+Hi))},nn=function(e){const t=[],n=e.length;let l=0,o=j0,s=z0,r=e.lastIndexOf(X0);r<0&&(r=0);for(let a=0;a=128&&M3("not-basic"),t.push(e.charCodeAt(a));for(let a=r>0?r+1:0;a=n&&M3("invalid-input");const A=qi(e.charCodeAt(a++));A>=J2&&M3("invalid-input"),A>z2((ce-l)/u)&&M3("overflow"),l+=A*u;const p=d<=s?Ht:d>=s+t4?t4:d-s;if(Az2(ce/m)&&M3("overflow"),u*=m}const c=t.length+1;s=tn(l-i,c,i==0),z2(l/c)>ce-o&&M3("overflow"),o+=z2(l/c),l%=c,t.splice(l++,0,o)}return String.fromCodePoint(...t)},ln=function(e){const t=[];e=en(e);const n=e.length;let l=j0,o=0,s=z0;for(const i of e)i<128&&t.push($5(i));const r=t.length;let a=r;for(r&&t.push(X0);a=l&&uz2((ce-o)/c)&&M3("overflow"),o+=(i-l)*c,l=i;for(const u of e)if(uce&&M3("overflow"),u===l){let d=o;for(let A=J2;;A+=J2){const p=A<=s?Ht:A>=s+t4?t4:A-s;if(d{let n={};for(var l in e)I7(n,l,{get:e[l],enumerable:!0});return I7(n,Symbol.toStringTag,{value:"Module"}),n},nc=on({arrayReplaceAt:()=>lc,asciiTrim:()=>p5,callable:()=>sn,escapeHtml:()=>F3,escapeRE:()=>Ac,fromCodePoint:()=>n4,isMdAsciiPunct:()=>s4,isPunctChar:()=>an,isPunctCharCode:()=>o4,isSpace:()=>H1,isValidEntityCode:()=>Vt,isWhiteSpace:()=>l4,lib:()=>hc,normalizeReference:()=>h5,unescapeAll:()=>pe,unescapeMd:()=>ac});function sn(e){const t=function(...n){return Reflect.construct(e,n,new.target&&new.target!==t?new.target:e)};return Object.defineProperty(t,"name",{value:e.name}),Object.setPrototypeOf(t,e),t.prototype=e.prototype,t}function lc(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Vt(e){return!(e>=55296&&e<=57343||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534||e>=0&&e<=8||e===11||e>=14&&e<=31||e>=127&&e<=159||e>1114111)}function n4(e){if(e>65535){e-=65536;const t=55296+(e>>10),n=56320+(e&1023);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var rn=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,oc=new RegExp(`${rn.source}|${/&([a-z#][a-z0-9]{1,31});/gi.source}`,"gi"),sc=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function rc(e,t){if(t.charCodeAt(0)===35&&sc.test(t)){const l=t[1].toLowerCase()==="x"?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Vt(l)?n4(l):e}const n=J0(e);return n!==e?n:e}function ac(e){return e.indexOf("\\")<0?e:e.replace(rn,"$1")}function pe(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(oc,function(t,n,l){return n||rc(t,l)})}var ic=/[&<>"]/,cc=/[&<>"]/g,uc={"&":"&","<":"<",">":">",'"':"""};function dc(e){return uc[e]}function F3(e){return ic.test(e)?e.replace(cc,dc):e}var fc=/[.?*+^$[\]\\(){}|-]/g;function Ac(e){return e.replace(fc,"\\$&")}function H1(e){switch(e){case 9:case 32:return!0}return!1}function l4(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function an(e){return Tt.test(e)||Y0.test(e)}function o4(e){return an(n4(e))}function s4(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function h5(e){return e=e.trim().replace(/\s+/g," "),e.toLowerCase().toUpperCase()}function M7(e){return e===32||e===9||e===10||e===13}function p5(e){let t=0;for(;t=t&&M7(e.charCodeAt(n));n--);return e.slice(t,n+1)}var hc={mdurl:xi,ucmicro:Ii};function pc(e,t,n){let l,o,s,r;const a=e.posMax,i=e.pos;for(e.pos=t+1,l=1;e.pos32))return s;if(l===41){if(r===0)break;r--}o++}return t===o||r!==0||(s.str=pe(e.slice(t,o)),s.pos=o,s.ok=!0),s}function gc(e,t,n,l){let o,s=t;const r={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(l)r.str=l.str,r.marker=l.marker;else{if(s>=n)return r;let a=e.charCodeAt(s);if(a!==34&&a!==39&&a!==40)return r;t++,s++,a===40&&(a=41),r.marker=a}for(;smc,parseLinkLabel:()=>pc,parseLinkTitle:()=>gc});function r4(e){"@babel/helpers - typeof";return r4=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r4(e)}function yc(e,t){if(r4(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var l=n.call(e,t);if(r4(l)!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function bc(e){var t=yc(e,"string");return r4(t)=="symbol"?t:t+""}function A1(e,t,n){return(t=bc(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var U3=class{constructor(e,t,n){A1(this,"map",null),A1(this,"level",0),A1(this,"children",null),A1(this,"content",""),A1(this,"markup",""),A1(this,"info",""),A1(this,"block",!1),A1(this,"hidden",!1),this.type=e,this.tag=t,this.attrs=null,this.nesting=n,this.meta=null}attrIndex(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,l=t.length;n=0&&(n=this.attrs[t][1]),n}attrJoin(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=`${this.attrs[n][1]} ${t}`}},a4=class{constructor(){A1(this,"__rules__",[]),A1(this,"__cache__",null)}__find__(e){for(let t=0;t{t.enabled&&t.alt.forEach(n=>{n&&e.add(n)})}),this.__cache__=Object.create(null),this.__cache__[""]=[],this.__rules__.forEach(t=>{t.enabled&&this.__cache__[""].push(t.fn)}),e.forEach(t=>{this.__cache__[t]=[],this.__rules__.forEach(n=>{n.enabled&&n.alt.indexOf(t)>=0&&this.__cache__[t].push(n.fn)})})}at(e,t,n={}){const l=this.__find__(e);if(l===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__[l].fn=t,this.__rules__[l].alt=n.alt||[],this.__cache__=null}before(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}after(e,t,n,l={}){const o=this.__find__(e);if(o===-1)throw new Error(`Parser rule not found: ${e}`);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:l.alt||[]}),this.__cache__=null}push(e,t,n={}){this.__rules__.push({name:e,enabled:!0,fn:t,alt:n.alt||[]}),this.__cache__=null}enable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!0,n.push(l)}),this.__cache__=null,n}enableOnly(e,t=!1){Array.isArray(e)||(e=[e]),this.__rules__.forEach(n=>{n.enabled=!1}),this.enable(e,t)}disable(e,t=!1){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(l=>{const o=this.__find__(l);if(o<0){if(t)return;throw new Error(`Rules manager: invalid rule name ${l}`)}this.__rules__[o].enabled=!1,n.push(l)}),this.__cache__=null,n}getRules(e){return this.__cache__||this.__compile__(),this.__cache__[e]||[]}},q2={};q2.code_inline=function(e,t,n,l,o){const s=e[t];return`${F3(s.content)}`};q2.code_block=function(e,t,n,l,o){const s=e[t];return`${F3(e[t].content)} +`};q2.fence=function(e,t,n,l,o){const s=e[t],r=s.info?pe(s.info).trim():"";let a="",i="";if(r){const u=r.split(/(\s+)/g);a=u[0],i=u.slice(2).join("")}let c;if(n.highlight?c=n.highlight(s.content,a,i)||F3(s.content):c=F3(s.content),c.indexOf("${c} +`}return`
${c}
+`};q2.image=function(e,t,n,l,o){const s=e[t];return s.attrs[s.attrIndex("alt")][1]=o.renderInlineAsText(s.children,n,l),o.renderToken(e,t,n)};q2.hardbreak=function(e,t,n){return n.xhtmlOut?`
`:`
`};q2.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?`
`:`
`:` -`};q2.text=function(e,t){return Z3(e[t].content)};q2.html_block=function(e,t){return e[t].content};q2.html_inline=function(e,t){return e[t].content};var on=class{constructor(){A1(this,"rules",Object.assign({},q2))}renderAttrs(e){let t,n,l;if(!e.attrs)return"";for(l="",t=0,n=e.attrs.length;t=0&&e[r].hidden&&e[r].nesting===0;)r--;l.block&&l.nesting!==-1&&r>=0&&e[r].hidden&&e[r].nesting===-1&&(o+=` -`),o+=(l.nesting===-1?" -`:">",o}renderInline(e,t,n){let l="";const o=this.rules;for(let r=0,s=e.length;r\s]/i.test(e)}function Cc(e){return/^<\/a\s*>/i.test(e)}function wc(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,l=t.length;n=0;a--){const i=o[a];if(i.type==="link_close"){for(a--;o[a].level!==i.level&&o[a].type!=="link_open";)a--;continue}if(i.type==="html_inline"&&(kc(i.content)&&s>0&&s--,Cc(i.content)&&s++),!(s>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const c=i.content;let d=e.md.linkify.match(c);const u=[];let A=i.level,p=0;d.length>0&&d[0].index===0&&a>0&&o[a-1].type==="text_special"&&(d=d.slice(1));for(let m=0;mp){const L=new e.Token("text","",0);L.content=c.slice(p,C),L.level=A,u.push(L)}const I=new e.Token("link_open","a",1);I.attrs=[["href",D]],I.level=A++,I.markup="linkify",I.info="auto",u.push(I);const v=new e.Token("text","",0);v.content=F,v.level=A,u.push(v);const S=new e.Token("link_close","a",-1);S.level=--A,S.markup="linkify",S.info="auto",u.push(S),p=d[m].lastIndex}if(p0){let a=o.length;for(const u of r)a+=u.nodes.length-1;const i=new Array(a);let c=0,d=0;r.reverse();for(let u=0;u=0;n--){const l=e[n];l.type==="text"&&!t&&(l.content=l.content.replace(_c,Mc)),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Dc(e){let t=0;for(let n=e.length-1;n>=0;n--){const l=e[n];l.type==="text"&&!t&&sn.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Zc(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(xc.test(e.tokens[t].content)&&Ec(e.tokens[t].children),sn.test(e.tokens[t].content)&&Dc(e.tokens[t].children))}var Fc=/['"]/,_7=/['"]/g,I7="’";function _4(e,t,n,l){e[t]||(e[t]=[]),e[t].push({pos:n,ch:l})}function Bc(e,t){let n="",l=0;t.sort((o,r)=>o.pos-r.pos);for(let o=0;o=0&&!(l[n].level<=a);n--);if(l.length=n+1,s.type!=="text")continue;const i=s.content;let c=0;const d=i.length;e:for(;c=0)k=i.charCodeAt(u.index-1);else for(n=r-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){k=e[n].content.charCodeAt(e[n].content.length-1);break}let D=32;if(c=48&&k<=57&&(p=A=!1),A&&p&&(A=F,p=C),!A&&!p){m&&_4(o,r,u.index,I7);continue}if(p)for(n=l.length-1;n>=0;n--){let S=l[n];if(l[n].level=0;t--)e.tokens[t].type!=="inline"||!Fc.test(e.tokens[t].content)||Sc(e.tokens[t].children,e)}function Qc(e){let t,n;const l=e.length;for(t=0;t0&&this.level++,this.tokens.push(l),l}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!H1(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,l){if(e>=t)return"";const o=new Array(t-e);for(let r=0,s=e;sn?o[r]=new Array(a-n+1).join(" ")+this.src.slice(c,d):o[r]=this.src.slice(c,d)}return o.join("")}},Kc=65536;function O5(e,t){const n=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];return e.src.slice(n,l)}function M7(e){const t=[],n=e.length;let l=0,o=e.charCodeAt(l),r=!1,s=0,a="";for(;ln)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let r=e.bMarks[o]+e.tShift[o];if(r>=e.eMarks[o])return!1;const s=e.src.charCodeAt(r++);if(s!==124&&s!==45&&s!==58||r>=e.eMarks[o])return!1;const a=e.src.charCodeAt(r++);if(a!==124&&a!==45&&a!==58&&!H1(a)||s===45&&H1(a))return!1;for(;r=4)return!1;c=M7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const u=c.length;if(u===0||u!==d.length)return!1;if(l)return!0;const A=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),k=[t,0];m.map=k;const D=e.push("thead_open","thead",1);D.map=[t,t+1];const F=e.push("tr_open","tr",1);F.map=[t,t+1];for(let v=0;v=4||(c=M7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),I+=u-c.length,I>Kc))break;if(o===t+2){const L=e.push("tbody_open","tbody",1);L.map=C=[t+2,0]}const S=e.push("tr_open","tr",1);S.map=[o,o+1];for(let L=0;L=4){l++,o=l;continue}break}e.line=o;const r=e.push("code_block","code",0);return r.content=e.getLines(t,o,4+e.blkIndent,!1)+` -`,r.map=[t,e.line],!0}function $c(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>r)return!1;const s=e.src.charCodeAt(o);if(s!==126&&s!==96)return!1;let a=o;o=e.skipChars(o,s);let i=o-a;if(i<3)return!1;const c=e.src.slice(a,o),d=e.src.slice(o,r);if(s===96&&d.indexOf(String.fromCharCode(s))>=0)return!1;if(l)return!0;let u=t,A=!1;for(;u++,!(u>=n||(o=a=e.bMarks[u]+e.tShift[u],r=e.eMarks[u],o=4)&&(o=e.skipChars(o,s),!(o-a=4||e.src.charCodeAt(o)!==62)return!1;if(l)return!0;const a=[],i=[],c=[],d=[],u=e.md.block.ruler.getRules("blockquote"),A=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m=r)break;if(e.src.charCodeAt(o++)===62&&!I){let S=e.sCount[m]+1,L,Z;e.src.charCodeAt(o)===32?(o++,S++,Z=!1,L=!0):e.src.charCodeAt(o)===9?(L=!0,(e.bsCount[m]+S)%4===3?(o++,S++,Z=!1):Z=!0):L=!1;let _=S;for(a.push(e.bMarks[m]),e.bMarks[m]=o;o=r,i.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+(L?1:0),c.push(e.sCount[m]),e.sCount[m]=_-S,d.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(p)break;let v=!1;for(let S=0,L=u.length;S";const F=[t,0];D.map=F,e.md.block.tokenize(e,t,m);const C=e.push("blockquote_close","blockquote",-1);C.markup=">",e.lineMax=s,e.parentType=A,F[1]=e.line;for(let I=0;I=4)return!1;let r=e.bMarks[t]+e.tShift[t];const s=e.src.charCodeAt(r++);if(s!==42&&s!==45&&s!==95)return!1;let a=1;for(;r=l)return-1;let r=e.src.charCodeAt(o++);if(r<48||r>57)return-1;for(;;){if(o>=l)return-1;if(r=e.src.charCodeAt(o++),r>=48&&r<=57){if(o-n>=10)return-1;continue}if(r===41||r===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]=e.blkIndent&&(d=!0);let u,A,p;if((p=D7(e,i))>=0){if(u=!0,s=e.bMarks[i]+e.tShift[i],A=Number(e.src.slice(s,p-1)),d&&A!==1)return!1}else if((p=E7(e,i))>=0)u=!1;else return!1;if(d&&e.skipSpaces(p)>=e.eMarks[i])return!1;if(l)return!0;const m=e.src.charCodeAt(p-1),k=e.tokens.length;u?(a=e.push("ordered_list_open","ol",1),A!==1&&(a.attrs=[["start",A]])):a=e.push("bullet_list_open","ul",1);const D=[i,0];a.map=D,a.markup=String.fromCharCode(m);let F=!1;const C=e.md.block.ruler.getRules("list"),I=e.parentType;for(e.parentType="list";i=o?Z=1:Z=S-v,Z>4&&(Z=1);const _=v+Z;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(m);const R=[i,0];a.map=R,u&&(a.info=e.src.slice(s,p-1));const B=e.tight,q=e.tShift[i],V=e.sCount[i],m1=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=_,e.tight=!0,e.tShift[i]=L-e.bMarks[i],e.sCount[i]=S,L>=o&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,i,n),(!e.tight||F)&&(c=!1),F=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=m1,e.tShift[i]=q,e.sCount[i]=V,e.tight=B,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(m),i=e.line,R[1]=i,i>=n||e.sCount[i]=4)break;let y1=!1;for(let l1=0,o1=C.length;l1=4||e.src.charCodeAt(o)!==91)return!1;function a(v){const S=e.lineMax;if(v>=S||e.isEmpty(v))return null;let L=!1;if(e.sCount[v]-e.blkIndent>3&&(L=!0),e.sCount[v]<0&&(L=!0),!L){const R=e.md.block.ruler.getRules("reference"),B=e.parentType;e.parentType="reference";let q=!1;for(let V=0,m1=R.length;V"u"&&(e.env.references={}),typeof e.env.references[F]>"u"&&(e.env.references[F]={title:D,href:u});const C=e.push("reference_definition","",0);C.map=[t,s],C.hidden=!0;const I=Object.create(null);return I.label=F,C.meta=I,e.line=s,!0}var Yc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],un=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,dn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Vc=new RegExp(`^(?:${un}|${dn}||<[?][\\s\\S]*?[?]>|]*>|)`),Uc=new RegExp(`^(?:${un}|${dn})`),G3=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${Uc.source}\\s*$`),/^$/,!1]];function Jc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let s=e.src.slice(o,r),a=0;for(;a=4)return!1;let s=e.src.charCodeAt(o);if(s!==35||o>=r)return!1;let a=1;for(s=e.src.charCodeAt(++o);s===35&&o6||oo&&H1(e.src.charCodeAt(i-1))&&(r=i),e.line=t+1;const c=e.push("heading_open",`h${a}`,1);c.markup="########".slice(0,a),c.map=[t,e.line];const d=e.push("inline","",0);d.content=A5(e.src.slice(o,r)),d.map=[t,e.line],d.children=[];const u=e.push("heading_close",`h${a}`,-1);return u.markup="########".slice(0,a),!0}function jc(e,t,n){const l=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let r=0,s,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(p=m))){r=s===61?1:2;break}}if(e.sCount[a]<0)continue;let A=!1;for(let p=0,m=l.length;p3||e.sCount[r]<0)continue;let c=!1;for(let d=0,u=l.length;d=n||e.sCount[s]=r){e.line=n;break}const i=e.line;let c=!1;for(let d=0;d=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),s=e.line,s0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(o),l}scanDelims(e,t){const n=this.posMax,l=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const m=this.src.charCodeAt(e-2);o=(m&64512)===55296?65536+(m-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let r=e;for(;r=65&&e<=90||e>=97&&e<=122}function n9(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function l9(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,l=e.posMax;if(n+3>l||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=n-Math.min(10,e.pending.length,n);let r=n;for(;r>o&&n9(e.src.charCodeAt(r-1));)r--;if(r===n||!t9(e.src.charCodeAt(r)))return!1;const s=n-r,a=e.md.linkify.matchAtStart(e.src.slice(r));if(!a)return!1;let i=a.url;if(i.length<=s)return!1;let c=i.length;for(;c>0&&i.charCodeAt(c-1)===42;)c--;c!==i.length&&(i=i.slice(0,c));const d=e.md.normalizeLink(i);if(!e.md.validateLink(d))return!1;if(!t){e.pending=e.pending.slice(0,-s);const u=e.push("link_open","a",1);u.attrs=[["href",d]],u.markup="linkify",u.info="auto";const A=e.push("text","",0);A.content=e.md.normalizeLinkText(i);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=i.length-s,!0}function o9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const l=e.pending.length-1,o=e.posMax;if(!t)if(l>=0&&e.pending.charCodeAt(l)===32)if(l>=1&&e.pending.charCodeAt(l-1)===32){let r=l-1;for(;r>=1&&e.pending.charCodeAt(r-1)===32;)r--;e.pending=e.pending.slice(0,r),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Tt[e.charCodeAt(0)]=1});function r9(e,t){let n=e.pos;const l=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=l))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&o<=56319&&n+1=56320&&a<=57343&&(r+=e.src[n+1],n++)}const s="\\"+r;if(!t){const a=e.push("text_special","",0);o<256&&Tt[o]!==0?a.content=r:a.content=s,a.markup=s,a.info="escape"}return e.pos=n+1,!0}function s9(e){const t={};let n=0;for(;(n=e.indexOf("`",n))!==-1;){const l=n;for(;e.charCodeAt(++n)===96;);t[n-l]=l}return t}function a9(e,t){var n;const l=e.pos;if(e.src.charCodeAt(l)!==96)return!1;const o=e.posMax;let r=l+1;for(;r=r){let i=r,c;for(;(c=e.src.indexOf("`",i))!==-1&&co)break;if(i-c===a){if(!t){const d=e.push("code_inline","code",0);d.markup=s;let u=e.src.slice(r,c).replace(/\n/g," ");u.startsWith(" ")&&u.endsWith(" ")&&/[^ ]/.test(u)&&(u=u.slice(1,-1)),d.content=u}return e.pos=i,!0}}}return t||(e.pending+=s),e.pos=r,!0}function i9(e,t){const n=e.pos,l=e.src.charCodeAt(n);if(t||l!==126)return!1;const o=e.scanDelims(e.pos,!0);let r=o.length;const s=String.fromCharCode(l);if(r<2)return!1;let a;r%2&&(a=e.push("text","",0),a.content=s,r--);for(let i=0;i=0;l--){const o=t[l];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const r=t[o.end],s=l>0&&t[l-1].end===o.end+1&&t[l-1].marker===o.marker&&t[l-1].token===o.token-1&&t[o.end+1].token===r.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token];i.type=s?"strong_open":"em_open",i.tag=s?"strong":"em",i.nesting=1,i.markup=s?a+a:a,i.content="";const c=e.tokens[r.token];c.type=s?"strong_close":"em_close",c.tag=s?"strong":"em",c.nesting=-1,c.markup=s?a+a:a,c.content="",s&&(e.tokens[t[l-1].token].content="",e.tokens[t[o.end+1].token].content="",l--)}}function d9(e){const t=e.tokens_meta,n=e.tokens_meta.length;F7(e,e.delimiters);for(let o=0;o=u)return!1;if(i=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(s=e.md.normalizeLink(o.str),e.md.validateLink(s)?m=o.pos:s="",i=m;m=u||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m=0?l=e.src.slice(i,m++):m=p+1):m=p+1,l||(l=e.src.slice(A,p)),l=f5(l),r=e.env.references[l],!r)return e.pos=d,!1;s=r.href,a=r.title}if(!t){e.pos=A,e.posMax=p;const k=e.push("link_open","a",1),D=[["href",s]];if(k.attrs=D,a&&D.push(["title",a]),l){const F=Object.create(null);F.label=l,k.meta=F}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=u,!0}function A9(e,t){let n,l,o,r,s,a,i,c,d="";const u=e.pos,A=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(r=m+1,r=A)return!1;for(c=r,a=e.md.helpers.parseLinkDestination(e.src,r,e.posMax),a.ok&&(d=e.md.normalizeLink(a.str),e.md.validateLink(d)?r=a.pos:d=""),c=r;r=A||e.src.charCodeAt(r)!==41)return e.pos=u,!1;r++}else{if(typeof e.env.references>"u")return!1;if(r=0?o=e.src.slice(c,r++):r=m+1):r=m+1,o||(o=e.src.slice(p,m)),o=f5(o),s=e.env.references[o],!s)return e.pos=u,!1;d=s.href,i=s.title}if(!t){l=e.src.slice(p,m);const k=[];e.md.inline.parse(l,e.md,e.env,k);const D=e.push("image","img",0),F=[["src",d],["alt",""]];if(D.attrs=F,D.children=k,D.content=l,i&&F.push(["title",i]),o){const C=Object.create(null);C.label=o,D.meta=C}}return e.pos=r,e.posMax=A,!0}var h9=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,p9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function m9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const l=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const s=e.src.charCodeAt(n);if(s===60)return!1;if(s===62)break}const r=e.src.slice(l+1,n);if(p9.test(r)){const s=e.md.normalizeLink(r);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}if(h9.test(r)){const s=e.md.normalizeLink(`mailto:${r}`);if(!e.md.validateLink(s))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",s]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(r);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=r.length+2,!0}return!1}function g9(e){return/^\s]/i.test(e)}function v9(e){return/^<\/a\s*>/i.test(e)}function y9(e){const t=e|32;return t>=97&&t<=122}function b9(e,t){if(!e.md.options.html)return!1;const n=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==60||l+2>=n)return!1;const o=e.src.charCodeAt(l+1);if(o!==33&&o!==63&&o!==47&&!y9(o))return!1;const r=e.src.slice(l).match(Vc);if(!r)return!1;if(!t){const s=e.push("html_inline","",0);s.content=r[0],g9(s.content)&&e.linkLevel++,v9(s.content)&&e.linkLevel--}return e.pos+=r[0].length,!0}var k9=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,C9=/^&([a-z][a-z0-9]{1,31});/i;function w9(e,t){const n=e.pos,l=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=l)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(k9);if(o){if(!t){const r=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),s=e.push("text_special","",0);s.content=Pt(r)?n4(r):n4(65533),s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(C9);if(o){const r=H0(o[0]);if(r!==o[0]){if(!t){const s=e.push("text_special","",0);s.content=r,s.markup=o[0],s.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function B7(e){const t={},n=e.length;if(!n)return;let l=0,o=-2;const r=[];for(let s=0;si;c-=r[c]+1){const u=e[c];if(u.marker===a.marker&&u.open&&u.end<0){let A=!1;if((u.close||a.open)&&(u.length+a.length)%3===0&&(u.length%3!==0||a.length%3!==0)&&(A=!0),!A){const p=c>0&&!e[c-1].open?r[c-1]+1:0;r[s]=s-c+p,r[c]=p,a.open=!1,u.end=s,u.close=!1,d=-1,o=-2;break}}}d!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=d)}}function x9(e){const t=e.tokens_meta,n=e.tokens_meta.length;B7(e.delimiters);for(let o=0;o0&&l++,o[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;s||e.pos++,r[t]=e.pos}tokenize(e){const t=this.ruler.getRules(""),n=t.length,l=e.posMax,o=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(s){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,l){const o=new this.State(e,t,n,l);this.tokenize(o);const r=this.ruler2.getRules(""),s=r.length;for(let a=0;a=0))try{t.hostname=C7.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=c3(t.auth)),t.hostname&&(t.hostname=c3(t.hostname)),t.pathname&&(t.pathname=c3(t.pathname)),t.search&&(t.search=c3(t.search)),t.hash&&(t.hash=c3(t.hash)),dt(t)}normalizeLinkText(e){const t=ft(e,!0);if(t.hostname&&(!t.protocol||S7.indexOf(t.protocol)>=0))try{t.hostname=C7.toUnicode(t.hostname)}catch{}return Ae(dt(t),Ae.defaultChars+"%")}constructor(...e){A1(this,"inline",new mn),A1(this,"block",new fn),A1(this,"core",new an),A1(this,"renderer",new on),A1(this,"linkify",new Gi),A1(this,"utils",zi),A1(this,"helpers",Object.assign({},fc));const[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){const o=e;if(t=I9[o],!t)throw new Error(`Wrong 'markdown-it' preset "${o}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});const n=t.components;if(n){var l;["core","block","inline"].forEach(r=>{var s;const a=(s=n[r])===null||s===void 0?void 0:s.rules;a&&this[r].ruler.enableOnly(a)});const o=(l=n.inline)===null||l===void 0?void 0:l.rules2;o&&this.inline.ruler2.enableOnly(o)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${l}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${l}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};A1(e3,"Token",U3);A1(e3,"Ruler",a4);A1(e3,"Renderer",on);A1(e3,"ParserCore",an);A1(e3,"StateCore",rn);A1(e3,"ParserBlock",fn);A1(e3,"StateBlock",cn);A1(e3,"ParserInline",mn);A1(e3,"StateInline",An);var D9=tn(e3);const Z9=["innerHTML"],R2=W1({__name:"Markdown",props:{source:{},class:{}},setup(e){const t=e,n=new D9({html:!1,linkify:!0,breaks:!1}),l=t1(()=>n.render(t.source??"")),o=["prose prose-sm max-w-none","prose-headings:text-foreground prose-headings:font-semibold","prose-p:text-muted-foreground prose-li:text-muted-foreground","prose-strong:text-foreground prose-em:text-foreground","prose-a:text-primary prose-a:no-underline hover:prose-a:underline","prose-code:text-foreground prose-code:before:content-none prose-code:after:content-none","prose-code:rounded prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5","prose-pre:bg-muted/50 prose-pre:text-foreground prose-pre:border","prose-blockquote:border-border prose-blockquote:text-muted-foreground","prose-hr:border-border prose-th:text-foreground prose-td:text-muted-foreground"].join(" ");return(r,s)=>(h(),w("div",{class:i1(f(w1)(f(o),t.class)),innerHTML:l.value},null,10,Z9))}}),F9={key:0,class:"space-y-2 border-b bg-muted/30 p-3"},B9={class:"px-3 py-2"},S9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},R9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},Q9={key:1,class:"p-4 text-sm text-muted-foreground"},N9={key:2,class:"overflow-x-auto"},K9={class:"w-full border-collapse font-mono text-xs leading-relaxed"},G9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},O9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},$9={class:"w-4 select-none pl-2 align-top text-muted-foreground"},W9={class:"whitespace-pre-wrap break-all py-0.5 pr-3 align-top"},L9={colspan:"4",class:"px-3 py-2"},P9={class:"px-3 py-2"},T9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},H9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},Y9=W1({__name:"Diff",props:{patch:{default:""},notes:{default:()=>[]},class:{}},setup(e){const t=e,n={neutral:"bg-card",info:"border-primary/30 bg-primary/5",success:"border-success/40 bg-success/5",warning:"border-warning/40 bg-warning/5",danger:"border-destructive/40 bg-destructive/5"};function l(d){return d.severity==="blocking"?n.danger:n[d.tone??"neutral"]??n.neutral}const o=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,r=t1(()=>{const d=[];let u=0,A=0,p=!1;for(const m of(t.patch??"").split(` -`)){const k=o.exec(m);if(k){u=Number(k[1]),A=Number(k[2]),p=!0,d.push({kind:"hunk",text:m,before:null,after:null});continue}p&&(m.startsWith("+")?d.push({kind:"added",text:m.slice(1),before:null,after:A++}):m.startsWith("-")?d.push({kind:"removed",text:m.slice(1),before:u++,after:null}):m.startsWith("\\")?d.push({kind:"meta",text:m,before:null,after:null}):d.push({kind:"kept",text:m.slice(1),before:u++,after:A++}))}return d}),s={added:"bg-success/10",removed:"bg-destructive/10",hunk:"bg-muted/60 text-muted-foreground",meta:"text-muted-foreground",kept:""},a={added:"+",removed:"-",kept:" ",hunk:"",meta:""},i=t1(()=>{const d=new Map;for(const u of t.notes??[])u.line&&d.set(u.line,[...d.get(u.line)??[],u]);return d}),c=t1(()=>(t.notes??[]).filter(d=>!d.line));return(d,u)=>(h(),w("div",{class:i1(f(w1)("overflow-hidden rounded-md border",t.class))},[c.value.length?(h(),w("div",F9,[(h(!0),w(n1,null,_1(c.value,(A,p)=>(h(),w("div",{key:p,class:i1(["rounded border text-sm",l(A)])},[y("div",B9,[A.from?(h(),G(We,{key:0,tone:A.severity==="blocking"?"danger":A.tone??"neutral",title:String(A.from),label:String(A.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):W("",!0),M(R2,{source:A.detail,class:"inline [&>p]:inline"},null,8,["source"])]),A.replacing?(h(),w("pre",S9,Q(A.replacing),1)):W("",!0),A.code?(h(),w("pre",R9,Q(A.code),1)):W("",!0)],2))),128))])):W("",!0),r.value.length?(h(),w("div",N9,[y("table",K9,[y("tbody",null,[(h(!0),w(n1,null,_1(r.value,(A,p)=>(h(),w(n1,{key:p},[y("tr",{class:i1(s[A.kind])},[y("td",G9,Q(A.before??""),1),y("td",O9,Q(A.after??""),1),y("td",$9,Q(a[A.kind]),1),y("td",W9,Q(A.text),1)],2),(h(!0),w(n1,null,_1(i.value.get(A.after??-1)??[],(m,k)=>(h(),w("tr",{key:`${p}-${k}`},[y("td",L9,[y("div",{class:i1(["rounded border font-sans text-sm",l(m)])},[y("div",P9,[m.from?(h(),G(We,{key:0,tone:m.severity==="blocking"?"danger":m.tone??"neutral",title:String(m.from),label:String(m.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):W("",!0),M(R2,{source:m.detail,class:"inline [&>p]:inline"},null,8,["source"])]),m.replacing?(h(),w("pre",T9,Q(m.replacing),1)):W("",!0),m.code?(h(),w("pre",H9,Q(m.code),1)):W("",!0)],2)])]))),128))],64))),128))])])])):(h(),w("div",Q9," Nothing to show for this one. It may be a file git stores whole rather than as lines. "))],2))}}),V9={class:"flex items-center gap-2.5"},U9=W1({__name:"Logo",props:{size:{default:"md"},showText:{type:Boolean,default:!0}},setup(e){const t={sm:"h-7 w-7 min-h-7 min-w-7",md:"h-8 w-8 min-h-8 min-w-8",lg:"h-10 w-10 min-h-10 min-w-10"},n={sm:"text-base",md:"text-lg",lg:"text-xl"};return(l,o)=>(h(),w("div",V9,[y("div",{class:i1([t[e.size],"relative flex-shrink-0"])},[...o[0]||(o[0]=[yo('',1)])],2),e.showText?(h(),w("span",{key:0,class:i1([n[e.size],"font-semibold tracking-tight"])},[...o[1]||(o[1]=[y("span",{class:"text-brand"},"Source",-1),y("span",{class:"text-brand"},"Ant",-1),y("span",{class:"text-muted-foreground font-normal ml-1"},"Memory",-1)])],2)):W("",!0)]))}}),J9={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Ht=W1({__name:"Modal",props:{open:{type:Boolean},class:{},maxWidth:{default:"lg"}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,o={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"};function r(s){s.key==="Escape"&&l("close")}return d2(()=>window.addEventListener("keydown",r)),ge(()=>window.removeEventListener("keydown",r)),(s,a)=>(h(),G(Zl,{to:"body"},[M(s0,{"enter-active-class":"transition duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:x(()=>[e.open?(h(),w("div",J9,[y("div",{class:"absolute inset-0 bg-background/80 backdrop-blur-sm",onClick:a[0]||(a[0]=i=>l("close"))}),M(z1,{class:i1(f(w1)("relative w-full max-h-[85vh] overflow-auto p-6 animate-fade-up",o[e.maxWidth],n.class))},{default:x(()=>[y("button",{class:"absolute top-4 right-4 p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",onClick:a[1]||(a[1]=i=>l("close"))},[M(f($t),{class:"h-4 w-4"})]),K1(s.$slots,"default")]),_:3},8,["class"])])):W("",!0)]),_:3})]))}}),z9=["role"],j9={class:"min-w-0 flex-1"},u2=W1({__name:"Notice",props:{tone:{default:"info"},icon:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={info:"border-border bg-muted/50 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground"},l={info:Ua,success:Va,warning:za,danger:Ya},o={info:"text-muted-foreground",success:"text-success",warning:"text-warning",danger:"text-destructive"},r=t1(()=>l[t.tone]);return(s,a)=>(h(),w("div",{class:i1(f(w1)("flex gap-3 rounded-md border px-4 py-3 text-sm",n[e.tone],t.class)),role:e.tone==="danger"?"alert":"status"},[e.icon?(h(),G(k2(r.value),{key:0,class:i1(f(w1)("mt-0.5 h-4 w-4 shrink-0",o[e.tone]))},null,8,["class"])):W("",!0),y("div",j9,[K1(s.$slots,"default")]),K1(s.$slots,"actions")],10,z9))}}),X9={class:"relative flex h-2 w-2 shrink-0"},q9={key:0,class:"text-muted-foreground tabular-nums"},gn=W1({__name:"Status",props:{tone:{default:"neutral"},label:{},count:{default:null},busy:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-foreground",success:"text-foreground",warning:"text-foreground",danger:"text-foreground"},o=t1(()=>t.count===null||t.count===void 0?null:t.count);return(r,s)=>(h(),w("span",{class:i1(f(w1)("inline-flex items-center gap-2 text-sm font-medium",l[e.tone],t.class)),role:"status"},[y("span",X9,[e.busy?(h(),w("span",{key:0,class:i1(f(w1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):W("",!0),y("span",{class:i1(f(w1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),y("span",null,Q(e.label),1),o.value!==null?(h(),w("span",q9,Q(o.value),1)):W("",!0)],2))}}),eu={key:0,class:"mb-3 flex justify-center text-muted-foreground"},tu={key:1,class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"},nu={key:2,class:"mt-4 flex flex-wrap items-center justify-center gap-2"},Le=W1({__name:"Empty",props:{title:{},compact:{type:Boolean,default:!1},class:{}},setup(e){const t=e;return(n,l)=>(h(),G(z1,{class:i1(f(w1)("px-6 text-center",t.compact?"py-8":"py-16",t.class))},{default:x(()=>[n.$slots.icon?(h(),w("div",eu,[K1(n.$slots,"icon")])):W("",!0),y("h2",{class:i1(f(w1)("font-semibold",t.compact?"text-base":"text-lg"))},Q(e.title),3),n.$slots.default?(h(),w("p",tu,[K1(n.$slots,"default")])):W("",!0),n.$slots.actions?(h(),w("div",nu,[K1(n.$slots,"actions")])):W("",!0)]),_:3},8,["class"]))}}),lu={class:"relative flex items-center justify-center"},ou={class:"animate-fade-in space-y-1.5"},vn=W1({__name:"Loading",props:{label:{default:"Working"},source:{},note:{},size:{default:"md"},fill:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},l={sm:"h-14 w-14",md:"h-20 w-20",lg:"h-24 w-24"},o={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},r={sm:"text-xs",md:"text-sm",lg:"text-base"},s={sm:"text-[11px]",md:"text-xs",lg:"text-sm"},a=t1(()=>t.size==="sm"?"py-8":"py-16"),i=t1(()=>t.source?`${t.label} from ${t.source}`:t.label);return(c,d)=>(h(),w("div",{class:i1(f(w1)("flex flex-col items-center justify-center gap-5 px-6 text-center",e.fill?"min-h-0 flex-1":a.value,t.class)),role:"status","aria-live":"polite"},[y("div",lu,[y("span",{class:i1(f(w1)("absolute animate-pulse rounded-full bg-primary/25 blur-2xl",l[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(w1)("rounded-full border-2 border-border/70",n[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(w1)("absolute animate-spin rounded-full border-2 border-transparent border-t-primary border-r-primary/50",n[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(w1)("absolute animate-pulse rounded-full bg-primary",o[e.size])),"aria-hidden":"true"},null,2)]),y("div",ou,[y("p",{class:i1(f(w1)("font-medium text-foreground",r[e.size]))},Q(i.value),3),e.note||c.$slots.default?(h(),w("p",{key:0,class:i1(f(w1)("mx-auto max-w-md text-muted-foreground",s[e.size]))},[K1(c.$slots,"default",{},()=>[U(Q(e.note),1)])],2)):W("",!0)])],2))}}),ru={key:0,class:"shrink-0"},su={class:"truncate"},yn=W1({__name:"Origin",props:{name:{},mono:{type:Boolean,default:!0},class:{}},setup(e){const t=e;return(n,l)=>(h(),w("span",{class:i1(f(w1)("inline-flex max-w-full items-center gap-1 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] text-muted-foreground",t.mono&&"font-mono",t.class))},[n.$slots.icon?(h(),w("span",ru,[K1(n.$slots,"icon")])):W("",!0),y("span",su,Q(e.name),1)],2))}}),au={class:"font-semibold"},iu={class:"mt-3"},O3=W1({__name:"Section",props:{title:{},tone:{default:"neutral"},count:{default:null},collapsible:{type:Boolean,default:!1},closed:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=j(!t.closed),l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"},o={neutral:"bg-muted text-muted-foreground",info:"bg-primary/10 text-primary",success:"bg-success/10 text-success",warning:"bg-warning/10 text-warning",danger:"bg-destructive/10 text-destructive"},r=t1(()=>t.collapsible?n.value:!0);return(s,a)=>(h(),w("section",{class:i1(f(w1)("py-4 first:pt-0 last:pb-0",t.class))},[(h(),G(k2(e.collapsible?"button":"div"),{type:e.collapsible?"button":void 0,"aria-expanded":e.collapsible?String(n.value):void 0,class:i1(f(w1)("flex w-full items-center gap-2 text-left",e.collapsible&&"cursor-pointer")),onClick:a[0]||(a[0]=i=>e.collapsible&&(n.value=!n.value))},{default:x(()=>[s.$slots.icon?(h(),w("span",{key:0,class:i1(f(w1)("shrink-0",l[e.tone]))},[K1(s.$slots,"icon")],2)):W("",!0),y("h2",au,Q(e.title),1),e.count!==null?(h(),w("span",{key:1,class:i1(f(w1)("rounded-full px-2 py-0.5 text-xs font-medium tabular-nums",o[e.tone]))},Q(e.count),3)):W("",!0),e.collapsible?(h(),G(f(Ha),{key:2,class:i1(f(w1)("ml-auto h-4 w-4 shrink-0 text-muted-foreground transition-transform",n.value&&"rotate-180"))},null,8,["class"])):W("",!0)]),_:3},8,["type","aria-expanded","class"])),Ke(y("div",iu,[K1(s.$slots,"default")],512),[[Wo,r.value]])],2))}});/** +`};q2.text=function(e,t){return F3(e[t].content)};q2.html_block=function(e,t){return e[t].content};q2.html_inline=function(e,t){return e[t].content};var cn=class{constructor(){A1(this,"rules",Object.assign({},q2))}renderAttrs(e){let t,n,l;if(!e.attrs)return"";for(l="",t=0,n=e.attrs.length;t=0&&e[s].hidden&&e[s].nesting===0;)s--;l.block&&l.nesting!==-1&&s>=0&&e[s].hidden&&e[s].nesting===-1&&(o+=` +`),o+=(l.nesting===-1?" +`:">",o}renderInline(e,t,n){let l="";const o=this.rules;for(let s=0,r=e.length;s\s]/i.test(e)}function Ec(e){return/^<\/a\s*>/i.test(e)}function Dc(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,l=t.length;n=0;a--){const i=o[a];if(i.type==="link_close"){for(a--;o[a].level!==i.level&&o[a].type!=="link_open";)a--;continue}if(i.type==="html_inline"&&(Mc(i.content)&&r>0&&r--,Ec(i.content)&&r++),!(r>0)&&i.type==="text"&&e.md.linkify.test(i.content)){const c=i.content;let u=e.md.linkify.match(c);const d=[];let A=i.level,p=0;u.length>0&&u[0].index===0&&a>0&&o[a-1].type==="text_special"&&(u=u.slice(1));for(let m=0;mp){const $=new e.Token("text","",0);$.content=c.slice(p,k),$.level=A,d.push($)}const F=new e.Token("link_open","a",1);F.attrs=[["href",M]],F.level=A++,F.markup="linkify",F.info="auto",d.push(F);const _=new e.Token("text","",0);_.content=Z,_.level=A,d.push(_);const B=new e.Token("link_close","a",-1);B.level=--A,B.markup="linkify",B.info="auto",d.push(B),p=u[m].lastIndex}if(p0){let a=o.length;for(const d of s)a+=d.nodes.length-1;const i=new Array(a);let c=0,u=0;s.reverse();for(let d=0;d=0;n--){const l=e[n];l.type==="text"&&!t&&(l.content=l.content.replace(Fc,Sc)),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Qc(e){let t=0;for(let n=e.length-1;n>=0;n--){const l=e[n];l.type==="text"&&!t&&dn.test(l.content)&&(l.content=l.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),l.type==="link_open"&&l.info==="auto"&&t--,l.type==="link_close"&&l.info==="auto"&&t++}}function Nc(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)e.tokens[t].type==="inline"&&(Zc.test(e.tokens[t].content)&&Rc(e.tokens[t].children),dn.test(e.tokens[t].content)&&Qc(e.tokens[t].children))}var Kc=/['"]/,E7=/['"]/g,D7="’";function _4(e,t,n,l){e[t]||(e[t]=[]),e[t].push({pos:n,ch:l})}function Gc(e,t){let n="",l=0;t.sort((o,s)=>o.pos-s.pos);for(let o=0;o=0&&!(l[n].level<=a);n--);if(l.length=n+1,r.type!=="text")continue;const i=r.content;let c=0;const u=i.length;e:for(;c=0)v=i.charCodeAt(d.index-1);else for(n=s-1;n>=0&&!(e[n].type==="softbreak"||e[n].type==="hardbreak");n--)if(e[n].content){v=e[n].content.charCodeAt(e[n].content.length-1);break}let M=32;if(c=48&&v<=57&&(p=A=!1),A&&p&&(A=Z,p=k),!A&&!p){m&&_4(o,s,d.index,D7);continue}if(p)for(n=l.length-1;n>=0;n--){let B=l[n];if(l[n].level=0;t--)e.tokens[t].type!=="inline"||!Kc.test(e.tokens[t].content)||$c(e.tokens[t].children,e)}function Wc(e){let t,n;const l=e.length;for(t=0;t0&&this.level++,this.tokens.push(l),l}isEmpty(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]}skipEmptyLines(e){for(let t=this.lineMax;et;)if(!H1(this.src.charCodeAt(--e)))return e+1;return e}skipChars(e,t){for(let n=this.src.length;en;)if(t!==this.src.charCodeAt(--e))return e+1;return e}getLines(e,t,n,l){if(e>=t)return"";const o=new Array(t-e);for(let s=0,r=e;rn?o[s]=new Array(a-n+1).join(" ")+this.src.slice(c,u):o[s]=this.src.slice(c,u)}return o.join("")}},Pc=65536;function W5(e,t){const n=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];return e.src.slice(n,l)}function Z7(e){const t=[],n=e.length;let l=0,o=e.charCodeAt(l),s=!1,r=0,a="";for(;ln)return!1;let o=t+1;if(e.sCount[o]=4)return!1;let s=e.bMarks[o]+e.tShift[o];if(s>=e.eMarks[o])return!1;const r=e.src.charCodeAt(s++);if(r!==124&&r!==45&&r!==58||s>=e.eMarks[o])return!1;const a=e.src.charCodeAt(s++);if(a!==124&&a!==45&&a!==58&&!H1(a)||r===45&&H1(a))return!1;for(;s=4)return!1;c=Z7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop();const d=c.length;if(d===0||d!==u.length)return!1;if(l)return!0;const A=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=e.push("table_open","table",1),v=[t,0];m.map=v;const M=e.push("thead_open","thead",1);M.map=[t,t+1];const Z=e.push("tr_open","tr",1);Z.map=[t,t+1];for(let _=0;_=4||(c=Z7(i),c.length&&c[0]===""&&c.shift(),c.length&&c[c.length-1]===""&&c.pop(),F+=d-c.length,F>Pc))break;if(o===t+2){const $=e.push("tbody_open","tbody",1);$.map=k=[t+2,0]}const B=e.push("tr_open","tr",1);B.map=[o,o+1];for(let $=0;$=4){l++,o=l;continue}break}e.line=o;const s=e.push("code_block","code",0);return s.content=e.getLines(t,o,4+e.blkIndent,!1)+` +`,s.map=[t,e.line],!0}function Vc(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||o+3>s)return!1;const r=e.src.charCodeAt(o);if(r!==126&&r!==96)return!1;let a=o;o=e.skipChars(o,r);let i=o-a;if(i<3)return!1;const c=e.src.slice(a,o),u=e.src.slice(o,s);if(r===96&&u.indexOf(String.fromCharCode(r))>=0)return!1;if(l)return!0;let d=t,A=!1;for(;d++,!(d>=n||(o=a=e.bMarks[d]+e.tShift[d],s=e.eMarks[d],o=4)&&(o=e.skipChars(o,r),!(o-a=4||e.src.charCodeAt(o)!==62)return!1;if(l)return!0;const a=[],i=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),A=e.parentType;e.parentType="blockquote";let p=!1,m;for(m=t;m=s)break;if(e.src.charCodeAt(o++)===62&&!F){let B=e.sCount[m]+1,$,D;e.src.charCodeAt(o)===32?(o++,B++,D=!1,$=!0):e.src.charCodeAt(o)===9?($=!0,(e.bsCount[m]+B)%4===3?(o++,B++,D=!1):D=!0):$=!1;let w=B;for(a.push(e.bMarks[m]),e.bMarks[m]=o;o=s,i.push(e.bsCount[m]),e.bsCount[m]=e.sCount[m]+1+($?1:0),c.push(e.sCount[m]),e.sCount[m]=w-B,u.push(e.tShift[m]),e.tShift[m]=o-e.bMarks[m];continue}if(p)break;let _=!1;for(let B=0,$=d.length;B<$;B++)if(d[B](e,m,n,!0)){_=!0;break}if(_){e.lineMax=m,e.blkIndent!==0&&(a.push(e.bMarks[m]),i.push(e.bsCount[m]),u.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]-=e.blkIndent);break}a.push(e.bMarks[m]),i.push(e.bsCount[m]),u.push(e.tShift[m]),c.push(e.sCount[m]),e.sCount[m]=-1}const v=e.blkIndent;e.blkIndent=0;const M=e.push("blockquote_open","blockquote",1);M.markup=">";const Z=[t,0];M.map=Z,e.md.block.tokenize(e,t,m);const k=e.push("blockquote_close","blockquote",-1);k.markup=">",e.lineMax=r,e.parentType=A,Z[1]=e.line;for(let F=0;F=4)return!1;let s=e.bMarks[t]+e.tShift[t];const r=e.src.charCodeAt(s++);if(r!==42&&r!==45&&r!==95)return!1;let a=1;for(;s=l)return-1;let s=e.src.charCodeAt(o++);if(s<48||s>57)return-1;for(;;){if(o>=l)return-1;if(s=e.src.charCodeAt(o++),s>=48&&s<=57){if(o-n>=10)return-1;continue}if(s===41||s===46)break;return-1}return o=4||e.listIndent>=0&&e.sCount[i]-e.listIndent>=4&&e.sCount[i]=e.blkIndent&&(u=!0);let d,A,p;if((p=B7(e,i))>=0){if(d=!0,r=e.bMarks[i]+e.tShift[i],A=Number(e.src.slice(r,p-1)),u&&A!==1)return!1}else if((p=F7(e,i))>=0)d=!1;else return!1;if(u&&e.skipSpaces(p)>=e.eMarks[i])return!1;if(l)return!0;const m=e.src.charCodeAt(p-1),v=e.tokens.length;d?(a=e.push("ordered_list_open","ol",1),A!==1&&(a.attrs=[["start",A]])):a=e.push("bullet_list_open","ul",1);const M=[i,0];a.map=M,a.markup=String.fromCharCode(m);let Z=!1;const k=e.md.block.ruler.getRules("list"),F=e.parentType;for(e.parentType="list";i=o?D=1:D=B-_,D>4&&(D=1);const w=_+D;a=e.push("list_item_open","li",1),a.markup=String.fromCharCode(m);const Q=[i,0];a.map=Q,d&&(a.info=e.src.slice(r,p-1));const S=e.tight,q=e.tShift[i],Y=e.sCount[i],g1=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=w,e.tight=!0,e.tShift[i]=$-e.bMarks[i],e.sCount[i]=B,$>=o&&e.isEmpty(i+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,i,n),(!e.tight||Z)&&(c=!1),Z=e.line-i>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=g1,e.tShift[i]=q,e.sCount[i]=Y,e.tight=S,a=e.push("list_item_close","li",-1),a.markup=String.fromCharCode(m),i=e.line,Q[1]=i,i>=n||e.sCount[i]=4)break;let y1=!1;for(let l1=0,o1=k.length;l1=4||e.src.charCodeAt(o)!==91)return!1;function a(_){const B=e.lineMax;if(_>=B||e.isEmpty(_))return null;let $=!1;if(e.sCount[_]-e.blkIndent>3&&($=!0),e.sCount[_]<0&&($=!0),!$){const Q=e.md.block.ruler.getRules("reference"),S=e.parentType;e.parentType="reference";let q=!1;for(let Y=0,g1=Q.length;Y"u"&&(e.env.references={}),typeof e.env.references[Z]>"u"&&(e.env.references[Z]={title:M,href:d});const k=e.push("reference_definition","",0);k.map=[t,r],k.hidden=!0;const F=Object.create(null);return F.label=Z,k.meta=F,e.line=r,!0}var Xc=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],hn=`<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^"'=<>\`\\x00-\\x20]+|'[^']*'|"[^"]*"))?)*\\s*\\/?>`,pn="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",qc=new RegExp(`^(?:${hn}|${pn}||<[?][\\s\\S]*?[?]>|]*>|)`),e9=new RegExp(`^(?:${hn}|${pn})`),G3=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^/,!0],[/^<\?/,/\?>/,!0],[/^/,!0],[/^/,!0],[new RegExp(`^|$))`,"i"),/^$/,!0],[new RegExp(`${e9.source}\\s*$`),/^$/,!1]];function t9(e,t,n,l){let o=e.bMarks[t]+e.tShift[t],s=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4||!e.md.options.html||e.src.charCodeAt(o)!==60)return!1;let r=e.src.slice(o,s),a=0;for(;a=4)return!1;let r=e.src.charCodeAt(o);if(r!==35||o>=s)return!1;let a=1;for(r=e.src.charCodeAt(++o);r===35&&o6||oo&&H1(e.src.charCodeAt(i-1))&&(s=i),e.line=t+1;const c=e.push("heading_open",`h${a}`,1);c.markup="########".slice(0,a),c.map=[t,e.line];const u=e.push("inline","",0);u.content=p5(e.src.slice(o,s)),u.map=[t,e.line],u.children=[];const d=e.push("heading_close",`h${a}`,-1);return d.markup="########".slice(0,a),!0}function l9(e,t,n){const l=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let s=0,r,a=t+1;for(;a3)continue;if(e.sCount[a]>=e.blkIndent){let p=e.bMarks[a]+e.tShift[a];const m=e.eMarks[a];if(p=m))){s=r===61?1:2;break}}if(e.sCount[a]<0)continue;let A=!1;for(let p=0,m=l.length;p3||e.sCount[s]<0)continue;let c=!1;for(let u=0,d=l.length;u=n||e.sCount[r]=s){e.line=n;break}const i=e.line;let c=!1;for(let u=0;u=e.line)throw new Error("block rule didn't increment state.line");break}if(!c)throw new Error("none of the block rules matched");e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),r=e.line,r0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(l),this.tokens_meta.push(o),l}scanDelims(e,t){const n=this.posMax,l=this.src.charCodeAt(e);let o;if(e===0)o=32;else if(e===1)o=this.src.charCodeAt(0),(o&63488)===55296&&(o=65533);else if(o=this.src.charCodeAt(e-1),(o&64512)===56320){const m=this.src.charCodeAt(e-2);o=(m&64512)===55296?65536+(m-55296<<10)+(o-56320):65533}else(o&64512)===55296&&(o=65533);let s=e;for(;s=65&&e<=90||e>=97&&e<=122}function i9(e){return e>=65&&e<=90||e>=97&&e<=122||e>=48&&e<=57||e===43||e===45||e===46}function c9(e,t){if(!e.md.options.linkify||e.linkLevel>0)return!1;const n=e.pos,l=e.posMax;if(n+3>l||e.src.charCodeAt(n)!==58||e.src.charCodeAt(n+1)!==47||e.src.charCodeAt(n+2)!==47)return!1;const o=n-Math.min(10,e.pending.length,n);let s=n;for(;s>o&&i9(e.src.charCodeAt(s-1));)s--;if(s===n||!a9(e.src.charCodeAt(s)))return!1;const r=n-s,a=e.md.linkify.matchAtStart(e.src.slice(s));if(!a)return!1;let i=a.url;if(i.length<=r)return!1;let c=i.length;for(;c>0&&i.charCodeAt(c-1)===42;)c--;c!==i.length&&(i=i.slice(0,c));const u=e.md.normalizeLink(i);if(!e.md.validateLink(u))return!1;if(!t){e.pending=e.pending.slice(0,-r);const d=e.push("link_open","a",1);d.attrs=[["href",u]],d.markup="linkify",d.info="auto";const A=e.push("text","",0);A.content=e.md.normalizeLinkText(i);const p=e.push("link_close","a",-1);p.markup="linkify",p.info="auto"}return e.pos+=i.length-r,!0}function u9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==10)return!1;const l=e.pending.length-1,o=e.posMax;if(!t)if(l>=0&&e.pending.charCodeAt(l)===32)if(l>=1&&e.pending.charCodeAt(l-1)===32){let s=l-1;for(;s>=1&&e.pending.charCodeAt(s-1)===32;)s--;e.pending=e.pending.slice(0,s),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n?@[]^_`{|}~-".split("").forEach(function(e){Yt[e.charCodeAt(0)]=1});function d9(e,t){let n=e.pos;const l=e.posMax;if(e.src.charCodeAt(n)!==92||(n++,n>=l))return!1;let o=e.src.charCodeAt(n);if(o===10){for(t||e.push("hardbreak","br",0),n++;n=55296&&o<=56319&&n+1=56320&&a<=57343&&(s+=e.src[n+1],n++)}const r="\\"+s;if(!t){const a=e.push("text_special","",0);o<256&&Yt[o]!==0?a.content=s:a.content=r,a.markup=r,a.info="escape"}return e.pos=n+1,!0}function f9(e){const t={};let n=0;for(;(n=e.indexOf("`",n))!==-1;){const l=n;for(;e.charCodeAt(++n)===96;);t[n-l]=l}return t}function A9(e,t){var n;const l=e.pos;if(e.src.charCodeAt(l)!==96)return!1;const o=e.posMax;let s=l+1;for(;s=s){let i=s,c;for(;(c=e.src.indexOf("`",i))!==-1&&co)break;if(i-c===a){if(!t){const u=e.push("code_inline","code",0);u.markup=r;let d=e.src.slice(s,c).replace(/\n/g," ");d.startsWith(" ")&&d.endsWith(" ")&&/[^ ]/.test(d)&&(d=d.slice(1,-1)),u.content=d}return e.pos=i,!0}}}return t||(e.pending+=r),e.pos=s,!0}function h9(e,t){const n=e.pos,l=e.src.charCodeAt(n);if(t||l!==126)return!1;const o=e.scanDelims(e.pos,!0);let s=o.length;const r=String.fromCharCode(l);if(s<2)return!1;let a;s%2&&(a=e.push("text","",0),a.content=r,s--);for(let i=0;i=0;l--){const o=t[l];if(o.marker!==95&&o.marker!==42||o.end===-1)continue;const s=t[o.end],r=l>0&&t[l-1].end===o.end+1&&t[l-1].marker===o.marker&&t[l-1].token===o.token-1&&t[o.end+1].token===s.token+1,a=String.fromCharCode(o.marker),i=e.tokens[o.token];i.type=r?"strong_open":"em_open",i.tag=r?"strong":"em",i.nesting=1,i.markup=r?a+a:a,i.content="";const c=e.tokens[s.token];c.type=r?"strong_close":"em_close",c.tag=r?"strong":"em",c.nesting=-1,c.markup=r?a+a:a,c.content="",r&&(e.tokens[t[l-1].token].content="",e.tokens[t[o.end+1].token].content="",l--)}}function g9(e){const t=e.tokens_meta,n=e.tokens_meta.length;R7(e,e.delimiters);for(let o=0;o=d)return!1;if(i=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(r=e.md.normalizeLink(o.str),e.md.validateLink(r)?m=o.pos:r="",i=m;m=d||e.src.charCodeAt(m)!==41)&&(c=!0),m++}if(c){if(typeof e.env.references>"u")return!1;if(m=0?l=e.src.slice(i,m++):m=p+1):m=p+1,l||(l=e.src.slice(A,p)),l=h5(l),s=e.env.references[l],!s)return e.pos=u,!1;r=s.href,a=s.title}if(!t){e.pos=A,e.posMax=p;const v=e.push("link_open","a",1),M=[["href",r]];if(v.attrs=M,a&&M.push(["title",a]),l){const Z=Object.create(null);Z.label=l,v.meta=Z}e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}function y9(e,t){let n,l,o,s,r,a,i,c,u="";const d=e.pos,A=e.posMax;if(e.src.charCodeAt(e.pos)!==33||e.src.charCodeAt(e.pos+1)!==91)return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(s=m+1,s=A)return!1;for(c=s,a=e.md.helpers.parseLinkDestination(e.src,s,e.posMax),a.ok&&(u=e.md.normalizeLink(a.str),e.md.validateLink(u)?s=a.pos:u=""),c=s;s=A||e.src.charCodeAt(s)!==41)return e.pos=d,!1;s++}else{if(typeof e.env.references>"u")return!1;if(s=0?o=e.src.slice(c,s++):s=m+1):s=m+1,o||(o=e.src.slice(p,m)),o=h5(o),r=e.env.references[o],!r)return e.pos=d,!1;u=r.href,i=r.title}if(!t){l=e.src.slice(p,m);const v=[];e.md.inline.parse(l,e.md,e.env,v);const M=e.push("image","img",0),Z=[["src",u],["alt",""]];if(M.attrs=Z,M.children=v,M.content=l,i&&Z.push(["title",i]),o){const k=Object.create(null);k.label=o,M.meta=k}}return e.pos=s,e.posMax=A,!0}var b9=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,k9=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;function C9(e,t){let n=e.pos;if(e.src.charCodeAt(n)!==60)return!1;const l=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const r=e.src.charCodeAt(n);if(r===60)return!1;if(r===62)break}const s=e.src.slice(l+1,n);if(k9.test(s)){const r=e.md.normalizeLink(s);if(!e.md.validateLink(r))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",r]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(s);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}if(b9.test(s)){const r=e.md.normalizeLink(`mailto:${s}`);if(!e.md.validateLink(r))return!1;if(!t){const a=e.push("link_open","a",1);a.attrs=[["href",r]],a.markup="autolink",a.info="auto";const i=e.push("text","",0);i.content=e.md.normalizeLinkText(s);const c=e.push("link_close","a",-1);c.markup="autolink",c.info="auto"}return e.pos+=s.length+2,!0}return!1}function w9(e){return/^\s]/i.test(e)}function x9(e){return/^<\/a\s*>/i.test(e)}function _9(e){const t=e|32;return t>=97&&t<=122}function I9(e,t){if(!e.md.options.html)return!1;const n=e.posMax,l=e.pos;if(e.src.charCodeAt(l)!==60||l+2>=n)return!1;const o=e.src.charCodeAt(l+1);if(o!==33&&o!==63&&o!==47&&!_9(o))return!1;const s=e.src.slice(l).match(qc);if(!s)return!1;if(!t){const r=e.push("html_inline","",0);r.content=s[0],w9(r.content)&&e.linkLevel++,x9(r.content)&&e.linkLevel--}return e.pos+=s[0].length,!0}var M9=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,E9=/^&([a-z][a-z0-9]{1,31});/i;function D9(e,t){const n=e.pos,l=e.posMax;if(e.src.charCodeAt(n)!==38||n+1>=l)return!1;if(e.src.charCodeAt(n+1)===35){const o=e.src.slice(n).match(M9);if(o){if(!t){const s=o[1][0].toLowerCase()==="x"?parseInt(o[1].slice(1),16):parseInt(o[1],10),r=e.push("text_special","",0);r.content=Vt(s)?n4(s):n4(65533),r.markup=o[0],r.info="entity"}return e.pos+=o[0].length,!0}}else{const o=e.src.slice(n).match(E9);if(o){const s=J0(o[0]);if(s!==o[0]){if(!t){const r=e.push("text_special","",0);r.content=s,r.markup=o[0],r.info="entity"}return e.pos+=o[0].length,!0}}}return!1}function Q7(e){const t={},n=e.length;if(!n)return;let l=0,o=-2;const s=[];for(let r=0;ri;c-=s[c]+1){const d=e[c];if(d.marker===a.marker&&d.open&&d.end<0){let A=!1;if((d.close||a.open)&&(d.length+a.length)%3===0&&(d.length%3!==0||a.length%3!==0)&&(A=!0),!A){const p=c>0&&!e[c-1].open?s[c-1]+1:0;s[r]=r-c+p,s[c]=p,a.open=!1,d.end=r,d.close=!1,u=-1,o=-2;break}}}u!==-1&&(t[a.marker][(a.open?3:0)+(a.length||0)%3]=u)}}function Z9(e){const t=e.tokens_meta,n=e.tokens_meta.length;Q7(e.delimiters);for(let o=0;o0&&l++,o[t].type==="text"&&t+1=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;r||e.pos++,s[t]=e.pos}tokenize(e){const t=this.ruler.getRules(""),n=t.length,l=e.posMax,o=e.md.options.maxNesting;for(;e.pos=e.pos)throw new Error("inline rule didn't increment state.pos");break}}if(r){if(e.pos>=l)break;continue}e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()}parse(e,t,n,l){const o=new this.State(e,t,n,l);this.tokenize(o);const s=this.ruler2.getRules(""),r=s.length;for(let a=0;a=0))try{t.hostname=_7.toASCII(t.hostname)}catch{}return t.auth&&(t.auth=c3(t.auth)),t.hostname&&(t.hostname=c3(t.hostname)),t.pathname&&(t.pathname=c3(t.pathname)),t.search&&(t.search=c3(t.search)),t.hash&&(t.hash=c3(t.hash)),At(t)}normalizeLinkText(e){const t=ht(e,!0);if(t.hostname&&(!t.protocol||N7.indexOf(t.protocol)>=0))try{t.hostname=_7.toUnicode(t.hostname)}catch{}return he(At(t),he.defaultChars+"%")}constructor(...e){A1(this,"inline",new bn),A1(this,"block",new mn),A1(this,"core",new fn),A1(this,"renderer",new cn),A1(this,"linkify",new Ti),A1(this,"utils",nc),A1(this,"helpers",Object.assign({},vc));const[t,n]=e;typeof t=="string"?(this.configure(t),n&&this.set(n)):(this.configure("default"),this.set(t||{}))}set(e){return Object.assign(this.options,e),this}configure(e){let t;if(typeof e=="string"){const o=e;if(t=B9[o],!t)throw new Error(`Wrong 'markdown-it' preset "${o}", check name`)}else t=e;if(!t)throw new Error("Wrong `markdown-it` preset, can't be empty");t.options&&(this.options={...t.options});const n=t.components;if(n){var l;["core","block","inline"].forEach(s=>{var r;const a=(r=n[s])===null||r===void 0?void 0:r.rules;a&&this[s].ruler.enableOnly(a)});const o=(l=n.inline)===null||l===void 0?void 0:l.rules2;o&&this.inline.ruler2.enableOnly(o)}return this}enable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.enable(e,!0))}),n=n.concat(this.inline.ruler2.enable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to enable unknown rule(s): ${l}`);return this}disable(e,t=!1){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(o=>{n=n.concat(this[o].ruler.disable(e,!0))}),n=n.concat(this.inline.ruler2.disable(e,!0));const l=e.filter(o=>n.indexOf(o)<0);if(l.length&&!t)throw new Error(`MarkdownIt. Failed to disable unknown rule(s): ${l}`);return this}use(e,...t){return e.apply(e,[this,...t]),this}parse(e,t){if(typeof e!="string")throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens}render(e,t={}){return this.renderer.render(this.parse(e,t),this.options,t)}parseInline(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens}renderInline(e,t={}){return this.renderer.render(this.parseInline(e,t),this.options,t)}};A1(e3,"Token",U3);A1(e3,"Ruler",a4);A1(e3,"Renderer",cn);A1(e3,"ParserCore",fn);A1(e3,"StateCore",un);A1(e3,"ParserBlock",mn);A1(e3,"StateBlock",An);A1(e3,"ParserInline",bn);A1(e3,"StateInline",gn);var Q9=sn(e3);const N9=["innerHTML"],Q2=L1({__name:"Markdown",props:{source:{},class:{}},setup(e){const t=e,n=new Q9({html:!1,linkify:!0,breaks:!1}),l=e1(()=>n.render(t.source??"")),o=["prose prose-sm max-w-none","prose-headings:text-foreground prose-headings:font-semibold","prose-p:text-muted-foreground prose-li:text-muted-foreground","prose-strong:text-foreground prose-em:text-foreground","prose-a:text-primary prose-a:no-underline hover:prose-a:underline","prose-code:text-foreground prose-code:before:content-none prose-code:after:content-none","prose-code:rounded prose-code:bg-muted/60 prose-code:px-1 prose-code:py-0.5","prose-pre:bg-muted/50 prose-pre:text-foreground prose-pre:border","prose-blockquote:border-border prose-blockquote:text-muted-foreground","prose-hr:border-border prose-th:text-foreground prose-td:text-muted-foreground"].join(" ");return(s,r)=>(h(),C("div",{class:i1(f(x1)(f(o),t.class)),innerHTML:l.value},null,10,N9))}}),K9={key:0,class:"space-y-2 border-b bg-muted/30 p-3"},G9={class:"px-3 py-2"},$9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},O9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},W9={key:1,class:"p-4 text-sm text-muted-foreground"},L9={key:2,class:"overflow-x-auto"},P9={class:"w-full border-collapse font-mono text-xs leading-relaxed"},T9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},H9={class:"w-12 select-none border-r px-2 text-right align-top text-muted-foreground"},V9={class:"w-4 select-none pl-2 align-top text-muted-foreground"},Y9={class:"whitespace-pre-wrap break-all py-0.5 pr-3 align-top"},U9={colspan:"4",class:"px-3 py-2"},J9={class:"px-3 py-2"},z9={key:0,class:"overflow-x-auto border-t bg-destructive/10 px-3 py-2 font-mono text-xs"},j9={key:1,class:"overflow-x-auto border-t bg-success/10 px-3 py-2 font-mono text-xs"},X9=L1({__name:"Diff",props:{patch:{default:""},notes:{default:()=>[]},class:{}},setup(e){const t=e,n={neutral:"bg-card",info:"border-primary/30 bg-primary/5",success:"border-success/40 bg-success/5",warning:"border-warning/40 bg-warning/5",danger:"border-destructive/40 bg-destructive/5"};function l(u){return u.severity==="blocking"?n.danger:n[u.tone??"neutral"]??n.neutral}const o=/^@@ -(\d+)(?:,\d+)? \+(\d+)(?:,\d+)? @@/,s=e1(()=>{const u=[];let d=0,A=0,p=!1;for(const m of(t.patch??"").split(` +`)){const v=o.exec(m);if(v){d=Number(v[1]),A=Number(v[2]),p=!0,u.push({kind:"hunk",text:m,before:null,after:null});continue}p&&(m.startsWith("+")?u.push({kind:"added",text:m.slice(1),before:null,after:A++}):m.startsWith("-")?u.push({kind:"removed",text:m.slice(1),before:d++,after:null}):m.startsWith("\\")?u.push({kind:"meta",text:m,before:null,after:null}):u.push({kind:"kept",text:m.slice(1),before:d++,after:A++}))}return u}),r={added:"bg-success/10",removed:"bg-destructive/10",hunk:"bg-muted/60 text-muted-foreground",meta:"text-muted-foreground",kept:""},a={added:"+",removed:"-",kept:" ",hunk:"",meta:""},i=e1(()=>{const u=new Map;for(const d of t.notes??[])d.line&&u.set(d.line,[...u.get(d.line)??[],d]);return u}),c=e1(()=>(t.notes??[]).filter(u=>!u.line));return(u,d)=>(h(),C("div",{class:i1(f(x1)("overflow-hidden rounded-md border",t.class))},[c.value.length?(h(),C("div",K9,[(h(!0),C(n1,null,w1(c.value,(A,p)=>(h(),C("div",{key:p,class:i1(["rounded border text-sm",l(A)])},[y("div",G9,[A.from?(h(),K(We,{key:0,tone:A.severity==="blocking"?"danger":A.tone??"neutral",title:String(A.from),label:String(A.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):L("",!0),I(Q2,{source:A.detail,class:"inline [&>p]:inline"},null,8,["source"])]),A.replacing?(h(),C("pre",$9,R(A.replacing),1)):L("",!0),A.code?(h(),C("pre",O9,R(A.code),1)):L("",!0)],2))),128))])):L("",!0),s.value.length?(h(),C("div",L9,[y("table",P9,[y("tbody",null,[(h(!0),C(n1,null,w1(s.value,(A,p)=>(h(),C(n1,{key:p},[y("tr",{class:i1(r[A.kind])},[y("td",T9,R(A.before??""),1),y("td",H9,R(A.after??""),1),y("td",V9,R(a[A.kind]),1),y("td",Y9,R(A.text),1)],2),(h(!0),C(n1,null,w1(i.value.get(A.after??-1)??[],(m,v)=>(h(),C("tr",{key:`${p}-${v}`},[y("td",U9,[y("div",{class:i1(["rounded border font-sans text-sm",l(m)])},[y("div",J9,[m.from?(h(),K(We,{key:0,tone:m.severity==="blocking"?"danger":m.tone??"neutral",title:String(m.from),label:String(m.from).toLowerCase(),class:"mr-2"},null,8,["tone","title","label"])):L("",!0),I(Q2,{source:m.detail,class:"inline [&>p]:inline"},null,8,["source"])]),m.replacing?(h(),C("pre",z9,R(m.replacing),1)):L("",!0),m.code?(h(),C("pre",j9,R(m.code),1)):L("",!0)],2)])]))),128))],64))),128))])])])):(h(),C("div",W9," Nothing to show for this one. It may be a file git stores whole rather than as lines. "))],2))}}),q9={class:"flex items-center gap-2.5"},eu=L1({__name:"Logo",props:{size:{default:"md"},showText:{type:Boolean,default:!0}},setup(e){const t={sm:"h-7 w-7 min-h-7 min-w-7",md:"h-8 w-8 min-h-8 min-w-8",lg:"h-10 w-10 min-h-10 min-w-10"},n={sm:"text-base",md:"text-lg",lg:"text-xl"};return(l,o)=>(h(),C("div",q9,[y("div",{class:i1([t[e.size],"relative flex-shrink-0"])},[...o[0]||(o[0]=[Io('',1)])],2),e.showText?(h(),C("span",{key:0,class:i1([n[e.size],"font-semibold tracking-tight"])},[...o[1]||(o[1]=[y("span",{class:"text-brand"},"Source",-1),y("span",{class:"text-brand"},"Ant",-1),y("span",{class:"text-muted-foreground font-normal ml-1"},"Memory",-1)])],2)):L("",!0)]))}}),tu={key:0,class:"fixed inset-0 z-50 flex items-center justify-center p-4"},Ut=L1({__name:"Modal",props:{open:{type:Boolean},class:{},maxWidth:{default:"lg"}},emits:["close"],setup(e,{emit:t}){const n=e,l=t,o={sm:"max-w-sm",md:"max-w-md",lg:"max-w-lg",xl:"max-w-xl","2xl":"max-w-2xl"};function s(r){r.key==="Escape"&&l("close")}return f2(()=>window.addEventListener("keydown",s)),ve(()=>window.removeEventListener("keydown",s)),(r,a)=>(h(),K(Kl,{to:"body"},[I(c0,{"enter-active-class":"transition duration-200","enter-from-class":"opacity-0","enter-to-class":"opacity-100","leave-active-class":"transition duration-150","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:x(()=>[e.open?(h(),C("div",tu,[y("div",{class:"absolute inset-0 bg-background/80 backdrop-blur-sm",onClick:a[0]||(a[0]=i=>l("close"))}),I(z1,{class:i1(f(x1)("relative w-full max-h-[85vh] overflow-auto p-6 animate-fade-up",o[e.maxWidth],n.class))},{default:x(()=>[y("button",{class:"absolute top-4 right-4 p-1 rounded-md text-muted-foreground hover:text-foreground hover:bg-muted transition-colors",onClick:a[1]||(a[1]=i=>l("close"))},[I(f(Pt),{class:"h-4 w-4"})]),G1(r.$slots,"default")]),_:3},8,["class"])])):L("",!0)]),_:3})]))}}),nu=["role"],lu={class:"min-w-0 flex-1"},d2=L1({__name:"Notice",props:{tone:{default:"info"},icon:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={info:"border-border bg-muted/50 text-foreground",success:"border-success/40 bg-success/10 text-foreground",warning:"border-warning/40 bg-warning/10 text-foreground",danger:"border-destructive/40 bg-destructive/10 text-foreground"},l={info:ei,success:qa,warning:ni,danger:Xa},o={info:"text-muted-foreground",success:"text-success",warning:"text-warning",danger:"text-destructive"},s=e1(()=>l[t.tone]);return(r,a)=>(h(),C("div",{class:i1(f(x1)("flex gap-3 rounded-md border px-4 py-3 text-sm",n[e.tone],t.class)),role:e.tone==="danger"?"alert":"status"},[e.icon?(h(),K(C2(s.value),{key:0,class:i1(f(x1)("mt-0.5 h-4 w-4 shrink-0",o[e.tone]))},null,8,["class"])):L("",!0),y("div",lu,[G1(r.$slots,"default")]),G1(r.$slots,"actions")],10,nu))}}),ou={class:"relative flex h-2 w-2 shrink-0"},su={key:0,class:"text-muted-foreground tabular-nums"},kn=L1({__name:"Status",props:{tone:{default:"neutral"},label:{},count:{default:null},busy:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n={neutral:"bg-muted-foreground",info:"bg-primary",success:"bg-success",warning:"bg-warning",danger:"bg-destructive"},l={neutral:"text-muted-foreground",info:"text-foreground",success:"text-foreground",warning:"text-foreground",danger:"text-foreground"},o=e1(()=>t.count===null||t.count===void 0?null:t.count);return(s,r)=>(h(),C("span",{class:i1(f(x1)("inline-flex items-center gap-2 text-sm font-medium",l[e.tone],t.class)),role:"status"},[y("span",ou,[e.busy?(h(),C("span",{key:0,class:i1(f(x1)("absolute inline-flex h-full w-full animate-ping rounded-full opacity-60",n[e.tone]))},null,2)):L("",!0),y("span",{class:i1(f(x1)("relative inline-flex h-2 w-2 rounded-full",n[e.tone]))},null,2)]),y("span",null,R(e.label),1),o.value!==null?(h(),C("span",su,R(o.value),1)):L("",!0)],2))}}),ru={key:0,class:"mb-3 flex justify-center text-muted-foreground"},au={key:1,class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"},iu={key:2,class:"mt-4 flex flex-wrap items-center justify-center gap-2"},Le=L1({__name:"Empty",props:{title:{},compact:{type:Boolean,default:!1},class:{}},setup(e){const t=e;return(n,l)=>(h(),K(z1,{class:i1(f(x1)("px-6 text-center",t.compact?"py-8":"py-16",t.class))},{default:x(()=>[n.$slots.icon?(h(),C("div",ru,[G1(n.$slots,"icon")])):L("",!0),y("h2",{class:i1(f(x1)("font-semibold",t.compact?"text-base":"text-lg"))},R(e.title),3),n.$slots.default?(h(),C("p",au,[G1(n.$slots,"default")])):L("",!0),n.$slots.actions?(h(),C("div",iu,[G1(n.$slots,"actions")])):L("",!0)]),_:3},8,["class"]))}}),cu={class:"relative flex items-center justify-center"},uu={class:"animate-fade-in space-y-1.5"},Cn=L1({__name:"Loading",props:{label:{default:"Working"},source:{},note:{},size:{default:"md"},fill:{type:Boolean,default:!0},class:{}},setup(e){const t=e,n={sm:"h-10 w-10",md:"h-14 w-14",lg:"h-16 w-16"},l={sm:"h-14 w-14",md:"h-20 w-20",lg:"h-24 w-24"},o={sm:"h-1.5 w-1.5",md:"h-2 w-2",lg:"h-2.5 w-2.5"},s={sm:"text-xs",md:"text-sm",lg:"text-base"},r={sm:"text-[11px]",md:"text-xs",lg:"text-sm"},a=e1(()=>t.size==="sm"?"py-8":"py-16"),i=e1(()=>t.source?`${t.label} from ${t.source}`:t.label);return(c,u)=>(h(),C("div",{class:i1(f(x1)("flex flex-col items-center justify-center gap-5 px-6 text-center",e.fill?"min-h-0 flex-1":a.value,t.class)),role:"status","aria-live":"polite"},[y("div",cu,[y("span",{class:i1(f(x1)("absolute animate-pulse rounded-full bg-primary/25 blur-2xl",l[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(x1)("rounded-full border-2 border-border/70",n[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(x1)("absolute animate-spin rounded-full border-2 border-transparent border-t-primary border-r-primary/50",n[e.size])),"aria-hidden":"true"},null,2),y("span",{class:i1(f(x1)("absolute animate-pulse rounded-full bg-primary",o[e.size])),"aria-hidden":"true"},null,2)]),y("div",uu,[y("p",{class:i1(f(x1)("font-medium text-foreground",s[e.size]))},R(i.value),3),e.note||c.$slots.default?(h(),C("p",{key:0,class:i1(f(x1)("mx-auto max-w-md text-muted-foreground",r[e.size]))},[G1(c.$slots,"default",{},()=>[U(R(e.note),1)])],2)):L("",!0)])],2))}}),du={key:0,class:"shrink-0"},fu={class:"truncate"},wn=L1({__name:"Origin",props:{name:{},mono:{type:Boolean,default:!0},class:{}},setup(e){const t=e;return(n,l)=>(h(),C("span",{class:i1(f(x1)("inline-flex max-w-full items-center gap-1 rounded border border-border/60 bg-muted/40 px-1.5 py-0.5 text-[11px] text-muted-foreground",t.mono&&"font-mono",t.class))},[n.$slots.icon?(h(),C("span",du,[G1(n.$slots,"icon")])):L("",!0),y("span",fu,R(e.name),1)],2))}}),Au={class:"font-semibold"},hu={class:"mt-3"},$3=L1({__name:"Section",props:{title:{},tone:{default:"neutral"},count:{default:null},collapsible:{type:Boolean,default:!1},closed:{type:Boolean,default:!1},class:{}},setup(e){const t=e,n=j(!t.closed),l={neutral:"text-muted-foreground",info:"text-primary",success:"text-success",warning:"text-warning",danger:"text-destructive"},o={neutral:"bg-muted text-muted-foreground",info:"bg-primary/10 text-primary",success:"bg-success/10 text-success",warning:"bg-warning/10 text-warning",danger:"bg-destructive/10 text-destructive"},s=e1(()=>t.collapsible?n.value:!0);return(r,a)=>(h(),C("section",{class:i1(f(x1)("py-4 first:pt-0 last:pb-0",t.class))},[(h(),K(C2(e.collapsible?"button":"div"),{type:e.collapsible?"button":void 0,"aria-expanded":e.collapsible?String(n.value):void 0,class:i1(f(x1)("flex w-full items-center gap-2 text-left",e.collapsible&&"cursor-pointer")),onClick:a[0]||(a[0]=i=>e.collapsible&&(n.value=!n.value))},{default:x(()=>[r.$slots.icon?(h(),C("span",{key:0,class:i1(f(x1)("shrink-0",l[e.tone]))},[G1(r.$slots,"icon")],2)):L("",!0),y("h2",Au,R(e.title),1),e.count!==null?(h(),C("span",{key:1,class:i1(f(x1)("rounded-full px-2 py-0.5 text-xs font-medium tabular-nums",o[e.tone]))},R(e.count),3)):L("",!0),e.collapsible?(h(),K(f(ja),{key:2,class:i1(f(x1)("ml-auto h-4 w-4 shrink-0 text-muted-foreground transition-transform",n.value&&"rotate-180"))},null,8,["class"])):L("",!0)]),_:3},8,["type","aria-expanded","class"])),re(y("div",hu,[G1(r.$slots,"default")],512),[[d0,s.value]])],2))}});/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const cu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** + */const pu=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const R7=e=>e==="";/** + */const K7=e=>e==="";/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const uu=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** + */const mu=(...e)=>e.filter((t,n,l)=>!!t&&t.trim()!==""&&l.indexOf(t)===n).join(" ").trim();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Q7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** + */const G7=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const du=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** + */const gu=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,l)=>l?l.toUpperCase():n.toLowerCase());/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const fu=e=>{const t=du(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** + */const vu=e=>{const t=gu(e);return t.charAt(0).toUpperCase()+t.slice(1)};/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */var Ee={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + */var De={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"};/** + * @license lucide-vue-next v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const yu=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":s,size:r=De.width,color:a=De.stroke,...i},{slots:c})=>h3("svg",{...De,...i,width:r,height:r,stroke:a,"stroke-width":K7(n)||K7(l)||n===!0||l===!0?Number(o||s||De["stroke-width"])*24/Number(r):o||s||De["stroke-width"],class:mu("lucide",i.class,...e?[`lucide-${G7(vu(e))}-icon`,`lucide-${G7(e)}`]:["lucide-icon"]),...!c.default&&!pu(i)&&{"aria-hidden":"true"}},[...t.map(u=>h3(...u)),...c.default?[c.default()]:[]]);/** + * @license lucide-vue-next v0.563.0 - ISC + * + * This source code is licensed under the ISC license. + * See the LICENSE file in the root directory of this source tree. + */const M1=(e,t)=>(n,{slots:l,attrs:o})=>h3(yu,{...o,...n,iconNode:t,name:e},l);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Au=({name:e,iconNode:t,absoluteStrokeWidth:n,"absolute-stroke-width":l,strokeWidth:o,"stroke-width":r,size:s=Ee.width,color:a=Ee.stroke,...i},{slots:c})=>h3("svg",{...Ee,...i,width:s,height:s,stroke:a,"stroke-width":R7(n)||R7(l)||n===!0||l===!0?Number(o||r||Ee["stroke-width"])*24/Number(s):o||r||Ee["stroke-width"],class:uu("lucide",i.class,...e?[`lucide-${Q7(fu(e))}-icon`,`lucide-${Q7(e)}`]:["lucide-icon"]),...!c.default&&!cu(i)&&{"aria-hidden":"true"}},[...t.map(d=>h3(...d)),...c.default?[c.default()]:[]]);/** + */const Jt=M1("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const D1=(e,t)=>(n,{slots:l,attrs:o})=>h3(Au,{...o,...n,iconNode:t,name:e},l);/** + */const bu=M1("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Yt=D1("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]);/** + */const xn=M1("book-open-check",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const hu=D1("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/** + */const B4=M1("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bn=D1("book-open-check",[["path",{d:"M12 21V7",key:"gj6g52"}],["path",{d:"m16 12 2 2 4-4",key:"mdajum"}],["path",{d:"M22 6V4a1 1 0 0 0-1-1h-5a4 4 0 0 0-4 4 4 4 0 0 0-4-4H3a1 1 0 0 0-1 1v13a1 1 0 0 0 1 1h6a3 3 0 0 1 3 3 3 3 0 0 1 3-3h6a1 1 0 0 0 1-1v-1.3",key:"8arnkb"}]]);/** + */const i4=M1("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const B4=D1("book-open",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]]);/** + */const ku=M1("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const i4=D1("boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/** + */const me=M1("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pu=D1("bug",[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]]);/** + */const Cu=M1("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pe=D1("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/** + */const wu=M1("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mu=D1("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]);/** + */const xu=M1("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const N7=D1("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** + */const $7=M1("circle-alert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const gu=D1("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const _u=M1("circle-check",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const vu=D1("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** + */const Iu=M1("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ht=D1("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** + */const mt=M1("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const yu=D1("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** + */const Mu=M1("crosshair",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"22",x2:"18",y1:"12",y2:"12",key:"l9bcsi"}],["line",{x1:"6",x2:"2",y1:"12",y2:"12",key:"13hhkx"}],["line",{x1:"12",x2:"12",y1:"6",y2:"2",key:"10w3f3"}],["line",{x1:"12",x2:"12",y1:"22",y2:"18",key:"15g9kq"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const h5=D1("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);/** + */const m5=M1("file-code",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 12.5 8 15l2 2.5",key:"1tg20x"}],["path",{d:"m14 12.5 2 2.5-2 2.5",key:"yinavb"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const K7=D1("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** + */const O7=M1("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const p5=D1("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** + */const g5=M1("folder",[["path",{d:"M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z",key:"1kt360"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const bu=D1("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/** + */const Eu=M1("git-commit-horizontal",[["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}],["line",{x1:"3",x2:"9",y1:"12",y2:"12",key:"1dyftd"}],["line",{x1:"15",x2:"21",y1:"12",y2:"12",key:"oup4p8"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const kn=D1("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** + */const _n=M1("layout-dashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Y4=D1("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** + */const Y4=M1("lightbulb",[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Cn=D1("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** + */const In=M1("link-2",[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _2=D1("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** + */const I2=M1("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const ku=D1("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/** + */const Du=M1("menu",[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Cu=D1("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/** + */const Zu=M1("message-square",[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wn=D1("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/** + */const Mn=M1("moon",[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const m5=D1("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** + */const v5=M1("network",[["rect",{x:"16",y:"16",width:"6",height:"6",rx:"1",key:"4q2zg0"}],["rect",{x:"2",y:"16",width:"6",height:"6",rx:"1",key:"8cvhb9"}],["rect",{x:"9",y:"2",width:"6",height:"6",rx:"1",key:"1egb70"}],["path",{d:"M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3",key:"1jsf9p"}],["path",{d:"M12 12V8",key:"2874zd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const wu=D1("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** + */const Fu=M1("pencil",[["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}],["path",{d:"m15 5 4 4",key:"1mk7zo"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const p3=D1("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** + */const p3=M1("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const xn=D1("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** + */const En=M1("refresh-cw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const xu=D1("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** + */const Bu=M1("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const c4=D1("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** + */const c4=M1("scroll-text",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _n=D1("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** + */const Dn=M1("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const pt=D1("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** + */const gt=M1("settings",[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Pe=D1("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** + */const Pe=M1("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const mt=D1("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/** + */const vt=M1("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const In=D1("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** + */const Zn=M1("sun",[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const A4=D1("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** + */const A4=M1("trash-2",[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const _u=D1("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** + */const Su=M1("triangle-alert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const Mn=D1("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** + */const Fn=M1("wand-sparkles",[["path",{d:"m21.64 3.64-1.28-1.28a1.21 1.21 0 0 0-1.72 0L2.36 18.64a1.21 1.21 0 0 0 0 1.72l1.28 1.28a1.2 1.2 0 0 0 1.72 0L21.64 5.36a1.2 1.2 0 0 0 0-1.72",key:"ul74o6"}],["path",{d:"m14 7 3 3",key:"1r5n42"}],["path",{d:"M5 6v4",key:"ilb8ba"}],["path",{d:"M19 14v4",key:"blhpug"}],["path",{d:"M10 2v2",key:"7u0qdc"}],["path",{d:"M7 8H3",key:"zfb6yr"}],["path",{d:"M21 16h-4",key:"1cnmox"}],["path",{d:"M11 3H9",key:"1obp7u"}]]);/** * @license lucide-vue-next v0.563.0 - ISC * * This source code is licensed under the ISC license. * See the LICENSE file in the root directory of this source tree. - */const En=D1("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function N2(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function Iu(e){var t,n,l,o,r,s,a;const i=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,d=(l=e.meta)===null||l===void 0?void 0:l.source,u=(r=(o=e.meta)===null||o===void 0?void 0:o.license)===null||r===void 0?void 0:r.url,A=Mu(e);return!i&&!c&&!d&&!u&&!A?"":''+(i?`${N2(i)}`:"")+(c?`${N2(c)}`:"")+(d?`${N2((a=(s=e.meta)===null||s===void 0?void 0:s.source)!==null&&a!==void 0?a:"")}`:"")+(u?`${N2(u)}`:"")+(A?`${N2(A)}`:"")+""}function Mu(e){var t,n,l,o,r,s,a,i,c,d,u,A,p,m,k;let D=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",F=`„${(o=(l=e.meta)===null||l===void 0?void 0:l.creator)!==null&&o!==void 0?o:"Unknown"}”`;!((r=e.meta)===null||r===void 0)&&r.source&&(D+=` (${e.meta.source})`);let C="";return((a=(s=e.meta)===null||s===void 0?void 0:s.license)===null||a===void 0?void 0:a.name)!=="MIT"&&((i=e.meta)===null||i===void 0?void 0:i.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(C+="Remix of "),C+=`${D} by ${F}`,!((u=(d=e.meta)===null||d===void 0?void 0:d.license)===null||u===void 0)&&u.name&&(C+=`, licensed under „${(p=(A=e.meta)===null||A===void 0?void 0:A.license)===null||p===void 0?void 0:p.name}”`,!((k=(m=e.meta)===null||m===void 0?void 0:m.license)===null||k===void 0)&&k.url&&(C+=` (${e.meta.license.url})`)),C}const G7=-2147483648,Eu=2147483647,Du=1024;function Dn(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function Zu(e){let t=0;for(let n=0;nt=Dn(t),l=(o,r)=>Math.floor((n()-G7)/(Eu-G7)*(r+1-o)+o);return{seed:e,next:n,bool(o=50){return l(1,100)<=o},integer(o,r){return l(o,r)},pick(o,r){var s;return o.length===0?(n(),r):(s=o[l(0,o.length-1)])!==null&&s!==void 0?s:r},shuffle(o){const r=V4(n().toString()),s=[...o];for(let a=s.length-1;a>0;a--){const i=r.integer(0,a);[s[a],s[i]]=[s[i],s[a]]}return s},string(o,r="abcdefghijklmnopqrstuvwxyz1234567890"){const s=V4(n().toString());let a="";for(let i=0;i`;switch(l){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function Bu(e,t){let{width:n,height:l,x:o,y:r}=be(e),s=t?(t-100)/100:0,a=(n/2+o)*s*-1,i=(l/2+r)*s*-1;return`${e.body}`}function Su(e,t,n){let l=be(e),o=(l.width+l.x*2)*((t??0)/100),r=(l.height+l.y*2)*((n??0)/100);return`${e.body}`}function Ru(e,t){let{width:n,height:l,x:o,y:r}=be(e);return`${e.body}`}function Qu(e){let{width:t,x:n}=be(e);return`${e.body}`}function Nu(e,t){let{width:n,height:l,x:o,y:r}=be(e),s=t?n*t/100:0,a=t?l*t/100:0;return`${e.body}`}function Ku(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${N2(n)}="${N2(t[n])}"`).join(" ")}function Gu(e){const t=V4(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,o,r,s)=>(n[r]=n[r]||t.string(8),`${o}${n[r]}${s}`))}const Ou={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function O7(e){var t;let n={},l=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(l).forEach(o=>{let r=l[o];typeof r=="object"&&r.default!==void 0&&(Array.isArray(r.default)?n[o]=[...r.default]:typeof r.default=="object"?n[o]={...r.default}:n[o]=r.default)}),n}function $u(e,t){var n;let l={...O7(Ou),...O7((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(l))}function $7(e){return e==="transparent"?e:`#${e}`}function Wu(e,t,n){var l;let o=e.shuffle(t);o.length<=1||t.length==2&&n=="gradientLinear"?(o=t,e.next()):o=e.shuffle(t),o.length===0&&(o=["transparent"]);const r=o[0],s=(l=o[1])!==null&&l!==void 0?l:o[0];return{primary:$7(r),secondary:$7(s)}}function Lu(e,t={}){var n,l,o,r,s;t=$u(e,t);const a=V4(t.seed),i=e.create({prng:a,options:t}),c=a.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:d,secondary:u}=Wu(a,(l=t.backgroundColor)!==null&&l!==void 0?l:[],c),A=a.integer(!((o=t.backgroundRotation)===null||o===void 0)&&o.length?Math.min(...t.backgroundRotation):0,!((r=t.backgroundRotation)===null||r===void 0)&&r.length?Math.max(...t.backgroundRotation):0);t.size&&(i.attributes.width=t.size.toString(),i.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(i.body=Bu(i,t.scale)),t.flip&&(i.body=Qu(i)),t.rotate&&(i.body=Ru(i,t.rotate)),(t.translateX||t.translateY)&&(i.body=Su(i,t.translateX,t.translateY)),d!=="transparent"&&u!=="transparent"&&(i.body=Fu(i,d,u,c,A)),(t.radius||t.clip)&&(i.body=Nu(i,(s=t.radius)!==null&&s!==void 0?s:0)),t.randomizeIds&&(i.body=Gu(i));const p=Ku(i),m=Iu(e),k=`${m}${i.body}`;return{toString:()=>k,toJson:()=>{var D;return{svg:k,extra:{primaryBackgroundColor:d,secondaryBackgroundColor:u,backgroundType:c,backgroundRotation:A,...(D=i.extra)===null||D===void 0?void 0:D.call(i)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(k)}`}}const Pu={variant01:(e,t)=>''},Tu={variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant09:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant08:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant07:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant06:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant05:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant04:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant03:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant02:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant01:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`}},Hu={variant63:(e,t)=>'',variant62:(e,t)=>'',variant61:(e,t)=>'',variant60:(e,t)=>'',variant59:(e,t)=>'',variant58:(e,t)=>'',variant57:(e,t)=>'',variant56:(e,t)=>'',variant55:(e,t)=>'',variant54:(e,t)=>'',variant53:(e,t)=>'',variant52:(e,t)=>'',variant51:(e,t)=>'',variant50:(e,t)=>'',variant49:(e,t)=>'',variant48:(e,t)=>'',variant47:(e,t)=>'',variant46:(e,t)=>'',variant45:(e,t)=>'',variant44:(e,t)=>'',variant43:(e,t)=>'',variant42:(e,t)=>'',variant41:(e,t)=>'',variant40:(e,t)=>'',variant39:(e,t)=>'',variant38:(e,t)=>'',variant37:(e,t)=>'',variant36:(e,t)=>'',variant35:(e,t)=>'',variant34:(e,t)=>'',variant33:(e,t)=>'',variant32:(e,t)=>'',variant31:(e,t)=>'',variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>'',hat:(e,t)=>''},Yu={variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Vu={variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Uu={variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Ju={variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},zu={variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},ju={variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},Xu={wavePointLongArms:(e,t)=>'',waveOkLongArms:(e,t)=>'',waveLongArms:(e,t)=>'',waveLongArm:(e,t)=>'',pointLongArm:(e,t)=>'',okLongArm:(e,t)=>'',point:(e,t)=>'',ok:(e,t)=>'',hand:(e,t)=>'',handPhone:(e,t)=>''},qu={electric:(e,t)=>'',saturn:(e,t)=>'',galaxy:(e,t)=>''},ed=Object.freeze(Object.defineProperty({__proto__:null,base:Pu,beard:Vu,body:Tu,bodyIcon:qu,brows:ju,eyes:Ju,gesture:Xu,glasses:zu,hair:Hu,lips:Yu,nose:Uu},Symbol.toStringTag,{value:"Module"}));function B2({prng:e,group:t,values:n=[]}){const l=ed,o=e.pick(n);if(o&&l[t][o])return{name:o,value:l[t][o]}}function td({prng:e,options:t}){const n=B2({prng:e,group:"base",values:t.base}),l=B2({prng:e,group:"body",values:t.body}),o=B2({prng:e,group:"hair",values:t.hair}),r=B2({prng:e,group:"lips",values:t.lips}),s=B2({prng:e,group:"beard",values:t.beard}),a=B2({prng:e,group:"nose",values:t.nose}),i=B2({prng:e,group:"eyes",values:t.eyes}),c=B2({prng:e,group:"glasses",values:t.glasses}),d=B2({prng:e,group:"brows",values:t.brows}),u=B2({prng:e,group:"gesture",values:t.gesture}),A=B2({prng:e,group:"bodyIcon",values:t.bodyIcon});return{base:n,body:l,hair:o,lips:r,beard:e.bool(t.beardProbability)?s:void 0,nose:a,eyes:i,glasses:e.bool(t.glassesProbability)?c:void 0,brows:d,gesture:e.bool(t.gestureProbability)?u:void 0,bodyIcon:e.bool(t.bodyIconProbability)?A:void 0}}function nd({prng:e,options:t}){return{}}const ld={$schema:"http://json-schema.org/draft-07/schema#",properties:{base:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},beard:{type:"array",items:{type:"string",enum:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:10},body:{type:"array",items:{type:"string",enum:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},bodyIcon:{type:"array",items:{type:"string",enum:["electric","saturn","galaxy"]},default:["electric","saturn","galaxy"]},bodyIconProbability:{type:"integer",minimum:0,maximum:100,default:75},brows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant05","variant04","variant03","variant02","variant01"]},default:["variant05","variant04","variant03","variant02","variant01"]},gesture:{type:"array",items:{type:"string",enum:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},default:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},gestureProbability:{type:"integer",minimum:0,maximum:100,default:10},glasses:{type:"array",items:{type:"string",enum:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hair:{type:"array",items:{type:"string",enum:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},default:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},lips:{type:"array",items:{type:"string",enum:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},nose:{type:"array",items:{type:"string",enum:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]}}},od={title:"Notionists",creator:"Zoish",source:"https://heyzoish.gumroad.com/l/notionists",homepage:"https://bio.link/heyzoish",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},rd=({prng:e,options:t})=>{var n,l,o,r,s,a,i,c,d,u,A,p,m,k,D,F,C,I,v,S;const L=td({prng:e,options:t}),Z=nd({prng:e,options:t});return{attributes:{viewBox:"0 0 1744 1744",fill:"none","shape-rendering":"auto"},body:`${(l=(n=L.base)===null||n===void 0?void 0:n.value(L,Z))!==null&&l!==void 0?l:""}${(r=(o=L.body)===null||o===void 0?void 0:o.value(L,Z))!==null&&r!==void 0?r:""}${(a=(s=L.hair)===null||s===void 0?void 0:s.value(L,Z))!==null&&a!==void 0?a:""}${(c=(i=L.lips)===null||i===void 0?void 0:i.value(L,Z))!==null&&c!==void 0?c:""}${(u=(d=L.beard)===null||d===void 0?void 0:d.value(L,Z))!==null&&u!==void 0?u:""}${(p=(A=L.nose)===null||A===void 0?void 0:A.value(L,Z))!==null&&p!==void 0?p:""}${(k=(m=L.eyes)===null||m===void 0?void 0:m.value(L,Z))!==null&&k!==void 0?k:""}${(F=(D=L.glasses)===null||D===void 0?void 0:D.value(L,Z))!==null&&F!==void 0?F:""}${(I=(C=L.brows)===null||C===void 0?void 0:C.value(L,Z))!==null&&I!==void 0?I:""}${(S=(v=L.gesture)===null||v===void 0?void 0:v.value(L,Z))!==null&&S!==void 0?S:""}`,extra:()=>({...Object.entries(L).reduce((_,[R,B])=>(_[R]=B==null?void 0:B.name,_),{}),...Object.entries(Z).reduce((_,[R,B])=>(_[`${R}Color`]=B,_),{})})}},sd=Object.freeze(Object.defineProperty({__proto__:null,create:rd,meta:od,schema:ld},Symbol.toStringTag,{value:"Module"})),gt=j(!0);function W7(e){gt.value=e,document.documentElement.classList.toggle("dark",e),document.documentElement.classList.toggle("light",!e);try{localStorage.setItem("sourceant-theme",e?"dark":"light")}catch{}}function Zn(){return{isDark:gt,toggleTheme:()=>W7(!gt.value),restoreTheme:()=>{let e=null;try{e=localStorage.getItem("sourceant-theme")}catch{e=null}W7(e!=="light")}}}async function j1(e,t={}){const n=await fetch(e,{...t,headers:t.body?{"Content-Type":"application/json"}:void 0}),l=await n.text(),o=l?JSON.parse(l):null;if(!n.ok)throw new Error((o==null?void 0:o.error)||`the agent answered ${n.status}`);return o}const S2=e=>new URLSearchParams(Object.entries(e).filter(([,t])=>t!==""&&t!==!1)),Z1={status:()=>j1("/health"),repositories:()=>j1("/api/repositories"),addRepository:(e,t)=>j1("/api/repositories",{method:"POST",body:JSON.stringify({path:e,name:t})}),dropRepository:e=>j1(`/api/repositories?${S2({path:e})}`,{method:"DELETE"}),index:(e="",{everything:t=!1,update:n=!1}={})=>j1("/api/index",{method:"POST",body:JSON.stringify({repository:e,everything:t,update:n})}),attention:e=>j1(`/api/attention?${S2({repository:e})}`),graph:(e,{includeTests:t=!1,pathPrefix:n=""}={})=>j1(`/api/graph?${S2({repository:e,include_tests:t,path_prefix:n})}`),knowledge:e=>j1(`/api/knowledge?${S2({repository:e,limit:100})}`),recordKnowledge:e=>j1("/api/knowledge",{method:"PUT",body:JSON.stringify(e)}),forgetKnowledge:(e,t)=>j1(`/api/knowledge?${S2({repository:e,id:t})}`,{method:"DELETE"}),browse:(e="")=>j1(`/api/browse?${S2({path:e})}`),initialize:(e,{dryRun:t=!1,useModel:n=!1}={})=>j1("/api/knowledge/initialize",{method:"POST",body:JSON.stringify({repository:e,dry_run:t,use_model:n})}),skills:(e="")=>j1(`/api/skills?${S2({repository:e})}`),skill:(e,t="")=>j1(`/api/skills/${e}?${S2({repository:t})}`),recordSkill:e=>j1("/api/skills",{method:"PUT",body:JSON.stringify({scope:"repository",paths:[],reviews:null,...e})}),forgetSkill:(e,t,n)=>j1(`/api/skills?${S2({repository:e,scope:t,id:n})}`,{method:"DELETE"}),startReview:(e,{against:t="",title:n="",description:l="",skills:o=[],useModel:r=!0}={})=>j1("/api/reviews",{method:"POST",body:JSON.stringify({repository:e,against:t,title:n,description:l,skills:o,use_model:r})}),reviewed:e=>j1(`/api/reviews/${e}`),reviews:(e="")=>j1(`/api/reviews?${S2({repository:e})}`),settings:()=>j1("/api/settings"),setSetting:(e,t)=>j1("/api/settings",{method:"PUT",body:JSON.stringify({key:e,value:t})}),resetSetting:e=>j1(`/api/settings?${S2({key:e})}`,{method:"DELETE"})},ad={class:"space-y-4"},id={key:0,class:"flex items-center gap-2 py-6 text-sm text-muted-foreground"},cd=["onClick"],ud=["value"],dd={key:1,class:"flex items-center gap-2 text-sm"},fd=["id","onUpdate:modelValue"],Ad={class:"text-muted-foreground"},hd={key:0,class:"py-6 text-sm text-muted-foreground"},pd={key:2,class:"flex items-center gap-3"},md={key:0,class:"text-xs text-success"},Fn={__name:"SettingsPanel",props:{group:{type:String,required:!0}},emits:["saved"],setup(e,{emit:t}){const n=e,l=t,o=j([]),r=j({}),s=j(!1),a=j(!0),i=j(""),c=j(!1),d=t1(()=>o.value.filter(I=>I.group===n.group));function u(I){return I.secret?"":I.listed?String(I.value??"").split(` -`).map(v=>v.trim()).filter(Boolean):I.value??""}const A=(I,v)=>I.listed?(v??[]).join(` -`):v,p=(I,v)=>String(A(I,v)??"")===String(I.value??""),m=t1(()=>d.value.some(I=>{const v=r.value[I.key];return I.secret?!!v:!p(I,v)}));async function k(){a.value=!0;try{o.value=await Z1.settings(),r.value=Object.fromEntries(d.value.map(I=>[I.key,u(I)])),i.value=""}catch(I){i.value=I.message}finally{a.value=!1}}async function D(){s.value=!0,c.value=!1,i.value="";try{for(const I of d.value){const v=r.value[I.key];I.secret&&!v||!I.secret&&p(I,v)||await Z1.setSetting(I.key,A(I,v))}await k(),c.value=!0,l("saved")}catch(I){i.value=I.message}finally{s.value=!1}}async function F(I){i.value="";try{await Z1.resetSetting(I.key),await k()}catch(v){i.value=v.message}}function C(I){return I.secret?I.is_set:String(I.value??"")!==String(I.default??"")}return q1(()=>n.group,k),d2(k),(I,v)=>(h(),w("div",ad,[a.value?(h(),w("p",id,[M(f(_2),{class:"h-4 w-4 animate-spin"}),v[0]||(v[0]=U(" Reading what this machine can be told. ",-1))])):(h(),w(n1,{key:1},[(h(!0),w(n1,null,_1(d.value,S=>(h(),G(f(Q2),{key:S.key,label:S.label,for:S.key,hint:S.description},{label:x(()=>[S.secret&&S.is_set?(h(),G(f(c2),{key:0,variant:"success"},{default:x(()=>[...v[1]||(v[1]=[U("set",-1)])]),_:1})):W("",!0),C(S)?(h(),w("button",{key:1,type:"button",class:"inline-flex items-center gap-1 text-[11px] font-normal normal-case tracking-normal text-muted-foreground hover:text-foreground",onClick:L=>F(S)},[M(f(xu),{class:"h-3 w-3"}),v[2]||(v[2]=U(" put back ",-1))],8,cd)):W("",!0)]),default:x(()=>{var L;return[(L=S.choices)!=null&&L.length?(h(),G(f(X2),{key:0,id:S.key,modelValue:r.value[S.key],"onUpdate:modelValue":Z=>r.value[S.key]=Z,class:"w-full"},{default:x(()=>[(h(!0),w(n1,null,_1(S.choices,Z=>(h(),w("option",{key:Z,value:Z},Q(Z),9,ud))),128))]),_:2},1032,["id","modelValue","onUpdate:modelValue"])):S.type==="bool"?(h(),w("label",dd,[Ke(y("input",{id:S.key,"onUpdate:modelValue":Z=>r.value[S.key]=Z,type:"checkbox",class:"h-3.5 w-3.5 rounded border"},null,8,fd),[[i0,r.value[S.key]]]),y("span",Ad,Q(r.value[S.key]?"On":"Off"),1)])):S.listed?(h(),G(f($0),{key:2,modelValue:r.value[S.key],"onUpdate:modelValue":Z=>r.value[S.key]=Z,mono:"",noun:"a folder",placeholder:"/home/you/work/knowledgebase/skills"},null,8,["modelValue","onUpdate:modelValue"])):(h(),G(f(J3),{key:3,id:S.key,modelValue:r.value[S.key],"onUpdate:modelValue":Z=>r.value[S.key]=Z,type:S.secret?"password":S.type==="int"||S.type==="float"?"number":"text",autocomplete:S.secret?"off":void 0,placeholder:S.secret&&S.is_set?"Leave empty to keep what is set":String(S.default??"")},null,8,["id","modelValue","onUpdate:modelValue","type","autocomplete","placeholder"]))]}),_:2},1032,["label","for","hint"]))),128)),d.value.length?W("",!0):(h(),w("p",hd," Nothing in this group is configurable here. ")),i.value?(h(),G(f(u2),{key:1,tone:"danger"},{default:x(()=>[U(Q(i.value),1)]),_:1})):W("",!0),d.value.length?(h(),w("div",pd,[M(f(b1),{disabled:s.value||!m.value,onClick:D},{default:x(()=>[s.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(pe),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),v[3]||(v[3]=U(" Save ",-1))]),_:1},8,["disabled"]),c.value&&!m.value?(h(),w("span",md,"Saved.")):W("",!0),K1(I.$slots,"after")])):W("",!0)],64))]))}},gd={class:"mb-2 text-xs font-mono text-muted-foreground break-all"},vd={class:"h-64 overflow-y-auto rounded-md border bg-muted/30"},yd=["onClick"],bd={class:"truncate"},kd={key:1,class:"px-3 py-6 text-center text-sm text-muted-foreground"},Cd={class:"mt-2 text-xs text-muted-foreground"},wd={class:"font-mono"},xd={key:1,role:"status",class:"mt-3 text-sm text-muted-foreground"},_d={class:"flex items-center gap-2 pt-5"},Bn={__name:"FolderPicker",props:{open:Boolean},emits:["close","added"],setup(e,{emit:t}){const n=e,l=t,o=j(null),r=j(""),s=j(!1),a=j("");async function i(d){try{o.value=await Z1.browse(d),a.value=""}catch(u){a.value=u.message}}q1(()=>n.open,d=>{d&&(r.value="",a.value="",s.value=!1,i(""))});async function c(){if(o.value){s.value=!0,a.value="";try{await Z1.addRepository(o.value.path,r.value.trim()),l("added"),l("close")}catch(d){a.value=d.message}finally{s.value=!1}}}return(d,u)=>(h(),G(f(Ht),{open:e.open,"max-width":"lg",onClose:u[3]||(u[3]=A=>l("close"))},{default:x(()=>{var A,p,m,k;return[u[8]||(u[8]=y("h2",{class:"text-lg font-semibold mb-3"},"Add a folder",-1)),y("p",gd,Q((A=o.value)==null?void 0:A.path),1),y("div",vd,[(p=o.value)!=null&&p.parent?(h(),w("button",{key:0,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:u[0]||(u[0]=D=>i(o.value.parent))},[M(f(mu),{class:"h-3.5 w-3.5"}),u[4]||(u[4]=y("span",{class:"text-muted-foreground"},"Up one",-1))])):W("",!0),(h(!0),w(n1,null,_1(((m=o.value)==null?void 0:m.entries)??[],D=>(h(),w("button",{key:D.path,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:F=>i(D.path)},[M(f(p5),{class:"h-3.5 w-3.5 text-muted-foreground"}),y("span",bd,Q(D.name),1),D.repository?(h(),G(f(c2),{key:0,variant:"glow",class:"ml-auto shrink-0"},{default:x(()=>[...u[5]||(u[5]=[U("git",-1)])]),_:1})):W("",!0)],8,yd))),128)),o.value&&o.value.entries.length===0?(h(),w("p",kd," Nothing inside. ")):W("",!0)]),M(f(Q2),{label:"Name it (optional)",for:"repo-name",class:"mt-4"},{default:x(()=>[M(f(J3),{id:"repo-name",modelValue:r.value,"onUpdate:modelValue":u[1]||(u[1]=D=>r.value=D),placeholder:"Taken from the git remote, or the folder name"},null,8,["modelValue"])]),_:1}),y("p",Cd,[u[6]||(u[6]=U(" Adding ",-1)),y("code",wd,Q((k=o.value)==null?void 0:k.path),1)]),a.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mt-3"},{default:x(()=>[U(Q(a.value),1)]),_:1})):W("",!0),s.value?(h(),w("p",xd," Reading this repository. Large repositories can take several minutes. ")):W("",!0),y("div",_d,[M(f(b1),{disabled:s.value||!o.value,onClick:c},{default:x(()=>[s.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(p3),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(s.value?"Reading…":"Add and index"),1)]),_:1},8,["disabled"]),M(f(b1),{variant:"outline",onClick:u[2]||(u[2]=D=>l("close"))},{default:x(()=>[...u[7]||(u[7]=[U("Cancel",-1)])]),_:1})])]}),_:1},8,["open"]))}},ee=j([]),De=j(""),L5=j(""),P5=j(!1),Vt="";function v3({all:e=!1}={}){const t=t1(()=>e&&!De.value&&ee.value.length>1);async function n(){var l;P5.value=!0;try{ee.value=await Z1.repositories(),L5.value=""}catch(o){ee.value=[],L5.value=`${o.message}. Is sourceant-agent running?`}finally{P5.value=!1}De.value===Vt&&e||ee.value.some(o=>o.name===De.value)||(De.value=((l=ee.value[0])==null?void 0:l.name)??"")}return{repositories:ee,chosen:De,error:L5,loading:P5,mixed:t,fetchRepositories:n}}const Id={class:"flex items-center gap-2"},L7="sourceant-onboarded",Md={__name:"Onboarding",setup(e){const{repositories:t,fetchRepositories:n}=v3(),l=j(!1),o=j("folder"),r=j(!1),s=t1(()=>t.value.length>0);function a(){try{localStorage.setItem(L7,"yes")}catch{}l.value=!1}return d2(async()=>{let i=null;try{i=localStorage.getItem(L7)}catch{i=null}i||(await n(),o.value=t.value.length?"model":"folder",l.value=!0)}),(i,c)=>(h(),G(f(Ht),{open:l.value,"max-width":"xl",onClose:a},{default:x(()=>[o.value==="folder"?(h(),w(n1,{key:0},[c[4]||(c[4]=y("h2",{class:"text-lg font-semibold mb-1"},"Point it at some code",-1)),c[5]||(c[5]=y("p",{class:"text-sm text-muted-foreground mb-5"}," SourceAnt reads a folder on this machine into a graph, and keeps what you record about it beside the code it belongs to. Nothing leaves this machine. ",-1)),y("div",Id,[M(f(b1),{onClick:c[0]||(c[0]=d=>r.value=!0)},{default:x(()=>[M(f(p3),{class:"mr-1.5 h-3.5 w-3.5"}),c[3]||(c[3]=U(" Add a folder ",-1))]),_:1}),M(f(b1),{variant:"outline",onClick:c[1]||(c[1]=d=>o.value="model")},{default:x(()=>[s.value?(h(),w(n1,{key:0},[U("Next")],64)):(h(),w(n1,{key:1},[U("Skip for now")],64)),M(f(hu),{class:"ml-1.5 h-3.5 w-3.5"})]),_:1})]),M(Bn,{open:r.value,onClose:c[2]||(c[2]=d=>r.value=!1),onAdded:f(n)},null,8,["open","onAdded"])],64)):(h(),w(n1,{key:1},[c[7]||(c[7]=y("h2",{class:"text-lg font-semibold mb-1"},"Add a model and API key",-1)),c[8]||(c[8]=y("p",{class:"text-sm text-muted-foreground mb-5"}," Reading your code and reading what it already states about itself need no model at all. Proposing what nobody wrote down does. Your key stays on this machine and goes to that provider and nowhere else. ",-1)),M(Fn,{group:"Model",onSaved:a}),M(f(b1),{variant:"ghost",class:"mt-4",onClick:a},{default:x(()=>[...c[6]||(c[6]=[U("Skip for now",-1)])]),_:1})],64))]),_:1},8,["open"]))}},Ed={class:"flex h-screen flex-col bg-background"},Dd={class:"z-40 h-12 shrink-0 border-b bg-card/80 backdrop-blur-sm"},Zd={class:"flex items-center h-full min-w-0 px-3 gap-1 sm:px-4"},Fd={class:"hidden lg:flex items-center gap-0.5 min-w-0"},Bd={class:"hidden xl:inline"},Sd={class:"relative shrink-0","data-dropdown":"user"},Rd={key:0,class:"absolute top-full right-0 mt-1 w-52 bg-card border rounded-lg shadow-lg py-1 z-50"},Qd=["aria-label"],Nd={key:0,class:"lg:hidden shrink-0 border-b bg-card px-4 py-2 space-y-0.5"},Kd={class:"min-h-0 flex-1 overflow-y-auto"},Gd={class:"container mx-auto flex h-full flex-col px-4 pb-4 pt-3 lg:px-6 lg:pb-6 lg:pt-4"},Od={__name:"App",setup(e){const{isDark:t,toggleTheme:n,restoreTheme:l}=Zn(),o=u5(),r=j(!1),s=j(!1),a=[{name:"Overview",href:"/",icon:kn},{name:"Knowledge",href:"/knowledge",icon:B4},{name:"Graphs",href:"/graph",icon:m5},{name:"Reviews",href:"/reviews",icon:Pe},{name:"Skills",href:"/skills",icon:bn},{name:"Repositories",href:"/repositories",icon:i4},{name:"Settings",href:"/settings",icon:pt}],i=t1(()=>Lu(sd,{seed:location.hostname||"sourceant",radius:50}).toDataUri());function c(d){d.target.closest('[data-dropdown="user"]')||(s.value=!1)}return d2(()=>{l(),document.addEventListener("click",c)}),ge(()=>document.removeEventListener("click",c)),(d,u)=>{const A=q5("RouterLink"),p=q5("RouterView");return h(),w("div",Ed,[y("header",Dd,[y("div",Zd,[M(A,{to:"/",class:"shrink-0 mr-1 sm:mr-3"},{default:x(()=>[M(f(U9),{size:"sm","show-text":!1})]),_:1}),u[7]||(u[7]=y("span",{class:"hidden lg:block h-4 w-px bg-border mx-1 shrink-0"},null,-1)),y("nav",Fd,[(h(),w(n1,null,_1(a,m=>M(A,{key:m.href,to:m.href,title:m.name,class:i1(["flex shrink-0 items-center gap-1.5 px-2 py-1 rounded-md text-sm transition-colors 2xl:px-2.5",f(o).path===m.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:x(()=>[(h(),G(k2(m.icon),{class:"h-3.5 w-3.5 shrink-0"})),y("span",Bd,Q(m.name),1)]),_:2},1032,["to","title","class"])),64))]),u[8]||(u[8]=y("div",{class:"flex-1 min-w-0"},null,-1)),y("div",Sd,[y("button",{class:"flex items-center gap-1.5 p-1 rounded-md hover:bg-muted transition-colors","aria-label":"Account",onClick:u[0]||(u[0]=qe(m=>s.value=!s.value,["stop"]))},[M(f(ha),{src:i.value,size:"sm",class:"h-6 w-6"},null,8,["src"])]),M(s0,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:x(()=>[s.value?(h(),w("div",Rd,[u[6]||(u[6]=y("div",{class:"px-3 py-2 border-b"},[y("p",{class:"text-sm font-medium truncate"},"This machine"),y("p",{class:"text-xs text-muted-foreground truncate"},"Nothing here has been shared.")],-1)),M(A,{to:"/settings",class:"flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[1]||(u[1]=m=>s.value=!1)},{default:x(()=>[M(f(pt),{class:"h-3.5 w-3.5 text-muted-foreground"}),u[5]||(u[5]=U(" Settings ",-1))]),_:1}),y("button",{class:"flex items-center gap-2 w-full px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:u[2]||(u[2]=(...m)=>f(n)&&f(n)(...m))},[(h(),G(k2(f(t)?f(In):f(wn)),{class:"h-3.5 w-3.5 text-muted-foreground"})),y("span",null,Q(f(t)?"Light mode":"Dark mode"),1)])])):W("",!0)]),_:1})]),y("button",{class:"lg:hidden shrink-0 p-1 rounded-md hover:bg-muted transition-colors","aria-label":r.value?"Close menu":"Open menu",onClick:u[3]||(u[3]=m=>r.value=!r.value)},[r.value?(h(),G(f(En),{key:1,class:"h-5 w-5"})):(h(),G(f(ku),{key:0,class:"h-5 w-5"}))],8,Qd)])]),r.value?(h(),w("div",Nd,[(h(),w(n1,null,_1(a,m=>M(A,{key:m.href,to:m.href,class:i1(["flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",f(o).path===m.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"]),onClick:u[4]||(u[4]=k=>r.value=!1)},{default:x(()=>[(h(),G(k2(m.icon),{class:"h-4 w-4"})),U(" "+Q(m.name),1)]),_:2},1032,["to","class"])),64))])):W("",!0),y("main",Kd,[y("div",Gd,[M(p)])]),M(Md)])}}},h4={__name:"EmptyMachine",setup(e){return(t,n)=>(h(),G(f(z1),{class:"text-center py-16 px-6"},{default:x(()=>[n[1]||(n[1]=y("h2",{class:"text-lg font-semibold mb-1"},"Nothing indexed yet",-1)),n[2]||(n[2]=y("p",{class:"text-muted-foreground text-sm mb-4 max-w-lg mx-auto"}," Point SourceAnt at a folder on this machine and it reads the code into a graph you can look at and record against. ",-1)),M(f(b1),{as:"a",href:"/repositories",variant:"glow"},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),n[0]||(n[0]=U(" Add a repository ",-1))]),_:1})]),_:1}))}},$d={class:"grid gap-3 mb-6 sm:grid-cols-2 lg:grid-cols-4"},Wd={class:"text-xs text-muted-foreground capitalize"},Ld={class:"mt-1 text-2xl font-semibold tabular-nums"},Pd={class:"grid gap-3"},Td={class:"flex items-center gap-1.5"},Hd={class:"flex items-center gap-1.5"},Yd={__name:"Overview",setup(e){const{repositories:t,error:n,fetchRepositories:l}=v3(),o=j([]),r=t1(()=>({repositories:t.value.length,files:o.value.reduce((s,a)=>s+a.files,0),nodes:o.value.reduce((s,a)=>s+a.nodes,0),knowledge:o.value.reduce((s,a)=>s+a.knowledge,0)}));return d2(async()=>{await l(),o.value=await Promise.all(t.value.map(async s=>{const[a,i]=await Promise.all([Z1.graph(s.name).catch(()=>null),Z1.knowledge(s.name).catch(()=>null)]);return{repository:s,files:a?a.nodes.filter(c=>c.kind==="file").length:0,nodes:a?a.nodes.length:0,knowledge:i?i.total:0}}))}),(s,a)=>(h(),w("div",null,[M(f(g3),{pillar:"memory",title:"Overview",sub:"What SourceAnt has on this machine."},{icon:x(()=>[M(f(kn),{class:"h-6 w-6"})]),_:1}),f(n)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(n)),1)]),_:1})):W("",!0),!f(n)&&f(t).length===0?(h(),G(h4,{key:1})):f(t).length?(h(),w(n1,{key:2},[y("div",$d,[(h(!0),w(n1,null,_1(r.value,(i,c)=>(h(),G(f(z1),{key:c,class:"p-5"},{default:x(()=>[y("p",Wd,Q(c),1),y("p",Ld,Q(i.toLocaleString()),1)]),_:2},1024))),128))]),y("div",Pd,[(h(!0),w(n1,null,_1(o.value,i=>(h(),G(f(z3),{key:i.repository.name,title:i.repository.name,subtitle:i.repository.path,hover:""},{icon:x(()=>[M(f(p5),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:i.files?"success":"warning"},{default:x(()=>[U(Q(i.files?"Indexed":"Not indexed"),1)]),_:2},1032,["variant"])]),meta:x(()=>[y("span",Td,[M(f(h5),{class:"h-3.5 w-3.5"}),U(Q(i.files.toLocaleString())+" files ",1)]),y("span",Hd,[M(f(Y4),{class:"h-3.5 w-3.5"}),U(Q(i.knowledge.toLocaleString())+" recorded ",1)])]),actions:x(()=>[M(f(b1),{as:"a",href:"/graph",variant:"ghost",size:"sm"},{default:x(()=>[...a[0]||(a[0]=[U("Graph",-1)])]),_:1})]),_:2},1032,["title","subtitle"]))),128))]),a[1]||(a[1]=y("p",{class:"mt-4 text-xs text-muted-foreground"}," Reviews are not here. A review reads a pull request, and nothing on this machine produces one. ",-1))],64)):W("",!0)]))}};function Vd(){const e=j(null),t=j(!1),n=j(null);async function l(o,r,s={}){t.value=!0,n.value=null;try{e.value=await Z1.graph(`${o}/${r}`,s),n.value=null}catch(a){e.value=null,n.value=a}finally{t.value=!1}}return{graph:e,loading:t,fetchCodeGraph:l,failureFor:()=>n.value}}function Ud(){const e=j(null);async function t(){return e.value={nodes:[],links:[]},e.value}return{fetchGraph:t,failureFor:()=>null}}const Jd={key:0},zd={class:"inline-flex w-full rounded-md border bg-muted/40 p-0.5"},jd=["onClick"],Xd={class:"mt-1.5 text-[11px] text-muted-foreground"},qd={key:1},ef={class:"relative"},tf={key:2},nf={class:"space-y-0.5"},lf=["onClick"],of={class:"flex-1 truncate text-foreground"},rf={class:"tabular-nums text-muted-foreground"},sf={key:3},af={class:"flex flex-wrap gap-1.5"},cf=["onClick"],uf={key:4},df={class:"flex cursor-pointer items-center gap-2 text-[11px] text-muted-foreground"},ff={key:5},Af={key:6},hf={class:"mb-1.5 flex items-center justify-between"},pf=["disabled"],mf={key:0,class:"mt-1 text-[11px] text-muted-foreground"},gf={key:1,class:"mt-1.5 space-y-1.5"},vf={class:"flex items-start gap-1.5 text-[11px]"},yf={class:"min-w-0 break-words"},bf={class:"font-medium"},kf={class:"min-w-0"},Cf={class:"min-w-0"},wf={class:"overflow-hidden rounded-lg border bg-card"},xf={class:"text-xs text-muted-foreground"},_f={class:"space-y-1"},If={class:"mx-auto max-w-sm text-xs text-muted-foreground"},Mf={key:0,class:"mt-2 text-xs text-warning"},Ef={key:1,class:"mt-2 text-xs text-muted-foreground"},Df={key:2,class:"mt-2 text-xs text-muted-foreground"},Sn=W1({__name:"GraphWorkbench",props:{repository:{},sources:{default:()=>["knowledge","code"]},controls:{default:()=>["filter","kinds","parts","layouts","depth","retired"]},height:{default:"640px"}},emits:["select"],setup(e,{expose:t,emit:n}){const l=e,o=n,{fetchGraph:r,failureFor:s}=Ud(),{legend:a}=G0(),{graph:i,loading:c,fetchCodeGraph:d,failureFor:u}=Vd(),A=j(l.sources[0]??"knowledge"),p=j(null),m=j(!1),k=t1(()=>A.value==="code"?i.value:p.value),D=t1(()=>A.value==="code"?c.value:m.value),F=t1(()=>A.value==="code"?u("code-graph"):s("graph")),C=t1(()=>l.repository.split("/").pop()??l.repository),I=t1(()=>!!k.value&&k.value.nodes.length>0);function v(z){return l.controls.includes(z)}const S=j(""),L=j(2),Z=j([]),_=j(""),R=j("2d"),B=j([]),q=j(!1),V=t1(()=>!!S.value),m1=t1(()=>{var K;const z=(K=k.value)==null?void 0:K.nodes.find(f1=>f1.id===S.value);return(z==null?void 0:z.name)??S.value.replace(/^(file|symbol):/,"")}),y1=t1(()=>{var z;return((z=k.value)==null?void 0:z.communities)??[]}),l1=j(50),o1=t1(()=>y1.value.slice(0,l1.value));q1(y1,()=>{l1.value=50});const v1=[{id:"2d",label:"2D"},{id:"3d",label:"3D"},{id:"tree",label:"Tree"},{id:"radial",label:"Radial"},{id:"layered",label:"Layered"},{id:"web",label:"Force"}],C1={knowledge:"Knowledge",code:"Code"},k1=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];async function s1(){const[z,K]=l.repository.split("/");if(!z||!K){p.value=null;return}if(A.value==="code"){await d(z,K,{focus:S.value||void 0,depth:V.value?L.value:void 0,q:_.value.trim()||void 0});return}m.value=!0;try{p.value=await r(z,K,{focus:S.value||void 0,depth:V.value?L.value:void 0,kind:Z.value,q:_.value.trim()||void 0,status:q.value?"all":void 0})}finally{m.value=!1}}let O1=null;function F1(){O1&&clearTimeout(O1),O1=setTimeout(s1,250)}q1([L,Z,_,q],F1,{deep:!0}),q1(S,s1),q1(A,()=>{S.value="",B.value=[],s1()}),q1(()=>l.repository,()=>{S.value="",B.value=[],s1()},{immediate:!0});function V1(z){o("select",z),v("depth")&&(S.value=S.value===z?"":z)}function e2(){S.value=""}function a1(z){Z.value=Z.value.includes(z)?Z.value.filter(K=>K!==z):[...Z.value,z]}function h1(z){B.value=B.value.includes(z)?B.value.filter(K=>K!==z):[...B.value,z]}const $=t1(()=>l.sources.length>1||v("filter")||v("kinds")||v("parts")||v("layouts")||v("depth")||v("retired"));return t({reload:s1}),(z,K)=>{var f1,x1,g,b;return h(),w("div",{class:i1(["grid gap-4 lg:items-start",$.value?"lg:grid-cols-[16rem_1fr]":""])},[$.value?(h(),w("aside",{key:0,class:"space-y-4 overflow-y-auto rounded-lg border bg-card p-3",style:M2({height:e.height})},[e.sources.length>1?(h(),w("div",Jd,[K[6]||(K[6]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Draw",-1)),y("div",zd,[(h(!0),w(n1,null,_1(e.sources,E=>(h(),w("button",{key:E,type:"button",class:i1(["flex-1 rounded px-2 py-1 text-xs font-medium transition-colors",A.value===E?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:P=>A.value=E},Q(C1[E]),11,jd))),128))]),y("p",Xd,Q(A.value==="code"?"What is defined and what calls what, read from the code.":"What your team decided, and the files it covers."),1)])):W("",!0),v("filter")?(h(),w("div",qd,[K[7]||(K[7]=y("label",{class:"mb-1.5 block text-[11px] font-medium uppercase tracking-wide text-muted-foreground"}," Only what mentions ",-1)),y("div",ef,[M(f(_n),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),Ke(y("input",{"onUpdate:modelValue":K[0]||(K[0]=E=>_.value=E),type:"search",placeholder:"a word",class:"w-full rounded-md border bg-background py-1.5 pl-8 pr-2 text-sm"},null,512),[[R6,_.value]])])])):W("",!0),v("parts")&&A.value==="code"&&y1.value.length?(h(),w("div",tf,[K[8]||(K[8]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Parts",-1)),y("ul",nf,[(h(!0),w(n1,null,_1(o1.value,E=>(h(),w("li",{key:E.id},[y("button",{type:"button",class:i1(["flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] transition-colors hover:bg-muted",B.value.includes(E.id)?"opacity-40":""]),onClick:P=>h1(E.id)},[y("span",{class:"h-2.5 w-2.5 shrink-0 rounded-full",style:M2({backgroundColor:k1[E.id%k1.length]})},null,4),y("span",of,Q(E.name),1),y("span",rf,Q(E.size),1)],10,lf)]))),128))]),l1.valuel1.value+=50)},{default:x(()=>[U("Show more parts ("+Q(l1.value)+" of "+Q(y1.value.length)+")",1)]),_:1})):W("",!0),K[9]||(K[9]=y("p",{class:"mt-1.5 text-[11px] text-muted-foreground"}," Grouped by what calls what. Click one to hide it. ",-1))])):W("",!0),v("kinds")&&A.value==="knowledge"?(h(),w("div",sf,[K[10]||(K[10]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Kinds",-1)),y("div",af,[(h(!0),w(n1,null,_1(f(a),E=>(h(),w("button",{key:E.label,type:"button",class:i1(["inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] transition-colors",Z.value.includes(E.label.toLowerCase())?"border-primary/40 bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"]),onClick:P=>a1(E.label.toLowerCase())},[y("span",{class:"h-2 w-2 rounded-sm",style:M2({backgroundColor:E.color})},null,4),U(" "+Q(E.label),1)],10,cf))),128)),Z.value.length?(h(),w("button",{key:0,type:"button",class:"text-[11px] text-muted-foreground underline-offset-2 hover:underline",onClick:K[2]||(K[2]=E=>Z.value=[])},"Any")):W("",!0)])])):W("",!0),v("retired")&&A.value==="knowledge"?(h(),w("div",uf,[y("label",df,[Ke(y("input",{"onUpdate:modelValue":K[3]||(K[3]=E=>q.value=E),type:"checkbox",class:"h-3 w-3 rounded border"},null,512),[[i0,q.value]]),K[11]||(K[11]=U(" Include retired records ",-1))])])):W("",!0),v("layouts")?(h(),w("div",ff,[K[12]||(K[12]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Shape",-1)),M(f(ye),{modelValue:R.value,"onUpdate:modelValue":K[4]||(K[4]=E=>R.value=E),tabs:v1,label:"Shape",class:"grid w-full grid-cols-2"},null,8,["modelValue"])])):W("",!0),v("depth")?(h(),w("div",Af,[y("div",hf,[y("span",{class:i1(["text-[11px] font-medium uppercase tracking-wide",V.value?"text-muted-foreground":"text-muted-foreground/50"])}," Steps out ",2),y("span",{class:i1(["font-mono text-xs",V.value?"":"opacity-50"])},Q(L.value),3)]),Ke(y("input",{"onUpdate:modelValue":K[5]||(K[5]=E=>L.value=E),type:"range",min:"1",max:"5",disabled:!V.value,class:"w-full"},null,8,pf),[[R6,L.value,void 0,{number:!0}]]),V.value?(h(),w("div",gf,[y("p",vf,[M(f(yu),{class:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),y("span",yf,[K[13]||(K[13]=U("From ",-1)),y("span",bf,Q(m1.value),1)])]),y("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-1 rounded-md border px-2 py-1 text-[11px] hover:bg-muted",onClick:e2},[M(f(En),{class:"h-3 w-3"}),K[14]||(K[14]=U(" Draw everything ",-1))])])):(h(),w("p",mf," Click anything on the graph to walk out from it. "))])):W("",!0)],4)):W("",!0),y("div",kf,[y("div",{class:i1(["grid gap-4",z.$slots.inspector?"lg:grid-cols-[1fr_20rem]":""])},[y("div",Cf,[y("div",wf,[D.value?(h(),w("div",{key:0,class:"flex",style:M2({height:e.height})},[M(f(vn),{label:A.value==="code"?"Reading the code":"Reading the knowledge graph",note:"Large repositories can take longer to load.",size:"sm"},null,8,["label"])],4)):F.value?(h(),w("div",{key:1,role:"alert",class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:M2({height:e.height})},[K[16]||(K[16]=y("p",{class:"text-sm font-medium"},"Could not load this graph",-1)),y("p",xf,Q(F.value.message),1),M(f(b1),{variant:"outline",size:"sm",onClick:s1},{default:x(()=>[...K[15]||(K[15]=[U("Try again",-1)])]),_:1})],4)):I.value?(h(),G(f(ba),{key:3,repo:C.value,mode:R.value,data:k.value,hidden:B.value,height:e.height,onSelect:V1},null,8,["repo","mode","data","hidden","height"])):(h(),w("div",{key:2,class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:M2({height:e.height})},[M(f(m5),{class:"h-7 w-7 text-muted-foreground"}),y("div",_f,[K[17]||(K[17]=y("p",{class:"text-sm font-medium"},"Nothing to draw",-1)),y("p",If,Q(A.value==="code"?"This repository has not been read yet, so there is no code map for it.":"Initialize this repository and approve what it proposes, and its decisions appear here."),1)])],4))]),(f1=k.value)!=null&&f1.truncated?(h(),w("p",Mf," More than fits in one drawing, so this is the most connected part of it. Narrow it"+Q($.value?" on the left":"")+", or click something to walk out from it. ",1)):W("",!0),I.value?(h(),w("p",Ef,Q((x1=k.value)==null?void 0:x1.nodes.length)+" symbols, "+Q((g=k.value)==null?void 0:g.links.length)+" connections. ",1)):W("",!0),I.value&&!((b=k.value)!=null&&b.links.length)?(h(),w("p",Df," No connections were found between these files. ")):W("",!0)]),z.$slots.inspector?(h(),w("div",{key:0,class:"overflow-y-auto rounded-lg border bg-card",style:M2({height:e.height})},[K1(z.$slots,"inspector")],4)):W("",!0)],2)])],2)}}}),Zf={class:"flex h-full min-h-0 flex-col"},Ff=["value"],Bf={__name:"Graph",setup(e){const{repositories:t,chosen:n,error:l,fetchRepositories:o}=v3();return d2(o),(r,s)=>(h(),w("div",Zf,[M(f(g3),{title:"Graphs",sub:"Your code, and how it holds together."},{icon:x(()=>[M(f(m5),{class:"h-6 w-6"})]),actions:x(()=>[f(t).length>1?(h(),G(f(X2),{key:0,modelValue:f(n),"onUpdate:modelValue":s[0]||(s[0]=a=>n2(n)?n.value=a:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),w(n1,null,_1(f(t),a=>(h(),w("option",{key:a.name,value:a.name},Q(a.name),9,Ff))),128))]),_:1},8,["modelValue"])):W("",!0)]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(l)),1)]),_:1})):W("",!0),f(t).length===0?(h(),G(h4,{key:1})):(h(),G(Sn,{key:f(n),repository:f(n),sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 15rem)"},null,8,["repository"]))]))}},Sf=["value"],Rf=["value"],Qf=["value"],Nf={key:4,class:"grid gap-3"},Kf={class:"text-sm text-muted-foreground"},Gf={key:0,class:"mt-2 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"},Of={class:"break-all font-mono"},$f={class:"text-lg font-semibold mb-4"},Wf={class:"space-y-4"},Lf={class:"flex items-center gap-2 pt-2"},Pf={__name:"Knowledge",setup(e){const t=["decision","convention","constraint","pattern","workaround","requirement"],{repositories:n,chosen:l,error:o,mixed:r,fetchRepositories:s}=v3({all:!0});async function a(Z){Z&&(l.value=Z)}const i=j([]),c=j(null),d=j({id:"",kind:"decision",summary:"",why:""}),u=j(""),A=j(!1),p=j(!1),m=j(!1),k=j(null),D=j(!1);async function F(){try{const Z=await Z1.settings(),_=Z.find(B=>B.key==="model.name"),R=Z.find(B=>B.key==="model.api_key");D.value=!!(_!=null&&_.value)&&!!(R!=null&&R.is_set)}catch{D.value=!1}}async function C(Z=!1){const _=Z?m:p;_.value=!0,k.value=null;try{const R=await Z1.initialize(l.value,{useModel:Z});k.value=R.recorded,o.value="",await I()}catch(R){o.value=R.message}finally{_.value=!1}}async function I(){if(l.value)try{const Z=await Z1.knowledge(l.value);i.value=Z.items,o.value=""}catch(Z){i.value=[],o.value=Z.message}}function v(Z){var _;c.value=Z??{fresh:!0},d.value=Z?{id:Z.id,kind:Z.kind,summary:Z.summary,why:((_=Z.properties)==null?void 0:_.why)??""}:{id:"",kind:"decision",summary:"",why:""},u.value=""}async function S(){var Z,_,R;if(!d.value.id.trim()||!d.value.summary.trim()){u.value="A name and what is true are both needed.";return}A.value=!0;try{await Z1.recordKnowledge({repository:l.value,id:d.value.id.trim(),kind:d.value.kind,status:((Z=c.value)==null?void 0:Z.status)??"accepted",summary:d.value.summary.trim(),properties:d.value.why.trim()?{...((_=c.value)==null?void 0:_.properties)??{},why:d.value.why.trim()}:((R=c.value)==null?void 0:R.properties)??{}}),c.value=null,await I()}catch(B){u.value=B.message}finally{A.value=!1}}async function L(Z){if(confirm(`Forget ${Z.id}?`)){try{await Z1.forgetKnowledge(l.value,Z.id)}catch(_){o.value=_.message}await I()}}return q1(l,I),d2(async()=>{await s(),await Promise.all([I(),F()])}),(Z,_)=>{const R=q5("X");return h(),w("div",null,[M(f(g3),{pillar:"memory",title:"Knowledge",sub:"The decisions, conventions and constraints behind this code."},{icon:x(()=>[M(f(Y4),{class:"h-6 w-6"})]),actions:x(()=>[f(n).length>1?(h(),G(f(X2),{key:0,modelValue:f(l),"onUpdate:modelValue":_[0]||(_[0]=B=>n2(l)?l.value=B:null),size:"sm","aria-label":"Repository"},{default:x(()=>[y("option",{value:f(Vt)},"All repositories",8,Sf),(h(!0),w(n1,null,_1(f(n),B=>(h(),w("option",{key:B.name,value:B.name},Q(B.name),9,Rf))),128))]),_:1},8,["modelValue"])):W("",!0),f(n).length&&f(l)?(h(),G(f(b1),{key:1,size:"sm",variant:"outline",disabled:p.value,onClick:C},{default:x(()=>[p.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(mt),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(p.value?"Finding…":"Find in what the repo states"),1)]),_:1},8,["disabled"])):W("",!0),f(n).length&&D.value&&f(l)?(h(),G(f(b1),{key:2,size:"sm",variant:"outline",disabled:m.value,onClick:_[1]||(_[1]=B=>C(!0))},{default:x(()=>[m.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(Mn),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(m.value?"Finding…":"Find more with a model"),1)]),_:1},8,["disabled"])):W("",!0),f(n).length&&f(l)?(h(),G(f(b1),{key:3,size:"sm",variant:"glow",onClick:_[2]||(_[2]=B=>v(null))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),_[10]||(_[10]=U(" Record something ",-1))]),_:1})):f(n).length?(h(),G(f(X2),{key:4,"model-value":"",size:"sm","aria-label":"Choose a repository","onUpdate:modelValue":a},{default:x(()=>[_[11]||(_[11]=y("option",{value:""},"Choose a repository…",-1)),(h(!0),w(n1,null,_1(f(n),B=>(h(),w("option",{key:B.name,value:B.name},Q(B.name),9,Qf))),128))]),_:1})):W("",!0)]),_:1}),f(o)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(o)),1)]),_:1})):W("",!0),k.value!==null?(h(),G(f(u2),{key:1,tone:"info",class:"mb-4"},{default:x(()=>[k.value?(h(),w(n1,{key:0},[U(" Read "+Q(k.value)+" thing"+Q(k.value===1?"":"s")+" this repository already states. Nobody has agreed to any of it, so it is all proposed. ",1)],64)):(h(),w(n1,{key:1},[U(" This repository does not state anything in the places projects usually write these down: a decision record, or a conventions section in a contributing guide. ")],64))]),_:1})):W("",!0),f(n).length===0?(h(),G(h4,{key:2})):i.value.length===0?(h(),G(f(Le),{key:3,title:"Nothing recorded yet"},{actions:x(()=>[M(f(b1),{variant:"glow",onClick:_[3]||(_[3]=B=>v(null))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),_[12]||(_[12]=U(" Record something ",-1))]),_:1}),M(f(b1),{variant:"outline",disabled:p.value,onClick:C},{default:x(()=>[p.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(mt),{key:1,class:"mr-2 h-4 w-4"})),_[13]||(_[13]=U(" Read what the repo states ",-1))]),_:1},8,["disabled"])]),default:x(()=>[_[14]||(_[14]=U(" Why a thing is the way it is outlives the code that does it. Write one down and every agent reading this repository over MCP gets it too. ",-1))]),_:1})):(h(),w("div",Nf,[(h(!0),w(n1,null,_1(i.value,B=>(h(),G(f(z3),{key:`${B.repository??""}${B.id}`,title:B.id,pillar:"memory"},{icon:x(()=>[M(f(Y4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:"secondary"},{default:x(()=>[U(Q(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:x(()=>[U(Q(B.status),1)]),_:2},1024)):W("",!0),f(r)&&B.repository?(h(),G(f(yn),{key:1,name:B.repository},{icon:x(()=>[M(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):W("",!0)]),actions:x(()=>[B.status===Z.PROPOSED?(h(),w(n1,{key:0},[M(f(b1),{variant:"outline",size:"sm",disabled:Z.deciding===B.id,"aria-label":`Accept ${B.id}`,onClick:q=>Z.decide(B,Z.ACCEPTED)},{default:x(()=>[Z.deciding===B.id?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(pe),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),_[16]||(_[16]=U(" Accept ",-1))]),_:2},1032,["disabled","aria-label","onClick"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":`Throw out ${B.id}`,onClick:q=>Z.decide(B,null)},{default:x(()=>[M(R,{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])],64)):(h(),w(n1,{key:1},[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Edit",onClick:q=>v(B)},{default:x(()=>[M(f(wu),{class:"h-4 w-4"})]),_:1},8,["onClick"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":"Remove",onClick:q=>L(B)},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1},8,["onClick"])],64))]),default:x(()=>{var q;return[y("p",Kf,Q(B.summary),1),(q=B.properties)!=null&&q.why?(h(),w("dl",Gf,[_[15]||(_[15]=y("dt",{class:"text-muted-foreground"},"why",-1)),y("dd",Of,Q(B.properties.why),1)])):W("",!0)]}),_:2},1032,["title"]))),128))])),M(f(Ht),{open:!!c.value,"max-width":"xl",onClose:_[9]||(_[9]=B=>c.value=null)},{default:x(()=>{var B;return[y("h2",$f,Q((B=c.value)!=null&&B.fresh?"Record something":"Edit"),1),y("div",Wf,[M(f(Q2),{label:"Name",hint:"What this will be called, and how it is found again."},{default:x(()=>{var q;return[M(f(J3),{modelValue:d.value.id,"onUpdate:modelValue":_[4]||(_[4]=V=>d.value.id=V),readonly:!((q=c.value)!=null&&q.fresh),placeholder:"retry-limit"},null,8,["modelValue","readonly"])]}),_:1}),M(f(Q2),{label:"Kind"},{default:x(()=>[M(f(X2),{modelValue:d.value.kind,"onUpdate:modelValue":_[5]||(_[5]=q=>d.value.kind=q),class:"w-full"},{default:x(()=>[(h(),w(n1,null,_1(t,q=>y("option",{key:q},Q(q),1)),64))]),_:1},8,["modelValue"])]),_:1}),M(f(Q2),{label:"What is true"},{default:x(()=>[M(f(ut),{modelValue:d.value.summary,"onUpdate:modelValue":_[6]||(_[6]=q=>d.value.summary=q),placeholder:"Charges retry three times, then stop."},null,8,["modelValue"])]),_:1}),M(f(Q2),{label:"Why",hint:"What stops somebody undoing it next year."},{default:x(()=>[M(f(ut),{modelValue:d.value.why,"onUpdate:modelValue":_[7]||(_[7]=q=>d.value.why=q),placeholder:"The provider rate limits after four."},null,8,["modelValue"])]),_:1}),u.value?(h(),G(f(u2),{key:0,tone:"danger"},{default:x(()=>[U(Q(u.value),1)]),_:1})):W("",!0),y("div",Lf,[M(f(b1),{disabled:A.value,onClick:S},{default:x(()=>[M(f(pe),{class:"mr-1.5 h-3.5 w-3.5"}),_[17]||(_[17]=U(" Save ",-1))]),_:1},8,["disabled"]),M(f(b1),{variant:"outline",onClick:_[8]||(_[8]=q=>c.value=null)},{default:x(()=>[..._[18]||(_[18]=[U("Cancel",-1)])]),_:1})])])]}),_:1},8,["open"])])}}};function vt(e){if(!e)return"";const t=new Date(e),n=Math.round((Date.now()-t.getTime())/6e4);if(n<1)return"just now";if(n<60)return`${n} minute${n===1?"":"s"} ago`;const l=Math.round(n/60);return l<24?`${l} hour${l===1?"":"s"} ago`:t.toLocaleDateString()}const Tf={key:2,class:"grid gap-3"},Hf={class:"flex items-center gap-1.5"},Yf={class:"flex items-center gap-1.5"},Vf={class:"flex items-center gap-1.5"},Uf={key:1,class:"text-primary"},Jf={__name:"Repositories",setup(e){const t=ve(),{repositories:n,error:l,fetchRepositories:o}=v3(),r=j({}),s=j(""),a=j(!1),i=j({}),c=t1(()=>n.value.some(C=>C.reading));let d=null;async function u(){for(const C of n.value){const I=await Z1.graph(C.name).catch(()=>null);r.value={...r.value,[C.name]:I?{files:I.nodes.filter(v=>v.kind==="file").length,links:I.links.length}:null}}}async function A(){await o(),await u(),p()}function p(){clearTimeout(d),c.value&&(d=setTimeout(async()=>{await o(),c.value||await u(),p()},2e3))}async function m(C){s.value=C;try{const[I]=await Z1.index(C);i.value={...i.value,[C]:I},l.value=""}catch(I){l.value=I.message}s.value="",await A()}function k(C){return C?C.indexed?`Read ${C.indexed.toLocaleString()} files just now.`:"Nothing had changed.":""}function D(C){return C.reading?"Reading…":C.indexed_at?`Read ${vt(C.indexed_at)}`:"Not read yet"}async function F(C){if(confirm(`Stop covering ${C.path}? + */const Bn=M1("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function K2(e){return e.replace(/&/g,"&").replace(/'/g,"'").replace(/"/g,""").replace(//g,">")}function Ru(e){var t,n,l,o,s,r,a;const i=(t=e.meta)===null||t===void 0?void 0:t.title,c=(n=e.meta)===null||n===void 0?void 0:n.creator,u=(l=e.meta)===null||l===void 0?void 0:l.source,d=(s=(o=e.meta)===null||o===void 0?void 0:o.license)===null||s===void 0?void 0:s.url,A=Qu(e);return!i&&!c&&!u&&!d&&!A?"":''+(i?`${K2(i)}`:"")+(c?`${K2(c)}`:"")+(u?`${K2((a=(r=e.meta)===null||r===void 0?void 0:r.source)!==null&&a!==void 0?a:"")}`:"")+(d?`${K2(d)}`:"")+(A?`${K2(A)}`:"")+""}function Qu(e){var t,n,l,o,s,r,a,i,c,u,d,A,p,m,v;let M=!((t=e.meta)===null||t===void 0)&&t.title?`„${(n=e.meta)===null||n===void 0?void 0:n.title}”`:"Design",Z=`„${(o=(l=e.meta)===null||l===void 0?void 0:l.creator)!==null&&o!==void 0?o:"Unknown"}”`;!((s=e.meta)===null||s===void 0)&&s.source&&(M+=` (${e.meta.source})`);let k="";return((a=(r=e.meta)===null||r===void 0?void 0:r.license)===null||a===void 0?void 0:a.name)!=="MIT"&&((i=e.meta)===null||i===void 0?void 0:i.creator)!=="DiceBear"&&(!((c=e.meta)===null||c===void 0)&&c.title)&&(k+="Remix of "),k+=`${M} by ${Z}`,!((d=(u=e.meta)===null||u===void 0?void 0:u.license)===null||d===void 0)&&d.name&&(k+=`, licensed under „${(p=(A=e.meta)===null||A===void 0?void 0:A.license)===null||p===void 0?void 0:p.name}”`,!((v=(m=e.meta)===null||m===void 0?void 0:m.license)===null||v===void 0)&&v.url&&(k+=` (${e.meta.license.url})`)),k}const W7=-2147483648,Nu=2147483647,Ku=1024;function Sn(e){return e^=e<<13,e^=e>>17,e^=e<<5,e}function Gu(e){let t=0;for(let n=0;nt=Sn(t),l=(o,s)=>Math.floor((n()-W7)/(Nu-W7)*(s+1-o)+o);return{seed:e,next:n,bool(o=50){return l(1,100)<=o},integer(o,s){return l(o,s)},pick(o,s){var r;return o.length===0?(n(),s):(r=o[l(0,o.length-1)])!==null&&r!==void 0?r:s},shuffle(o){const s=U4(n().toString()),r=[...o];for(let a=r.length-1;a>0;a--){const i=s.integer(0,a);[r[a],r[i]]=[r[i],r[a]]}return r},string(o,s="abcdefghijklmnopqrstuvwxyz1234567890"){const r=U4(n().toString());let a="";for(let i=0;i`;switch(l){case"solid":return c+e.body;case"gradientLinear":return``+e.body}}function Ou(e,t){let{width:n,height:l,x:o,y:s}=ke(e),r=t?(t-100)/100:0,a=(n/2+o)*r*-1,i=(l/2+s)*r*-1;return`${e.body}`}function Wu(e,t,n){let l=ke(e),o=(l.width+l.x*2)*((t??0)/100),s=(l.height+l.y*2)*((n??0)/100);return`${e.body}`}function Lu(e,t){let{width:n,height:l,x:o,y:s}=ke(e);return`${e.body}`}function Pu(e){let{width:t,x:n}=ke(e);return`${e.body}`}function Tu(e,t){let{width:n,height:l,x:o,y:s}=ke(e),r=t?n*t/100:0,a=t?l*t/100:0;return`${e.body}`}function Hu(e){const t={xmlns:"http://www.w3.org/2000/svg",...e.attributes};return Object.keys(t).map(n=>`${K2(n)}="${K2(t[n])}"`).join(" ")}function Vu(e){const t=U4(Math.random().toString()),n={};return e.body.replace(/(id="|url\(#)([a-z0-9-_]+)([")])/gi,(l,o,s,r)=>(n[s]=n[s]||t.string(8),`${o}${n[s]}${r}`))}const Yu={properties:{seed:{type:"string"},flip:{type:"boolean",default:!1},rotate:{type:"integer",minimum:0,maximum:360,default:0},scale:{type:"integer",minimum:0,maximum:200,default:100},radius:{type:"integer",minimum:0,maximum:50,default:0},size:{type:"integer",minimum:1},backgroundColor:{type:"array",items:{type:"string",pattern:"^(transparent|[a-fA-F0-9]{6})$"}},backgroundType:{type:"array",items:{type:"string",enum:["solid","gradientLinear"]},default:["solid"]},backgroundRotation:{type:"array",items:{type:"integer",minimum:-360,maximum:360},default:[0,360]},translateX:{type:"integer",minimum:-100,maximum:100,default:0},translateY:{type:"integer",minimum:-100,maximum:100,default:0},clip:{type:"boolean",default:!0},randomizeIds:{type:"boolean",default:!1}}};function L7(e){var t;let n={},l=(t=e.properties)!==null&&t!==void 0?t:{};return Object.keys(l).forEach(o=>{let s=l[o];typeof s=="object"&&s.default!==void 0&&(Array.isArray(s.default)?n[o]=[...s.default]:typeof s.default=="object"?n[o]={...s.default}:n[o]=s.default)}),n}function Uu(e,t){var n;let l={...L7(Yu),...L7((n=e.schema)!==null&&n!==void 0?n:{}),...t};return JSON.parse(JSON.stringify(l))}function P7(e){return e==="transparent"?e:`#${e}`}function Ju(e,t,n){var l;let o=e.shuffle(t);o.length<=1||t.length==2&&n=="gradientLinear"?(o=t,e.next()):o=e.shuffle(t),o.length===0&&(o=["transparent"]);const s=o[0],r=(l=o[1])!==null&&l!==void 0?l:o[0];return{primary:P7(s),secondary:P7(r)}}function zu(e,t={}){var n,l,o,s,r;t=Uu(e,t);const a=U4(t.seed),i=e.create({prng:a,options:t}),c=a.pick((n=t.backgroundType)!==null&&n!==void 0?n:[],"solid"),{primary:u,secondary:d}=Ju(a,(l=t.backgroundColor)!==null&&l!==void 0?l:[],c),A=a.integer(!((o=t.backgroundRotation)===null||o===void 0)&&o.length?Math.min(...t.backgroundRotation):0,!((s=t.backgroundRotation)===null||s===void 0)&&s.length?Math.max(...t.backgroundRotation):0);t.size&&(i.attributes.width=t.size.toString(),i.attributes.height=t.size.toString()),t.scale!==void 0&&t.scale!==100&&(i.body=Ou(i,t.scale)),t.flip&&(i.body=Pu(i)),t.rotate&&(i.body=Lu(i,t.rotate)),(t.translateX||t.translateY)&&(i.body=Wu(i,t.translateX,t.translateY)),u!=="transparent"&&d!=="transparent"&&(i.body=$u(i,u,d,c,A)),(t.radius||t.clip)&&(i.body=Tu(i,(r=t.radius)!==null&&r!==void 0?r:0)),t.randomizeIds&&(i.body=Vu(i));const p=Hu(i),m=Ru(e),v=`${m}${i.body}`;return{toString:()=>v,toJson:()=>{var M;return{svg:v,extra:{primaryBackgroundColor:u,secondaryBackgroundColor:d,backgroundType:c,backgroundRotation:A,...(M=i.extra)===null||M===void 0?void 0:M.call(i)}}},toDataUri:()=>`data:image/svg+xml;utf8,${encodeURIComponent(v)}`}}const ju={variant01:(e,t)=>''},Xu={variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant09:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant08:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant07:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant06:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant05:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant04:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant03:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant02:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`},variant01:(e,t)=>{var n,l;return`${(l=(n=e.bodyIcon)===null||n===void 0?void 0:n.value(e,t))!==null&&l!==void 0?l:""}`}},qu={variant63:(e,t)=>'',variant62:(e,t)=>'',variant61:(e,t)=>'',variant60:(e,t)=>'',variant59:(e,t)=>'',variant58:(e,t)=>'',variant57:(e,t)=>'',variant56:(e,t)=>'',variant55:(e,t)=>'',variant54:(e,t)=>'',variant53:(e,t)=>'',variant52:(e,t)=>'',variant51:(e,t)=>'',variant50:(e,t)=>'',variant49:(e,t)=>'',variant48:(e,t)=>'',variant47:(e,t)=>'',variant46:(e,t)=>'',variant45:(e,t)=>'',variant44:(e,t)=>'',variant43:(e,t)=>'',variant42:(e,t)=>'',variant41:(e,t)=>'',variant40:(e,t)=>'',variant39:(e,t)=>'',variant38:(e,t)=>'',variant37:(e,t)=>'',variant36:(e,t)=>'',variant35:(e,t)=>'',variant34:(e,t)=>'',variant33:(e,t)=>'',variant32:(e,t)=>'',variant31:(e,t)=>'',variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>'',hat:(e,t)=>''},ed={variant30:(e,t)=>'',variant29:(e,t)=>'',variant28:(e,t)=>'',variant27:(e,t)=>'',variant26:(e,t)=>'',variant25:(e,t)=>'',variant24:(e,t)=>'',variant23:(e,t)=>'',variant22:(e,t)=>'',variant21:(e,t)=>'',variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},td={variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},nd={variant20:(e,t)=>'',variant19:(e,t)=>'',variant18:(e,t)=>'',variant17:(e,t)=>'',variant16:(e,t)=>'',variant15:(e,t)=>'',variant14:(e,t)=>'',variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},ld={variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},od={variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},sd={variant13:(e,t)=>'',variant12:(e,t)=>'',variant11:(e,t)=>'',variant10:(e,t)=>'',variant09:(e,t)=>'',variant08:(e,t)=>'',variant07:(e,t)=>'',variant06:(e,t)=>'',variant05:(e,t)=>'',variant04:(e,t)=>'',variant03:(e,t)=>'',variant02:(e,t)=>'',variant01:(e,t)=>''},rd={wavePointLongArms:(e,t)=>'',waveOkLongArms:(e,t)=>'',waveLongArms:(e,t)=>'',waveLongArm:(e,t)=>'',pointLongArm:(e,t)=>'',okLongArm:(e,t)=>'',point:(e,t)=>'',ok:(e,t)=>'',hand:(e,t)=>'',handPhone:(e,t)=>''},ad={electric:(e,t)=>'',saturn:(e,t)=>'',galaxy:(e,t)=>''},id=Object.freeze(Object.defineProperty({__proto__:null,base:ju,beard:td,body:Xu,bodyIcon:ad,brows:sd,eyes:ld,gesture:rd,glasses:od,hair:qu,lips:ed,nose:nd},Symbol.toStringTag,{value:"Module"}));function S2({prng:e,group:t,values:n=[]}){const l=id,o=e.pick(n);if(o&&l[t][o])return{name:o,value:l[t][o]}}function cd({prng:e,options:t}){const n=S2({prng:e,group:"base",values:t.base}),l=S2({prng:e,group:"body",values:t.body}),o=S2({prng:e,group:"hair",values:t.hair}),s=S2({prng:e,group:"lips",values:t.lips}),r=S2({prng:e,group:"beard",values:t.beard}),a=S2({prng:e,group:"nose",values:t.nose}),i=S2({prng:e,group:"eyes",values:t.eyes}),c=S2({prng:e,group:"glasses",values:t.glasses}),u=S2({prng:e,group:"brows",values:t.brows}),d=S2({prng:e,group:"gesture",values:t.gesture}),A=S2({prng:e,group:"bodyIcon",values:t.bodyIcon});return{base:n,body:l,hair:o,lips:s,beard:e.bool(t.beardProbability)?r:void 0,nose:a,eyes:i,glasses:e.bool(t.glassesProbability)?c:void 0,brows:u,gesture:e.bool(t.gestureProbability)?d:void 0,bodyIcon:e.bool(t.bodyIconProbability)?A:void 0}}function ud({prng:e,options:t}){return{}}const dd={$schema:"http://json-schema.org/draft-07/schema#",properties:{base:{type:"array",items:{type:"string",enum:["variant01"]},default:["variant01"]},beard:{type:"array",items:{type:"string",enum:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},beardProbability:{type:"integer",minimum:0,maximum:100,default:10},body:{type:"array",items:{type:"string",enum:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},bodyIcon:{type:"array",items:{type:"string",enum:["electric","saturn","galaxy"]},default:["electric","saturn","galaxy"]},bodyIconProbability:{type:"integer",minimum:0,maximum:100,default:75},brows:{type:"array",items:{type:"string",enum:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},eyes:{type:"array",items:{type:"string",enum:["variant05","variant04","variant03","variant02","variant01"]},default:["variant05","variant04","variant03","variant02","variant01"]},gesture:{type:"array",items:{type:"string",enum:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},default:["wavePointLongArms","waveOkLongArms","waveLongArms","waveLongArm","pointLongArm","okLongArm","point","ok","hand","handPhone"]},gestureProbability:{type:"integer",minimum:0,maximum:100,default:10},glasses:{type:"array",items:{type:"string",enum:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},glassesProbability:{type:"integer",minimum:0,maximum:100,default:20},hair:{type:"array",items:{type:"string",enum:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},default:["variant63","variant62","variant61","variant60","variant59","variant58","variant57","variant56","variant55","variant54","variant53","variant52","variant51","variant50","variant49","variant48","variant47","variant46","variant45","variant44","variant43","variant42","variant41","variant40","variant39","variant38","variant37","variant36","variant35","variant34","variant33","variant32","variant31","variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01","hat"]},lips:{type:"array",items:{type:"string",enum:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant30","variant29","variant28","variant27","variant26","variant25","variant24","variant23","variant22","variant21","variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},nose:{type:"array",items:{type:"string",enum:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]},default:["variant20","variant19","variant18","variant17","variant16","variant15","variant14","variant13","variant12","variant11","variant10","variant09","variant08","variant07","variant06","variant05","variant04","variant03","variant02","variant01"]}}},fd={title:"Notionists",creator:"Zoish",source:"https://heyzoish.gumroad.com/l/notionists",homepage:"https://bio.link/heyzoish",license:{name:"CC0 1.0",url:"https://creativecommons.org/publicdomain/zero/1.0/"}},Ad=({prng:e,options:t})=>{var n,l,o,s,r,a,i,c,u,d,A,p,m,v,M,Z,k,F,_,B;const $=cd({prng:e,options:t}),D=ud({prng:e,options:t});return{attributes:{viewBox:"0 0 1744 1744",fill:"none","shape-rendering":"auto"},body:`${(l=(n=$.base)===null||n===void 0?void 0:n.value($,D))!==null&&l!==void 0?l:""}${(s=(o=$.body)===null||o===void 0?void 0:o.value($,D))!==null&&s!==void 0?s:""}${(a=(r=$.hair)===null||r===void 0?void 0:r.value($,D))!==null&&a!==void 0?a:""}${(c=(i=$.lips)===null||i===void 0?void 0:i.value($,D))!==null&&c!==void 0?c:""}${(d=(u=$.beard)===null||u===void 0?void 0:u.value($,D))!==null&&d!==void 0?d:""}${(p=(A=$.nose)===null||A===void 0?void 0:A.value($,D))!==null&&p!==void 0?p:""}${(v=(m=$.eyes)===null||m===void 0?void 0:m.value($,D))!==null&&v!==void 0?v:""}${(Z=(M=$.glasses)===null||M===void 0?void 0:M.value($,D))!==null&&Z!==void 0?Z:""}${(F=(k=$.brows)===null||k===void 0?void 0:k.value($,D))!==null&&F!==void 0?F:""}${(B=(_=$.gesture)===null||_===void 0?void 0:_.value($,D))!==null&&B!==void 0?B:""}`,extra:()=>({...Object.entries($).reduce((w,[Q,S])=>(w[Q]=S==null?void 0:S.name,w),{}),...Object.entries(D).reduce((w,[Q,S])=>(w[`${Q}Color`]=S,w),{})})}},hd=Object.freeze(Object.defineProperty({__proto__:null,create:Ad,meta:fd,schema:dd},Symbol.toStringTag,{value:"Module"})),yt=j(!0);function T7(e){yt.value=e,document.documentElement.classList.toggle("dark",e),document.documentElement.classList.toggle("light",!e);try{localStorage.setItem("sourceant-theme",e?"dark":"light")}catch{}}function Rn(){return{isDark:yt,toggleTheme:()=>T7(!yt.value),restoreTheme:()=>{let e=null;try{e=localStorage.getItem("sourceant-theme")}catch{e=null}T7(e!=="light")}}}const pd=["value"],md={key:1,class:"flex items-center gap-2 text-sm"},gd=["id"],vd={class:"text-muted-foreground"},H7={__name:"SettingField",props:f6({setting:{type:Object,required:!0}},{modelValue:{required:!0},modelModifiers:{}}),emits:f6(["reset"],["update:modelValue"]),setup(e){const t=so(e,"modelValue");function n(l){return l.secret?l.is_set:String(l.value??"")!==String(l.default??"")}return(l,o)=>(h(),K(f(N2),{label:e.setting.label,for:e.setting.key,hint:e.setting.description},{label:x(()=>[e.setting.secret&&e.setting.is_set?(h(),K(f(u2),{key:0,variant:"success"},{default:x(()=>[...o[5]||(o[5]=[U("set",-1)])]),_:1})):L("",!0),n(e.setting)?(h(),C("button",{key:1,type:"button",class:"inline-flex items-center gap-1 text-[11px] font-normal normal-case tracking-normal text-muted-foreground hover:text-foreground",onClick:o[0]||(o[0]=s=>l.$emit("reset",e.setting))},[I(f(Bu),{class:"h-3 w-3"}),o[6]||(o[6]=U(" put back ",-1))])):L("",!0)]),default:x(()=>{var s;return[(s=e.setting.choices)!=null&&s.length?(h(),K(f(X2),{key:0,id:e.setting.key,modelValue:t.value,"onUpdate:modelValue":o[1]||(o[1]=r=>t.value=r),class:"w-full"},{default:x(()=>[(h(!0),C(n1,null,w1(e.setting.choices,r=>(h(),C("option",{key:r,value:r},R(r),9,pd))),128))]),_:1},8,["id","modelValue"])):e.setting.type==="bool"?(h(),C("label",md,[re(y("input",{id:e.setting.key,"onUpdate:modelValue":o[2]||(o[2]=r=>t.value=r),type:"checkbox",class:"h-3.5 w-3.5 rounded border"},null,8,gd),[[f0,t.value]]),y("span",vd,R(t.value?"On":"Off"),1)])):e.setting.listed?(h(),K(f(T0),{key:2,modelValue:t.value,"onUpdate:modelValue":o[3]||(o[3]=r=>t.value=r),mono:"",noun:"a folder",placeholder:"/home/you/work/knowledgebase/skills"},null,8,["modelValue"])):(h(),K(f(J3),{key:3,id:e.setting.key,modelValue:t.value,"onUpdate:modelValue":o[4]||(o[4]=r=>t.value=r),type:e.setting.secret?"password":e.setting.type==="int"||e.setting.type==="float"?"number":"text",autocomplete:e.setting.secret?"off":void 0,placeholder:e.setting.secret&&e.setting.is_set?"Leave empty to keep what is set":String(e.setting.default??"")},null,8,["id","modelValue","type","autocomplete","placeholder"]))]}),_:1},8,["label","for","hint"]))}};async function j1(e,t={}){const n=await fetch(e,{...t,headers:t.body?{"Content-Type":"application/json"}:void 0}),l=await n.text(),o=l?JSON.parse(l):null;if(!n.ok)throw new Error((o==null?void 0:o.error)||`the agent answered ${n.status}`);return o}const R2=e=>new URLSearchParams(Object.entries(e).filter(([,t])=>t!==""&&t!==!1)),Z1={status:()=>j1("/health"),repositories:()=>j1("/api/repositories"),addRepository:(e,t)=>j1("/api/repositories",{method:"POST",body:JSON.stringify({path:e,name:t})}),dropRepository:e=>j1(`/api/repositories?${R2({path:e})}`,{method:"DELETE"}),index:(e="",{everything:t=!1,update:n=!1}={})=>j1("/api/index",{method:"POST",body:JSON.stringify({repository:e,everything:t,update:n})}),attention:e=>j1(`/api/attention?${R2({repository:e})}`),graph:(e,{includeTests:t=!1,pathPrefix:n=""}={})=>j1(`/api/graph?${R2({repository:e,include_tests:t,path_prefix:n})}`),knowledge:e=>j1(`/api/knowledge?${R2({repository:e,limit:100})}`),recordKnowledge:e=>j1("/api/knowledge",{method:"PUT",body:JSON.stringify(e)}),forgetKnowledge:(e,t)=>j1(`/api/knowledge?${R2({repository:e,id:t})}`,{method:"DELETE"}),browse:(e="")=>j1(`/api/browse?${R2({path:e})}`),initialize:(e,{dryRun:t=!1,useModel:n=!1}={})=>j1("/api/knowledge/initialize",{method:"POST",body:JSON.stringify({repository:e,dry_run:t,use_model:n})}),skills:(e="")=>j1(`/api/skills?${R2({repository:e})}`),skill:(e,t="")=>j1(`/api/skills/${e}?${R2({repository:t})}`),recordSkill:e=>j1("/api/skills",{method:"PUT",body:JSON.stringify({scope:"repository",paths:[],reviews:null,...e})}),forgetSkill:(e,t,n)=>j1(`/api/skills?${R2({repository:e,scope:t,id:n})}`,{method:"DELETE"}),startReview:(e,{against:t="",title:n="",description:l="",skills:o=[],useModel:s=!0}={})=>j1("/api/reviews",{method:"POST",body:JSON.stringify({repository:e,against:t,title:n,description:l,skills:o,use_model:s})}),reviewed:e=>j1(`/api/reviews/${e}`),reviews:(e="")=>j1(`/api/reviews?${R2({repository:e})}`),settings:()=>j1("/api/settings"),setSetting:(e,t)=>j1("/api/settings",{method:"PUT",body:JSON.stringify({key:e,value:t})}),resetSetting:e=>j1(`/api/settings?${R2({key:e})}`,{method:"DELETE"})},yd={class:"space-y-4"},bd={key:0,class:"flex items-center gap-2 py-6 text-sm text-muted-foreground"},kd={key:0,class:"space-y-4 border-t pt-4"},Cd={key:1,class:"py-6 text-sm text-muted-foreground"},wd={key:3,class:"flex items-center gap-3"},xd={key:0,class:"text-xs text-success"},Qn={__name:"SettingsPanel",props:{group:{type:String,required:!0}},emits:["saved"],setup(e,{emit:t}){const n=e,l=t,o=j([]),s=j({}),r=j(!1),a=j(!0),i=j(""),c=j(!1),u=e1(()=>o.value.filter(B=>B.group===n.group)),d=e1(()=>u.value.filter(B=>!B.advanced)),A=e1(()=>u.value.filter(B=>B.advanced)),p=j(!1);function m(B){return B.secret?"":B.listed?String(B.value??"").split(` +`).map($=>$.trim()).filter(Boolean):B.value??""}const v=(B,$)=>B.listed?($??[]).join(` +`):$,M=(B,$)=>String(v(B,$)??"")===String(B.value??""),Z=e1(()=>u.value.some(B=>{const $=s.value[B.key];return B.secret?!!$:!M(B,$)}));async function k(){a.value=!0;try{o.value=await Z1.settings(),s.value=Object.fromEntries(u.value.map(B=>[B.key,m(B)])),i.value=""}catch(B){i.value=B.message}finally{a.value=!1}}async function F(){r.value=!0,c.value=!1,i.value="";try{for(const B of u.value){const $=s.value[B.key];B.secret&&!$||!B.secret&&M(B,$)||await Z1.setSetting(B.key,v(B,$))}await k(),c.value=!0,l("saved")}catch(B){i.value=B.message}finally{r.value=!1}}async function _(B){i.value="";try{await Z1.resetSetting(B.key),await k()}catch($){i.value=$.message}}return q1(()=>n.group,k),f2(k),(B,$)=>(h(),C("div",yd,[a.value?(h(),C("p",bd,[I(f(I2),{class:"h-4 w-4 animate-spin"}),$[1]||($[1]=U(" Reading what this machine can be told. ",-1))])):(h(),C(n1,{key:1},[(h(!0),C(n1,null,w1(d.value,D=>(h(),K(H7,{key:D.key,modelValue:s.value[D.key],"onUpdate:modelValue":w=>s.value[D.key]=w,setting:D,onReset:_},null,8,["modelValue","onUpdate:modelValue","setting"]))),128)),A.value.length?(h(),C("div",kd,[y("button",{type:"button",class:"flex items-center gap-1.5 text-sm text-muted-foreground hover:text-foreground",onClick:$[0]||($[0]=D=>p.value=!p.value)},[p.value?(h(),K(f(Cu),{key:0,class:"h-3.5 w-3.5"})):(h(),K(f(xu),{key:1,class:"h-3.5 w-3.5"})),U(" Tuning ("+R(A.value.length)+") ",1)]),(h(!0),C(n1,null,w1(A.value,D=>re((h(),K(H7,{key:D.key,modelValue:s.value[D.key],"onUpdate:modelValue":w=>s.value[D.key]=w,setting:D,onReset:_},null,8,["modelValue","onUpdate:modelValue","setting"])),[[d0,p.value]])),128))])):L("",!0),u.value.length?L("",!0):(h(),C("p",Cd," Nothing in this group is configurable here. ")),i.value?(h(),K(f(d2),{key:2,tone:"danger"},{default:x(()=>[U(R(i.value),1)]),_:1})):L("",!0),u.value.length?(h(),C("div",wd,[I(f(b1),{disabled:r.value||!Z.value,onClick:F},{default:x(()=>[r.value?(h(),K(f(I2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),K(f(me),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),$[2]||($[2]=U(" Save ",-1))]),_:1},8,["disabled"]),c.value&&!Z.value?(h(),C("span",xd,"Saved.")):L("",!0),G1(B.$slots,"after")])):L("",!0)],64))]))}},_d={class:"mb-2 text-xs font-mono text-muted-foreground break-all"},Id={class:"h-64 overflow-y-auto rounded-md border bg-muted/30"},Md=["onClick"],Ed={class:"truncate"},Dd={key:1,class:"px-3 py-6 text-center text-sm text-muted-foreground"},Zd={class:"mt-2 text-xs text-muted-foreground"},Fd={class:"font-mono"},Bd={key:1,role:"status",class:"mt-3 text-sm text-muted-foreground"},Sd={class:"flex items-center gap-2 pt-5"},Nn={__name:"FolderPicker",props:{open:Boolean},emits:["close","added"],setup(e,{emit:t}){const n=e,l=t,o=j(null),s=j(""),r=j(!1),a=j("");async function i(u){try{o.value=await Z1.browse(u),a.value=""}catch(d){a.value=d.message}}q1(()=>n.open,u=>{u&&(s.value="",a.value="",r.value=!1,i(""))});async function c(){if(o.value){r.value=!0,a.value="";try{await Z1.addRepository(o.value.path,s.value.trim()),l("added"),l("close")}catch(u){a.value=u.message}finally{r.value=!1}}}return(u,d)=>(h(),K(f(Ut),{open:e.open,"max-width":"lg",onClose:d[3]||(d[3]=A=>l("close"))},{default:x(()=>{var A,p,m,v;return[d[8]||(d[8]=y("h2",{class:"text-lg font-semibold mb-3"},"Add a folder",-1)),y("p",_d,R((A=o.value)==null?void 0:A.path),1),y("div",Id,[(p=o.value)!=null&&p.parent?(h(),C("button",{key:0,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:d[0]||(d[0]=M=>i(o.value.parent))},[I(f(wu),{class:"h-3.5 w-3.5"}),d[4]||(d[4]=y("span",{class:"text-muted-foreground"},"Up one",-1))])):L("",!0),(h(!0),C(n1,null,w1(((m=o.value)==null?void 0:m.entries)??[],M=>(h(),C("button",{key:M.path,class:"flex w-full items-center gap-2 px-3 py-2 text-sm hover:bg-accent",onClick:Z=>i(M.path)},[I(f(g5),{class:"h-3.5 w-3.5 text-muted-foreground"}),y("span",Ed,R(M.name),1),M.repository?(h(),K(f(u2),{key:0,variant:"glow",class:"ml-auto shrink-0"},{default:x(()=>[...d[5]||(d[5]=[U("git",-1)])]),_:1})):L("",!0)],8,Md))),128)),o.value&&o.value.entries.length===0?(h(),C("p",Dd," Nothing inside. ")):L("",!0)]),I(f(N2),{label:"Name it (optional)",for:"repo-name",class:"mt-4"},{default:x(()=>[I(f(J3),{id:"repo-name",modelValue:s.value,"onUpdate:modelValue":d[1]||(d[1]=M=>s.value=M),placeholder:"Taken from the git remote, or the folder name"},null,8,["modelValue"])]),_:1}),y("p",Zd,[d[6]||(d[6]=U(" Adding ",-1)),y("code",Fd,R((v=o.value)==null?void 0:v.path),1)]),a.value?(h(),K(f(d2),{key:0,tone:"danger",class:"mt-3"},{default:x(()=>[U(R(a.value),1)]),_:1})):L("",!0),r.value?(h(),C("p",Bd," Reading this repository. Large repositories can take several minutes. ")):L("",!0),y("div",Sd,[I(f(b1),{disabled:r.value||!o.value,onClick:c},{default:x(()=>[r.value?(h(),K(f(I2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),K(f(p3),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+R(r.value?"Reading…":"Add and index"),1)]),_:1},8,["disabled"]),I(f(b1),{variant:"outline",onClick:d[2]||(d[2]=M=>l("close"))},{default:x(()=>[...d[7]||(d[7]=[U("Cancel",-1)])]),_:1})])]}),_:1},8,["open"]))}},ee=j([]),Ze=j(""),T5=j(""),H5=j(!1),zt="";function y3({all:e=!1}={}){const t=e1(()=>e&&!Ze.value&&ee.value.length>1);async function n(){var l;H5.value=!0;try{ee.value=await Z1.repositories(),T5.value=""}catch(o){ee.value=[],T5.value=`${o.message}. Is sourceant-agent running?`}finally{H5.value=!1}Ze.value===zt&&e||ee.value.some(o=>o.name===Ze.value)||(Ze.value=((l=ee.value[0])==null?void 0:l.name)??"")}return{repositories:ee,chosen:Ze,error:T5,loading:H5,mixed:t,fetchRepositories:n}}const Rd={class:"flex items-center gap-2"},V7="sourceant-onboarded",Qd={__name:"Onboarding",setup(e){const{repositories:t,fetchRepositories:n}=y3(),l=j(!1),o=j("folder"),s=j(!1),r=e1(()=>t.value.length>0);function a(){try{localStorage.setItem(V7,"yes")}catch{}l.value=!1}return f2(async()=>{let i=null;try{i=localStorage.getItem(V7)}catch{i=null}i||(await n(),o.value=t.value.length?"model":"folder",l.value=!0)}),(i,c)=>(h(),K(f(Ut),{open:l.value,"max-width":"xl",onClose:a},{default:x(()=>[o.value==="folder"?(h(),C(n1,{key:0},[c[4]||(c[4]=y("h2",{class:"text-lg font-semibold mb-1"},"Point it at some code",-1)),c[5]||(c[5]=y("p",{class:"text-sm text-muted-foreground mb-5"}," SourceAnt reads a folder on this machine into a graph, and keeps what you record about it beside the code it belongs to. Nothing leaves this machine. ",-1)),y("div",Rd,[I(f(b1),{onClick:c[0]||(c[0]=u=>s.value=!0)},{default:x(()=>[I(f(p3),{class:"mr-1.5 h-3.5 w-3.5"}),c[3]||(c[3]=U(" Add a folder ",-1))]),_:1}),I(f(b1),{variant:"outline",onClick:c[1]||(c[1]=u=>o.value="model")},{default:x(()=>[r.value?(h(),C(n1,{key:0},[U("Next")],64)):(h(),C(n1,{key:1},[U("Skip for now")],64)),I(f(bu),{class:"ml-1.5 h-3.5 w-3.5"})]),_:1})]),I(Nn,{open:s.value,onClose:c[2]||(c[2]=u=>s.value=!1),onAdded:f(n)},null,8,["open","onAdded"])],64)):(h(),C(n1,{key:1},[c[7]||(c[7]=y("h2",{class:"text-lg font-semibold mb-1"},"Add a model and API key",-1)),c[8]||(c[8]=y("p",{class:"text-sm text-muted-foreground mb-5"}," Reading your code and reading what it already states about itself need no model at all. Proposing what nobody wrote down does. Your key stays on this machine and goes to that provider and nowhere else. ",-1)),I(Qn,{group:"Model",onSaved:a}),I(f(b1),{variant:"ghost",class:"mt-4",onClick:a},{default:x(()=>[...c[6]||(c[6]=[U("Skip for now",-1)])]),_:1})],64))]),_:1},8,["open"]))}},Nd={class:"flex h-screen flex-col bg-background"},Kd={class:"z-40 h-12 shrink-0 border-b bg-card/80 backdrop-blur-sm"},Gd={class:"flex items-center h-full min-w-0 px-3 gap-1 sm:px-4"},$d={class:"hidden lg:flex items-center gap-0.5 min-w-0"},Od={class:"hidden xl:inline"},Wd={class:"relative shrink-0","data-dropdown":"user"},Ld={key:0,class:"absolute top-full right-0 mt-1 w-52 bg-card border rounded-lg shadow-lg py-1 z-50"},Pd=["aria-label"],Td={key:0,class:"lg:hidden shrink-0 border-b bg-card px-4 py-2 space-y-0.5"},Hd={class:"min-h-0 flex-1 overflow-y-auto"},Vd={class:"container mx-auto flex h-full flex-col px-4 pb-4 pt-3 lg:px-6 lg:pb-6 lg:pt-4"},Yd={__name:"App",setup(e){const{isDark:t,toggleTheme:n,restoreTheme:l}=Rn(),o=f5(),s=j(!1),r=j(!1),a=[{name:"Overview",href:"/",icon:_n},{name:"Knowledge",href:"/knowledge",icon:B4},{name:"Graphs",href:"/graph",icon:v5},{name:"Reviews",href:"/reviews",icon:Pe},{name:"Skills",href:"/skills",icon:xn},{name:"Repositories",href:"/repositories",icon:i4},{name:"Settings",href:"/settings",icon:gt}],i=e1(()=>zu(hd,{seed:location.hostname||"sourceant",radius:50}).toDataUri());function c(u){u.target.closest('[data-dropdown="user"]')||(r.value=!1)}return f2(()=>{l(),document.addEventListener("click",c)}),ve(()=>document.removeEventListener("click",c)),(u,d)=>{const A=tt("RouterLink"),p=tt("RouterView");return h(),C("div",Nd,[y("header",Kd,[y("div",Gd,[I(A,{to:"/",class:"shrink-0 mr-1 sm:mr-3"},{default:x(()=>[I(f(eu),{size:"sm","show-text":!1})]),_:1}),d[7]||(d[7]=y("span",{class:"hidden lg:block h-4 w-px bg-border mx-1 shrink-0"},null,-1)),y("nav",$d,[(h(),C(n1,null,w1(a,m=>I(A,{key:m.href,to:m.href,title:m.name,class:i1(["flex shrink-0 items-center gap-1.5 px-2 py-1 rounded-md text-sm transition-colors 2xl:px-2.5",f(o).path===m.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"])},{default:x(()=>[(h(),K(C2(m.icon),{class:"h-3.5 w-3.5 shrink-0"})),y("span",Od,R(m.name),1)]),_:2},1032,["to","title","class"])),64))]),d[8]||(d[8]=y("div",{class:"flex-1 min-w-0"},null,-1)),y("div",Wd,[y("button",{class:"flex items-center gap-1.5 p-1 rounded-md hover:bg-muted transition-colors","aria-label":"Account",onClick:d[0]||(d[0]=qe(m=>r.value=!r.value,["stop"]))},[I(f(ba),{src:i.value,size:"sm",class:"h-6 w-6"},null,8,["src"])]),I(c0,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"opacity-0 scale-95","enter-to-class":"opacity-100 scale-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"opacity-100 scale-100","leave-to-class":"opacity-0 scale-95"},{default:x(()=>[r.value?(h(),C("div",Ld,[d[6]||(d[6]=y("div",{class:"px-3 py-2 border-b"},[y("p",{class:"text-sm font-medium truncate"},"This machine"),y("p",{class:"text-xs text-muted-foreground truncate"},"Nothing here has been shared.")],-1)),I(A,{to:"/settings",class:"flex items-center gap-2 px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:d[1]||(d[1]=m=>r.value=!1)},{default:x(()=>[I(f(gt),{class:"h-3.5 w-3.5 text-muted-foreground"}),d[5]||(d[5]=U(" Settings ",-1))]),_:1}),y("button",{class:"flex items-center gap-2 w-full px-3 py-1.5 text-sm hover:bg-muted transition-colors",onClick:d[2]||(d[2]=(...m)=>f(n)&&f(n)(...m))},[(h(),K(C2(f(t)?f(Zn):f(Mn)),{class:"h-3.5 w-3.5 text-muted-foreground"})),y("span",null,R(f(t)?"Light mode":"Dark mode"),1)])])):L("",!0)]),_:1})]),y("button",{class:"lg:hidden shrink-0 p-1 rounded-md hover:bg-muted transition-colors","aria-label":s.value?"Close menu":"Open menu",onClick:d[3]||(d[3]=m=>s.value=!s.value)},[s.value?(h(),K(f(Bn),{key:1,class:"h-5 w-5"})):(h(),K(f(Du),{key:0,class:"h-5 w-5"}))],8,Pd)])]),s.value?(h(),C("div",Td,[(h(),C(n1,null,w1(a,m=>I(A,{key:m.href,to:m.href,class:i1(["flex items-center gap-2 px-3 py-2 rounded-md text-sm transition-colors",f(o).path===m.href?"bg-primary/10 text-primary font-medium":"text-muted-foreground hover:bg-muted hover:text-foreground"]),onClick:d[4]||(d[4]=v=>s.value=!1)},{default:x(()=>[(h(),K(C2(m.icon),{class:"h-4 w-4"})),U(" "+R(m.name),1)]),_:2},1032,["to","class"])),64))])):L("",!0),y("main",Hd,[y("div",Vd,[I(p)])]),I(Qd)])}}},h4={__name:"EmptyMachine",setup(e){return(t,n)=>(h(),K(f(z1),{class:"text-center py-16 px-6"},{default:x(()=>[n[1]||(n[1]=y("h2",{class:"text-lg font-semibold mb-1"},"Nothing indexed yet",-1)),n[2]||(n[2]=y("p",{class:"text-muted-foreground text-sm mb-4 max-w-lg mx-auto"}," Point SourceAnt at a folder on this machine and it reads the code into a graph you can look at and record against. ",-1)),I(f(b1),{as:"a",href:"/repositories",variant:"glow"},{default:x(()=>[I(f(p3),{class:"mr-2 h-4 w-4"}),n[0]||(n[0]=U(" Add a repository ",-1))]),_:1})]),_:1}))}},Ud={class:"grid gap-3 mb-6 sm:grid-cols-2 lg:grid-cols-4"},Jd={class:"text-xs text-muted-foreground capitalize"},zd={class:"mt-1 text-2xl font-semibold tabular-nums"},jd={class:"grid gap-3"},Xd={class:"flex items-center gap-1.5"},qd={class:"flex items-center gap-1.5"},ef={__name:"Overview",setup(e){const{repositories:t,error:n,fetchRepositories:l}=y3(),o=j([]),s=e1(()=>({repositories:t.value.length,files:o.value.reduce((r,a)=>r+a.files,0),nodes:o.value.reduce((r,a)=>r+a.nodes,0),knowledge:o.value.reduce((r,a)=>r+a.knowledge,0)}));return f2(async()=>{await l(),o.value=await Promise.all(t.value.map(async r=>{const[a,i]=await Promise.all([Z1.graph(r.name).catch(()=>null),Z1.knowledge(r.name).catch(()=>null)]);return{repository:r,files:a?a.nodes.filter(c=>c.kind==="file").length:0,nodes:a?a.nodes.length:0,knowledge:i?i.total:0}}))}),(r,a)=>(h(),C("div",null,[I(f(v3),{pillar:"memory",title:"Overview",sub:"What SourceAnt has on this machine."},{icon:x(()=>[I(f(_n),{class:"h-6 w-6"})]),_:1}),f(n)?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(f(n)),1)]),_:1})):L("",!0),!f(n)&&f(t).length===0?(h(),K(h4,{key:1})):f(t).length?(h(),C(n1,{key:2},[y("div",Ud,[(h(!0),C(n1,null,w1(s.value,(i,c)=>(h(),K(f(z1),{key:c,class:"p-5"},{default:x(()=>[y("p",Jd,R(c),1),y("p",zd,R(i.toLocaleString()),1)]),_:2},1024))),128))]),y("div",jd,[(h(!0),C(n1,null,w1(o.value,i=>(h(),K(f(z3),{key:i.repository.name,title:i.repository.name,subtitle:i.repository.path,hover:""},{icon:x(()=>[I(f(g5),{class:"h-5 w-5"})]),badges:x(()=>[I(f(u2),{variant:i.files?"success":"warning"},{default:x(()=>[U(R(i.files?"Indexed":"Not indexed"),1)]),_:2},1032,["variant"])]),meta:x(()=>[y("span",Xd,[I(f(m5),{class:"h-3.5 w-3.5"}),U(R(i.files.toLocaleString())+" files ",1)]),y("span",qd,[I(f(Y4),{class:"h-3.5 w-3.5"}),U(R(i.knowledge.toLocaleString())+" recorded ",1)])]),actions:x(()=>[I(f(b1),{as:"a",href:"/graph",variant:"ghost",size:"sm"},{default:x(()=>[...a[0]||(a[0]=[U("Graph",-1)])]),_:1})]),_:2},1032,["title","subtitle"]))),128))]),a[1]||(a[1]=y("p",{class:"mt-4 text-xs text-muted-foreground"}," Reviews are not here. A review reads a pull request, and nothing on this machine produces one. ",-1))],64)):L("",!0)]))}};function tf(){const e=j(null),t=j(!1),n=j(null);async function l(o,s,r={}){t.value=!0,n.value=null;try{e.value=await Z1.graph(`${o}/${s}`,r),n.value=null}catch(a){e.value=null,n.value=a}finally{t.value=!1}}return{graph:e,loading:t,fetchCodeGraph:l,failureFor:()=>n.value}}function nf(){const e=j(null);async function t(){return e.value={nodes:[],links:[]},e.value}return{fetchGraph:t,failureFor:()=>null}}const lf={key:0},of={class:"inline-flex w-full rounded-md border bg-muted/40 p-0.5"},sf=["onClick"],rf={class:"mt-1.5 text-[11px] text-muted-foreground"},af={key:1},cf={class:"relative"},uf={key:2},df={class:"space-y-0.5"},ff=["onClick"],Af={class:"flex-1 truncate text-foreground"},hf={class:"tabular-nums text-muted-foreground"},pf={key:3},mf={class:"flex flex-wrap gap-1.5"},gf=["onClick"],vf={key:4},yf={class:"flex cursor-pointer items-center gap-2 text-[11px] text-muted-foreground"},bf={key:5},kf={key:6},Cf={class:"mb-1.5 flex items-center justify-between"},wf=["disabled"],xf={key:0,class:"mt-1 text-[11px] text-muted-foreground"},_f={key:1,class:"mt-1.5 space-y-1.5"},If={class:"flex items-start gap-1.5 text-[11px]"},Mf={class:"min-w-0 break-words"},Ef={class:"font-medium"},Df={class:"min-w-0"},Zf={class:"min-w-0"},Ff={class:"overflow-hidden rounded-lg border bg-card"},Bf={class:"text-xs text-muted-foreground"},Sf={class:"space-y-1"},Rf={class:"mx-auto max-w-sm text-xs text-muted-foreground"},Qf={key:0,class:"mt-2 text-xs text-warning"},Nf={key:1,class:"mt-2 text-xs text-muted-foreground"},Kf={key:2,class:"mt-2 text-xs text-muted-foreground"},Kn=L1({__name:"GraphWorkbench",props:{repository:{},sources:{default:()=>["knowledge","code"]},controls:{default:()=>["filter","kinds","parts","layouts","depth","retired"]},height:{default:"640px"}},emits:["select"],setup(e,{expose:t,emit:n}){const l=e,o=n,{fetchGraph:s,failureFor:r}=nf(),{legend:a}=L0(),{graph:i,loading:c,fetchCodeGraph:u,failureFor:d}=tf(),A=j(l.sources[0]??"knowledge"),p=j(null),m=j(!1),v=e1(()=>A.value==="code"?i.value:p.value),M=e1(()=>A.value==="code"?c.value:m.value),Z=e1(()=>A.value==="code"?d("code-graph"):r("graph")),k=e1(()=>l.repository.split("/").pop()??l.repository),F=e1(()=>!!v.value&&v.value.nodes.length>0);function _(z){return l.controls.includes(z)}const B=j(""),$=j(2),D=j([]),w=j(""),Q=j("2d"),S=j([]),q=j(!1),Y=e1(()=>!!B.value),g1=e1(()=>{var G;const z=(G=v.value)==null?void 0:G.nodes.find(f1=>f1.id===B.value);return(z==null?void 0:z.name)??B.value.replace(/^(file|symbol):/,"")}),y1=e1(()=>{var z;return((z=v.value)==null?void 0:z.communities)??[]}),l1=j(50),o1=e1(()=>y1.value.slice(0,l1.value));q1(y1,()=>{l1.value=50});const v1=[{id:"2d",label:"2D"},{id:"3d",label:"3D"},{id:"tree",label:"Tree"},{id:"radial",label:"Radial"},{id:"layered",label:"Layered"},{id:"web",label:"Force"}],C1={knowledge:"Knowledge",code:"Code"},k1=["#4E79A7","#F28E2B","#E15759","#76B7B2","#59A14F","#EDC948","#B07AA1","#FF9DA7","#9C755F","#BAB0AC"];async function r1(){const[z,G]=l.repository.split("/");if(!z||!G){p.value=null;return}if(A.value==="code"){await u(z,G,{focus:B.value||void 0,depth:Y.value?$.value:void 0,q:w.value.trim()||void 0});return}m.value=!0;try{p.value=await s(z,G,{focus:B.value||void 0,depth:Y.value?$.value:void 0,kind:D.value,q:w.value.trim()||void 0,status:q.value?"all":void 0})}finally{m.value=!1}}let O1=null;function F1(){O1&&clearTimeout(O1),O1=setTimeout(r1,250)}q1([$,D,w,q],F1,{deep:!0}),q1(B,r1),q1(A,()=>{B.value="",S.value=[],r1()}),q1(()=>l.repository,()=>{B.value="",S.value=[],r1()},{immediate:!0});function Y1(z){o("select",z),_("depth")&&(B.value=B.value===z?"":z)}function e2(){B.value=""}function a1(z){D.value=D.value.includes(z)?D.value.filter(G=>G!==z):[...D.value,z]}function h1(z){S.value=S.value.includes(z)?S.value.filter(G=>G!==z):[...S.value,z]}const W=e1(()=>l.sources.length>1||_("filter")||_("kinds")||_("parts")||_("layouts")||_("depth")||_("retired"));return t({reload:r1}),(z,G)=>{var f1,_1,g,b;return h(),C("div",{class:i1(["grid gap-4 lg:items-start",W.value?"lg:grid-cols-[16rem_1fr]":""])},[W.value?(h(),C("aside",{key:0,class:"space-y-4 overflow-y-auto rounded-lg border bg-card p-3",style:E2({height:e.height})},[e.sources.length>1?(h(),C("div",lf,[G[6]||(G[6]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Draw",-1)),y("div",of,[(h(!0),C(n1,null,w1(e.sources,E=>(h(),C("button",{key:E,type:"button",class:i1(["flex-1 rounded px-2 py-1 text-xs font-medium transition-colors",A.value===E?"bg-card text-foreground shadow-sm":"text-muted-foreground hover:text-foreground"]),onClick:P=>A.value=E},R(C1[E]),11,sf))),128))]),y("p",rf,R(A.value==="code"?"What is defined and what calls what, read from the code.":"What your team decided, and the files it covers."),1)])):L("",!0),_("filter")?(h(),C("div",af,[G[7]||(G[7]=y("label",{class:"mb-1.5 block text-[11px] font-medium uppercase tracking-wide text-muted-foreground"}," Only what mentions ",-1)),y("div",cf,[I(f(Dn),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),re(y("input",{"onUpdate:modelValue":G[0]||(G[0]=E=>w.value=E),type:"search",placeholder:"a word",class:"w-full rounded-md border bg-background py-1.5 pl-8 pr-2 text-sm"},null,512),[[K6,w.value]])])])):L("",!0),_("parts")&&A.value==="code"&&y1.value.length?(h(),C("div",uf,[G[8]||(G[8]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Parts",-1)),y("ul",df,[(h(!0),C(n1,null,w1(o1.value,E=>(h(),C("li",{key:E.id},[y("button",{type:"button",class:i1(["flex w-full items-center gap-2 rounded-md px-1 py-1 text-left text-[11px] transition-colors hover:bg-muted",S.value.includes(E.id)?"opacity-40":""]),onClick:P=>h1(E.id)},[y("span",{class:"h-2.5 w-2.5 shrink-0 rounded-full",style:E2({backgroundColor:k1[E.id%k1.length]})},null,4),y("span",Af,R(E.name),1),y("span",hf,R(E.size),1)],10,ff)]))),128))]),l1.valuel1.value+=50)},{default:x(()=>[U("Show more parts ("+R(l1.value)+" of "+R(y1.value.length)+")",1)]),_:1})):L("",!0),G[9]||(G[9]=y("p",{class:"mt-1.5 text-[11px] text-muted-foreground"}," Grouped by what calls what. Click one to hide it. ",-1))])):L("",!0),_("kinds")&&A.value==="knowledge"?(h(),C("div",pf,[G[10]||(G[10]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Kinds",-1)),y("div",mf,[(h(!0),C(n1,null,w1(f(a),E=>(h(),C("button",{key:E.label,type:"button",class:i1(["inline-flex items-center gap-1.5 rounded-full border px-2 py-0.5 text-[11px] transition-colors",D.value.includes(E.label.toLowerCase())?"border-primary/40 bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"]),onClick:P=>a1(E.label.toLowerCase())},[y("span",{class:"h-2 w-2 rounded-sm",style:E2({backgroundColor:E.color})},null,4),U(" "+R(E.label),1)],10,gf))),128)),D.value.length?(h(),C("button",{key:0,type:"button",class:"text-[11px] text-muted-foreground underline-offset-2 hover:underline",onClick:G[2]||(G[2]=E=>D.value=[])},"Any")):L("",!0)])])):L("",!0),_("retired")&&A.value==="knowledge"?(h(),C("div",vf,[y("label",yf,[re(y("input",{"onUpdate:modelValue":G[3]||(G[3]=E=>q.value=E),type:"checkbox",class:"h-3 w-3 rounded border"},null,512),[[f0,q.value]]),G[11]||(G[11]=U(" Include retired records ",-1))])])):L("",!0),_("layouts")?(h(),C("div",bf,[G[12]||(G[12]=y("p",{class:"mb-1.5 text-[11px] font-medium uppercase tracking-wide text-muted-foreground"},"Shape",-1)),I(f(be),{modelValue:Q.value,"onUpdate:modelValue":G[4]||(G[4]=E=>Q.value=E),tabs:v1,label:"Shape",class:"grid w-full grid-cols-2"},null,8,["modelValue"])])):L("",!0),_("depth")?(h(),C("div",kf,[y("div",Cf,[y("span",{class:i1(["text-[11px] font-medium uppercase tracking-wide",Y.value?"text-muted-foreground":"text-muted-foreground/50"])}," Steps out ",2),y("span",{class:i1(["font-mono text-xs",Y.value?"":"opacity-50"])},R($.value),3)]),re(y("input",{"onUpdate:modelValue":G[5]||(G[5]=E=>$.value=E),type:"range",min:"1",max:"5",disabled:!Y.value,class:"w-full"},null,8,wf),[[K6,$.value,void 0,{number:!0}]]),Y.value?(h(),C("div",_f,[y("p",If,[I(f(Mu),{class:"mt-0.5 h-3 w-3 shrink-0 text-primary"}),y("span",Mf,[G[13]||(G[13]=U("From ",-1)),y("span",Ef,R(g1.value),1)])]),y("button",{type:"button",class:"inline-flex w-full items-center justify-center gap-1 rounded-md border px-2 py-1 text-[11px] hover:bg-muted",onClick:e2},[I(f(Bn),{class:"h-3 w-3"}),G[14]||(G[14]=U(" Draw everything ",-1))])])):(h(),C("p",xf," Click anything on the graph to walk out from it. "))])):L("",!0)],4)):L("",!0),y("div",Df,[y("div",{class:i1(["grid gap-4",z.$slots.inspector?"lg:grid-cols-[1fr_20rem]":""])},[y("div",Zf,[y("div",Ff,[M.value?(h(),C("div",{key:0,class:"flex",style:E2({height:e.height})},[I(f(Cn),{label:A.value==="code"?"Reading the code":"Reading the knowledge graph",note:"Large repositories can take longer to load.",size:"sm"},null,8,["label"])],4)):Z.value?(h(),C("div",{key:1,role:"alert",class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:E2({height:e.height})},[G[16]||(G[16]=y("p",{class:"text-sm font-medium"},"Could not load this graph",-1)),y("p",Bf,R(Z.value.message),1),I(f(b1),{variant:"outline",size:"sm",onClick:r1},{default:x(()=>[...G[15]||(G[15]=[U("Try again",-1)])]),_:1})],4)):F.value?(h(),K(f(Ia),{key:3,repo:k.value,mode:Q.value,data:v.value,hidden:S.value,height:e.height,onSelect:Y1},null,8,["repo","mode","data","hidden","height"])):(h(),C("div",{key:2,class:"flex flex-col items-center justify-center gap-3 px-6 text-center",style:E2({height:e.height})},[I(f(v5),{class:"h-7 w-7 text-muted-foreground"}),y("div",Sf,[G[17]||(G[17]=y("p",{class:"text-sm font-medium"},"Nothing to draw",-1)),y("p",Rf,R(A.value==="code"?"This repository has not been read yet, so there is no code map for it.":"Initialize this repository and approve what it proposes, and its decisions appear here."),1)])],4))]),(f1=v.value)!=null&&f1.truncated?(h(),C("p",Qf," More than fits in one drawing, so this is the most connected part of it. Narrow it"+R(W.value?" on the left":"")+", or click something to walk out from it. ",1)):L("",!0),F.value?(h(),C("p",Nf,R((_1=v.value)==null?void 0:_1.nodes.length)+" symbols, "+R((g=v.value)==null?void 0:g.links.length)+" connections. ",1)):L("",!0),F.value&&!((b=v.value)!=null&&b.links.length)?(h(),C("p",Kf," No connections were found between these files. ")):L("",!0)]),z.$slots.inspector?(h(),C("div",{key:0,class:"overflow-y-auto rounded-lg border bg-card",style:E2({height:e.height})},[G1(z.$slots,"inspector")],4)):L("",!0)],2)])],2)}}}),Gf={class:"flex h-full min-h-0 flex-col"},$f=["value"],Of={__name:"Graph",setup(e){const{repositories:t,chosen:n,error:l,fetchRepositories:o}=y3();return f2(o),(s,r)=>(h(),C("div",Gf,[I(f(v3),{title:"Graphs",sub:"Your code, and how it holds together."},{icon:x(()=>[I(f(v5),{class:"h-6 w-6"})]),actions:x(()=>[f(t).length>1?(h(),K(f(X2),{key:0,modelValue:f(n),"onUpdate:modelValue":r[0]||(r[0]=a=>n2(n)?n.value=a:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),C(n1,null,w1(f(t),a=>(h(),C("option",{key:a.name,value:a.name},R(a.name),9,$f))),128))]),_:1},8,["modelValue"])):L("",!0)]),_:1}),f(l)?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(f(l)),1)]),_:1})):L("",!0),f(t).length===0?(h(),K(h4,{key:1})):(h(),K(Kn,{key:f(n),repository:f(n),sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 15rem)"},null,8,["repository"]))]))}},Wf=["value"],Lf=["value"],Pf=["value"],Tf={key:4,class:"grid gap-3"},Hf={class:"text-sm text-muted-foreground"},Vf={key:0,class:"mt-2 grid grid-cols-[auto_1fr] gap-x-3 gap-y-1 text-xs"},Yf={class:"break-all font-mono"},Uf={class:"text-lg font-semibold mb-4"},Jf={class:"space-y-4"},zf={class:"flex items-center gap-2 pt-2"},jf={__name:"Knowledge",setup(e){const t=["decision","convention","constraint","pattern","workaround","requirement"],{repositories:n,chosen:l,error:o,mixed:s,fetchRepositories:r}=y3({all:!0});async function a(D){D&&(l.value=D)}const i=j([]),c=j(null),u=j({id:"",kind:"decision",summary:"",why:""}),d=j(""),A=j(!1),p=j(!1),m=j(!1),v=j(null),M=j(!1);async function Z(){try{const D=await Z1.settings(),w=D.find(S=>S.key==="model.name"),Q=D.find(S=>S.key==="model.api_key");M.value=!!(w!=null&&w.value)&&!!(Q!=null&&Q.is_set)}catch{M.value=!1}}async function k(D=!1){const w=D?m:p;w.value=!0,v.value=null;try{const Q=await Z1.initialize(l.value,{useModel:D});v.value=Q.recorded,o.value="",await F()}catch(Q){o.value=Q.message}finally{w.value=!1}}async function F(){if(l.value)try{const D=await Z1.knowledge(l.value);i.value=D.items,o.value=""}catch(D){i.value=[],o.value=D.message}}function _(D){var w;c.value=D??{fresh:!0},u.value=D?{id:D.id,kind:D.kind,summary:D.summary,why:((w=D.properties)==null?void 0:w.why)??""}:{id:"",kind:"decision",summary:"",why:""},d.value=""}async function B(){var D,w,Q;if(!u.value.id.trim()||!u.value.summary.trim()){d.value="A name and what is true are both needed.";return}A.value=!0;try{await Z1.recordKnowledge({repository:l.value,id:u.value.id.trim(),kind:u.value.kind,status:((D=c.value)==null?void 0:D.status)??"accepted",summary:u.value.summary.trim(),properties:u.value.why.trim()?{...((w=c.value)==null?void 0:w.properties)??{},why:u.value.why.trim()}:((Q=c.value)==null?void 0:Q.properties)??{}}),c.value=null,await F()}catch(S){d.value=S.message}finally{A.value=!1}}async function $(D){if(confirm(`Forget ${D.id}?`)){try{await Z1.forgetKnowledge(l.value,D.id)}catch(w){o.value=w.message}await F()}}return q1(l,F),f2(async()=>{await r(),await Promise.all([F(),Z()])}),(D,w)=>{const Q=tt("X");return h(),C("div",null,[I(f(v3),{pillar:"memory",title:"Knowledge",sub:"The decisions, conventions and constraints behind this code."},{icon:x(()=>[I(f(Y4),{class:"h-6 w-6"})]),actions:x(()=>[f(n).length>1?(h(),K(f(X2),{key:0,modelValue:f(l),"onUpdate:modelValue":w[0]||(w[0]=S=>n2(l)?l.value=S:null),size:"sm","aria-label":"Repository"},{default:x(()=>[y("option",{value:f(zt)},"All repositories",8,Wf),(h(!0),C(n1,null,w1(f(n),S=>(h(),C("option",{key:S.name,value:S.name},R(S.name),9,Lf))),128))]),_:1},8,["modelValue"])):L("",!0),f(n).length&&f(l)?(h(),K(f(b1),{key:1,size:"sm",variant:"outline",disabled:p.value,onClick:k},{default:x(()=>[p.value?(h(),K(f(I2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),K(f(vt),{key:1,class:"mr-2 h-4 w-4"})),U(" "+R(p.value?"Finding…":"Find in what the repo states"),1)]),_:1},8,["disabled"])):L("",!0),f(n).length&&M.value&&f(l)?(h(),K(f(b1),{key:2,size:"sm",variant:"outline",disabled:m.value,onClick:w[1]||(w[1]=S=>k(!0))},{default:x(()=>[m.value?(h(),K(f(I2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),K(f(Fn),{key:1,class:"mr-2 h-4 w-4"})),U(" "+R(m.value?"Finding…":"Find more with a model"),1)]),_:1},8,["disabled"])):L("",!0),f(n).length&&f(l)?(h(),K(f(b1),{key:3,size:"sm",variant:"glow",onClick:w[2]||(w[2]=S=>_(null))},{default:x(()=>[I(f(p3),{class:"mr-2 h-4 w-4"}),w[10]||(w[10]=U(" Record something ",-1))]),_:1})):f(n).length?(h(),K(f(X2),{key:4,"model-value":"",size:"sm","aria-label":"Choose a repository","onUpdate:modelValue":a},{default:x(()=>[w[11]||(w[11]=y("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,w1(f(n),S=>(h(),C("option",{key:S.name,value:S.name},R(S.name),9,Pf))),128))]),_:1})):L("",!0)]),_:1}),f(o)?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(f(o)),1)]),_:1})):L("",!0),v.value!==null?(h(),K(f(d2),{key:1,tone:"info",class:"mb-4"},{default:x(()=>[v.value?(h(),C(n1,{key:0},[U(" Read "+R(v.value)+" thing"+R(v.value===1?"":"s")+" this repository already states. Nobody has agreed to any of it, so it is all proposed. ",1)],64)):(h(),C(n1,{key:1},[U(" This repository does not state anything in the places projects usually write these down: a decision record, or a conventions section in a contributing guide. ")],64))]),_:1})):L("",!0),f(n).length===0?(h(),K(h4,{key:2})):i.value.length===0?(h(),K(f(Le),{key:3,title:"Nothing recorded yet"},{actions:x(()=>[I(f(b1),{variant:"glow",onClick:w[3]||(w[3]=S=>_(null))},{default:x(()=>[I(f(p3),{class:"mr-2 h-4 w-4"}),w[12]||(w[12]=U(" Record something ",-1))]),_:1}),I(f(b1),{variant:"outline",disabled:p.value,onClick:k},{default:x(()=>[p.value?(h(),K(f(I2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),K(f(vt),{key:1,class:"mr-2 h-4 w-4"})),w[13]||(w[13]=U(" Read what the repo states ",-1))]),_:1},8,["disabled"])]),default:x(()=>[w[14]||(w[14]=U(" Why a thing is the way it is outlives the code that does it. Write one down and every agent reading this repository over MCP gets it too. ",-1))]),_:1})):(h(),C("div",Tf,[(h(!0),C(n1,null,w1(i.value,S=>(h(),K(f(z3),{key:`${S.repository??""}${S.id}`,title:S.id,pillar:"memory"},{icon:x(()=>[I(f(Y4),{class:"h-5 w-5"})]),badges:x(()=>[I(f(u2),{variant:"secondary"},{default:x(()=>[U(R(S.kind),1)]),_:2},1024),S.status?(h(),K(f(u2),{key:0,variant:"outline"},{default:x(()=>[U(R(S.status),1)]),_:2},1024)):L("",!0),f(s)&&S.repository?(h(),K(f(wn),{key:1,name:S.repository},{icon:x(()=>[I(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):L("",!0)]),actions:x(()=>[S.status===D.PROPOSED?(h(),C(n1,{key:0},[I(f(b1),{variant:"outline",size:"sm",disabled:D.deciding===S.id,"aria-label":`Accept ${S.id}`,onClick:q=>D.decide(S,D.ACCEPTED)},{default:x(()=>[D.deciding===S.id?(h(),K(f(I2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),K(f(me),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),w[16]||(w[16]=U(" Accept ",-1))]),_:2},1032,["disabled","aria-label","onClick"]),I(f(b1),{variant:"ghost",size:"icon","aria-label":`Throw out ${S.id}`,onClick:q=>D.decide(S,null)},{default:x(()=>[I(Q,{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])],64)):(h(),C(n1,{key:1},[I(f(b1),{variant:"ghost",size:"icon","aria-label":"Edit",onClick:q=>_(S)},{default:x(()=>[I(f(Fu),{class:"h-4 w-4"})]),_:1},8,["onClick"]),I(f(b1),{variant:"ghost",size:"icon","aria-label":"Remove",onClick:q=>$(S)},{default:x(()=>[I(f(A4),{class:"h-4 w-4"})]),_:1},8,["onClick"])],64))]),default:x(()=>{var q;return[y("p",Hf,R(S.summary),1),(q=S.properties)!=null&&q.why?(h(),C("dl",Vf,[w[15]||(w[15]=y("dt",{class:"text-muted-foreground"},"why",-1)),y("dd",Yf,R(S.properties.why),1)])):L("",!0)]}),_:2},1032,["title"]))),128))])),I(f(Ut),{open:!!c.value,"max-width":"xl",onClose:w[9]||(w[9]=S=>c.value=null)},{default:x(()=>{var S;return[y("h2",Uf,R((S=c.value)!=null&&S.fresh?"Record something":"Edit"),1),y("div",Jf,[I(f(N2),{label:"Name",hint:"What this will be called, and how it is found again."},{default:x(()=>{var q;return[I(f(J3),{modelValue:u.value.id,"onUpdate:modelValue":w[4]||(w[4]=Y=>u.value.id=Y),readonly:!((q=c.value)!=null&&q.fresh),placeholder:"retry-limit"},null,8,["modelValue","readonly"])]}),_:1}),I(f(N2),{label:"Kind"},{default:x(()=>[I(f(X2),{modelValue:u.value.kind,"onUpdate:modelValue":w[5]||(w[5]=q=>u.value.kind=q),class:"w-full"},{default:x(()=>[(h(),C(n1,null,w1(t,q=>y("option",{key:q},R(q),1)),64))]),_:1},8,["modelValue"])]),_:1}),I(f(N2),{label:"What is true"},{default:x(()=>[I(f(ft),{modelValue:u.value.summary,"onUpdate:modelValue":w[6]||(w[6]=q=>u.value.summary=q),placeholder:"Charges retry three times, then stop."},null,8,["modelValue"])]),_:1}),I(f(N2),{label:"Why",hint:"What stops somebody undoing it next year."},{default:x(()=>[I(f(ft),{modelValue:u.value.why,"onUpdate:modelValue":w[7]||(w[7]=q=>u.value.why=q),placeholder:"The provider rate limits after four."},null,8,["modelValue"])]),_:1}),d.value?(h(),K(f(d2),{key:0,tone:"danger"},{default:x(()=>[U(R(d.value),1)]),_:1})):L("",!0),y("div",zf,[I(f(b1),{disabled:A.value,onClick:B},{default:x(()=>[I(f(me),{class:"mr-1.5 h-3.5 w-3.5"}),w[17]||(w[17]=U(" Save ",-1))]),_:1},8,["disabled"]),I(f(b1),{variant:"outline",onClick:w[8]||(w[8]=q=>c.value=null)},{default:x(()=>[...w[18]||(w[18]=[U("Cancel",-1)])]),_:1})])])]}),_:1},8,["open"])])}}};function bt(e){if(!e)return"";const t=new Date(e),n=Math.round((Date.now()-t.getTime())/6e4);if(n<1)return"just now";if(n<60)return`${n} minute${n===1?"":"s"} ago`;const l=Math.round(n/60);return l<24?`${l} hour${l===1?"":"s"} ago`:t.toLocaleDateString()}const Xf={key:2,class:"grid gap-3"},qf={class:"flex items-center gap-1.5"},eA={class:"flex items-center gap-1.5"},tA={class:"flex items-center gap-1.5"},nA={key:1,class:"text-primary"},lA={__name:"Repositories",setup(e){const t=ye(),{repositories:n,error:l,fetchRepositories:o}=y3(),s=j({}),r=j(""),a=j(!1),i=j({}),c=e1(()=>n.value.some(k=>k.reading));let u=null;async function d(){for(const k of n.value){const F=await Z1.graph(k.name).catch(()=>null);s.value={...s.value,[k.name]:F?{files:F.nodes.filter(_=>_.kind==="file").length,links:F.links.length}:null}}}async function A(){await o(),await d(),p()}function p(){clearTimeout(u),c.value&&(u=setTimeout(async()=>{await o(),c.value||await d(),p()},2e3))}async function m(k){r.value=k;try{const[F]=await Z1.index(k);i.value={...i.value,[k]:F},l.value=""}catch(F){l.value=F.message}r.value="",await A()}function v(k){return k?k.indexed?`Read ${k.indexed.toLocaleString()} files just now.`:"Nothing had changed.":""}function M(k){return k.reading?"Reading…":k.indexed_at?`Read ${bt(k.indexed_at)}`:"Not read yet"}async function Z(k){if(confirm(`Stop covering ${k.path}? -What was already indexed is left alone.`)){try{await Z1.dropRepository(C.path)}catch(I){l.value=I.message}await A()}}return d2(A),ge(()=>clearTimeout(d)),(C,I)=>(h(),w("div",null,[M(f(g3),{title:"Repositories",sub:"The folders SourceAnt reads on this machine."},{icon:x(()=>[M(f(i4),{class:"h-6 w-6"})]),actions:x(()=>[M(f(b1),{variant:"glow",onClick:I[0]||(I[0]=v=>a.value=!0)},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),I[3]||(I[3]=U(" Add a folder ",-1))]),_:1})]),_:1}),f(l)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(l)),1)]),_:1})):W("",!0),f(n).length===0?(h(),G(f(Le),{key:1,title:"No folders yet"},{actions:x(()=>[M(f(b1),{variant:"glow",onClick:I[1]||(I[1]=v=>a.value=!0)},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),I[4]||(I[4]=U(" Add a folder ",-1))]),_:1})]),default:x(()=>[I[5]||(I[5]=U(" Point SourceAnt at a repository and it reads the files into a graph. ",-1))]),_:1})):(h(),w("div",Tf,[(h(!0),w(n1,null,_1(f(n),v=>(h(),G(f(z3),{key:v.path,title:v.name,subtitle:v.path,hover:"",class:"cursor-pointer",onClick:S=>f(t).push(`/repositories/${v.name}`)},{icon:x(()=>[M(f(p5),{class:"h-5 w-5"})]),meta:x(()=>[r.value[v.name]?(h(),w(n1,{key:0},[y("span",Hf,[M(f(h5),{class:"h-3.5 w-3.5"}),U(Q(r.value[v.name].files.toLocaleString())+" files ",1)]),y("span",Yf,[M(f(Cn),{class:"h-3.5 w-3.5"}),U(Q(r.value[v.name].links.toLocaleString())+" links ",1)])],64)):W("",!0),y("span",Vf,[v.reading?(h(),G(f(_2),{key:0,class:"h-3.5 w-3.5 animate-spin"})):W("",!0),U(" "+Q(D(v)),1)]),i.value[v.name]?(h(),w("span",Uf,Q(k(i.value[v.name])),1)):W("",!0)]),actions:x(()=>[M(f(b1),{variant:"outline",size:"sm",disabled:s.value===v.name||v.reading,onClick:qe(S=>m(v.name),["stop"])},{default:x(()=>[s.value===v.name?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(xn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(s.value===v.name?"Reading…":"Re-index"),1)]),_:2},1032,["disabled","onClick"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":`Remove ${v.name}`,onClick:qe(S=>F(v),["stop"])},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])]),_:2},1032,["title","subtitle","onClick"]))),128))])),M(Bn,{open:a.value,onClose:I[2]||(I[2]=v=>a.value=!1),onAdded:A},null,8,["open"])]))}};function Ut(){const e=ve();return t=>e.push(t)}const zf={class:"flex h-full min-h-0 flex-col"},jf={key:1,class:"space-y-3"},Xf={class:"flex flex-wrap gap-x-8 gap-y-3"},qf={class:"flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted-foreground"},eA={class:"mt-0.5 text-lg font-semibold"},tA={key:0,class:"mt-4 text-sm text-primary"},nA={key:1,class:"mt-4 text-sm text-muted-foreground"},lA={class:"mt-4 flex flex-wrap gap-2"},oA={class:"mb-4 mt-0.5 text-sm text-muted-foreground"},rA={class:"space-y-2"},sA=["title"],aA={class:"hidden h-1.5 w-24 shrink-0 overflow-hidden rounded-full bg-muted sm:block"},iA={class:"w-28 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},cA={class:"w-24 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},uA={key:2,class:"space-y-3"},dA={class:"text-sm text-muted-foreground"},fA={key:3,class:"space-y-3"},AA={class:"text-sm text-muted-foreground"},hA={__name:"Repository",setup(e){const t=u5(),n=ve(),l=Ut(),{repositories:o,chosen:r,fetchRepositories:s}=v3(),a=t1(()=>String(t.params.name??"")),i=t1(()=>o.value.find(Z=>Z.name===a.value)),c=j("overview"),d=j(null),u=j([]),A=j([]),p=j({files:[],since:""}),m=j(!1),k=j(null),D=j(""),F=t1(()=>{var Z,_,R;return[{label:"Files",value:((Z=d.value)==null?void 0:Z.files)??0,icon:h5},{label:"Connections",value:((_=d.value)==null?void 0:_.links)??0,icon:Cn},{label:"Parts",value:((R=d.value)==null?void 0:R.parts)??0,icon:m5},{label:"Recorded",value:u.value.length,icon:B4},{label:"Rules",value:A.value.length,icon:c4}]}),C=t1(()=>{var Z;return((Z=p.value.files[0])==null?void 0:Z.changes)||1}),I=t1(()=>[{id:"overview",label:"Overview"},{id:"knowledge",label:`Knowledge${u.value.length?` ${u.value.length}`:""}`},{id:"skills",label:`Skills${A.value.length?` ${A.value.length}`:""}`},{id:"graph",label:"Graph"}]);async function v(){if(!a.value)return;r.value=a.value;const[Z,_,R,B]=await Promise.all([Z1.graph(a.value).catch(()=>null),Z1.knowledge(a.value).catch(()=>({items:[]})),Z1.skills(a.value).catch(()=>({skills:[]})),Z1.attention(a.value).catch(()=>({files:[],since:""}))]);d.value=Z?{files:Z.nodes.filter(q=>q.kind==="file").length,links:Z.links.length,parts:(Z.communities??[]).length}:null,u.value=_.items??[],A.value=R.skills??[],p.value=B}async function S(){m.value=!0;try{const[Z]=await Z1.index(a.value);k.value=Z,D.value=""}catch(Z){D.value=Z.message}m.value=!1,await v()}async function L(){if(confirm(`Stop covering ${i.value.path}? +What was already indexed is left alone.`)){try{await Z1.dropRepository(k.path)}catch(F){l.value=F.message}await A()}}return f2(A),ve(()=>clearTimeout(u)),(k,F)=>(h(),C("div",null,[I(f(v3),{title:"Repositories",sub:"The folders SourceAnt reads on this machine."},{icon:x(()=>[I(f(i4),{class:"h-6 w-6"})]),actions:x(()=>[I(f(b1),{variant:"glow",onClick:F[0]||(F[0]=_=>a.value=!0)},{default:x(()=>[I(f(p3),{class:"mr-2 h-4 w-4"}),F[3]||(F[3]=U(" Add a folder ",-1))]),_:1})]),_:1}),f(l)?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(f(l)),1)]),_:1})):L("",!0),f(n).length===0?(h(),K(f(Le),{key:1,title:"No folders yet"},{actions:x(()=>[I(f(b1),{variant:"glow",onClick:F[1]||(F[1]=_=>a.value=!0)},{default:x(()=>[I(f(p3),{class:"mr-2 h-4 w-4"}),F[4]||(F[4]=U(" Add a folder ",-1))]),_:1})]),default:x(()=>[F[5]||(F[5]=U(" Point SourceAnt at a repository and it reads the files into a graph. ",-1))]),_:1})):(h(),C("div",Xf,[(h(!0),C(n1,null,w1(f(n),_=>(h(),K(f(z3),{key:_.path,title:_.name,subtitle:_.path,hover:"",class:"cursor-pointer",onClick:B=>f(t).push(`/repositories/${_.name}`)},{icon:x(()=>[I(f(g5),{class:"h-5 w-5"})]),meta:x(()=>[s.value[_.name]?(h(),C(n1,{key:0},[y("span",qf,[I(f(m5),{class:"h-3.5 w-3.5"}),U(R(s.value[_.name].files.toLocaleString())+" files ",1)]),y("span",eA,[I(f(In),{class:"h-3.5 w-3.5"}),U(R(s.value[_.name].links.toLocaleString())+" links ",1)])],64)):L("",!0),y("span",tA,[_.reading?(h(),K(f(I2),{key:0,class:"h-3.5 w-3.5 animate-spin"})):L("",!0),U(" "+R(M(_)),1)]),i.value[_.name]?(h(),C("span",nA,R(v(i.value[_.name])),1)):L("",!0)]),actions:x(()=>[I(f(b1),{variant:"outline",size:"sm",disabled:r.value===_.name||_.reading,onClick:qe(B=>m(_.name),["stop"])},{default:x(()=>[r.value===_.name?(h(),K(f(I2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),K(f(En),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+R(r.value===_.name?"Reading…":"Re-index"),1)]),_:2},1032,["disabled","onClick"]),I(f(b1),{variant:"ghost",size:"icon","aria-label":`Remove ${_.name}`,onClick:qe(B=>Z(_),["stop"])},{default:x(()=>[I(f(A4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])]),_:2},1032,["title","subtitle","onClick"]))),128))])),I(Nn,{open:a.value,onClose:F[2]||(F[2]=_=>a.value=!1),onAdded:A},null,8,["open"])]))}};function jt(){const e=ye();return t=>e.push(t)}const oA={class:"flex h-full min-h-0 flex-col"},sA={key:1,class:"space-y-3"},rA={class:"flex flex-wrap gap-x-8 gap-y-3"},aA={class:"flex items-center gap-1.5 text-xs uppercase tracking-wider text-muted-foreground"},iA={class:"mt-0.5 text-lg font-semibold"},cA={key:0,class:"mt-4 text-sm text-primary"},uA={key:1,class:"mt-4 text-sm text-muted-foreground"},dA={class:"mt-4 flex flex-wrap gap-2"},fA={class:"mb-4 mt-0.5 text-sm text-muted-foreground"},AA={class:"space-y-2"},hA=["title"],pA={class:"hidden h-1.5 w-24 shrink-0 overflow-hidden rounded-full bg-muted sm:block"},mA={class:"w-28 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},gA={class:"w-24 shrink-0 text-right text-xs tabular-nums text-muted-foreground"},vA={key:2,class:"space-y-3"},yA={class:"text-sm text-muted-foreground"},bA={key:3,class:"space-y-3"},kA={class:"text-sm text-muted-foreground"},CA={__name:"Repository",setup(e){const t=f5(),n=ye(),l=jt(),{repositories:o,chosen:s,fetchRepositories:r}=y3(),a=e1(()=>String(t.params.name??"")),i=e1(()=>o.value.find(D=>D.name===a.value)),c=j("overview"),u=j(null),d=j([]),A=j([]),p=j({files:[],since:""}),m=j(!1),v=j(null),M=j(""),Z=e1(()=>{var D,w,Q;return[{label:"Files",value:((D=u.value)==null?void 0:D.files)??0,icon:m5},{label:"Connections",value:((w=u.value)==null?void 0:w.links)??0,icon:In},{label:"Parts",value:((Q=u.value)==null?void 0:Q.parts)??0,icon:v5},{label:"Recorded",value:d.value.length,icon:B4},{label:"Rules",value:A.value.length,icon:c4}]}),k=e1(()=>{var D;return((D=p.value.files[0])==null?void 0:D.changes)||1}),F=e1(()=>[{id:"overview",label:"Overview"},{id:"knowledge",label:`Knowledge${d.value.length?` ${d.value.length}`:""}`},{id:"skills",label:`Skills${A.value.length?` ${A.value.length}`:""}`},{id:"graph",label:"Graph"}]);async function _(){if(!a.value)return;s.value=a.value;const[D,w,Q,S]=await Promise.all([Z1.graph(a.value).catch(()=>null),Z1.knowledge(a.value).catch(()=>({items:[]})),Z1.skills(a.value).catch(()=>({skills:[]})),Z1.attention(a.value).catch(()=>({files:[],since:""}))]);u.value=D?{files:D.nodes.filter(q=>q.kind==="file").length,links:D.links.length,parts:(D.communities??[]).length}:null,d.value=w.items??[],A.value=Q.skills??[],p.value=S}async function B(){m.value=!0;try{const[D]=await Z1.index(a.value);v.value=D,M.value=""}catch(D){M.value=D.message}m.value=!1,await _()}async function $(){if(confirm(`Stop covering ${i.value.path}? -What was already indexed is left alone.`))try{await Z1.dropRepository(i.value.path),await s(),n.push("/repositories")}catch(Z){D.value=Z.message}}return q1(a,v),d2(async()=>{await s(),await v()}),(Z,_)=>{var R;return h(),w("div",zf,[M(f(g3),{title:a.value,sub:(R=i.value)==null?void 0:R.path,mono:""},{back:x(()=>[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to repositories",onClick:_[0]||(_[0]=B=>f(l)("/repositories"))},{default:x(()=>[M(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[M(f(p5),{class:"h-5 w-5"})]),badges:x(()=>{var B;return[M(f(c2),{variant:(B=d.value)!=null&&B.files?"success":"warning"},{default:x(()=>{var q;return[U(Q((q=d.value)!=null&&q.files?"Indexed":"Not indexed"),1)]}),_:1},8,["variant"])]}),actions:x(()=>[M(f(b1),{variant:"outline",disabled:m.value,onClick:S},{default:x(()=>[m.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(f(xn),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(m.value?"Reading…":"Re-index"),1)]),_:1},8,["disabled"]),M(f(b1),{variant:"ghost",size:"icon","aria-label":"Stop covering this folder",onClick:L},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1})]),_:1},8,["title","sub"]),D.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(D.value),1)]),_:1})):W("",!0),M(f(ye),{modelValue:c.value,"onUpdate:modelValue":_[1]||(_[1]=B=>c.value=B),tabs:I.value,label:"What to look at",class:"mb-4 w-fit"},null,8,["modelValue","tabs"]),c.value==="overview"?(h(),w("div",jf,[M(f(z1),{class:"p-5"},{default:x(()=>[y("dl",Xf,[(h(!0),w(n1,null,_1(F.value,B=>(h(),w("div",{key:B.label},[y("dt",qf,[(h(),G(k2(B.icon),{class:"h-3.5 w-3.5"})),U(Q(B.label),1)]),y("dd",eA,Q(B.value.toLocaleString()),1)]))),128))]),k.value?(h(),w("p",tA,[k.value.indexed?(h(),w(n1,{key:0},[U("Read "+Q(k.value.indexed.toLocaleString())+" files just now.",1)],64)):(h(),w(n1,{key:1},[U("Nothing had changed.")],64))])):d.value===null?(h(),w("p",nA," Not read yet. Re-index to read it. ")):W("",!0),y("div",lA,[M(f(b1),{variant:"outline",size:"sm",onClick:_[2]||(_[2]=B=>f(n).push("/reviews"))},{default:x(()=>[M(f(Pe),{class:"mr-1.5 h-3.5 w-3.5"}),_[6]||(_[6]=U(" Review what has changed ",-1))]),_:1}),M(f(b1),{variant:"outline",size:"sm",onClick:_[3]||(_[3]=B=>f(n).push("/knowledge"))},{default:x(()=>[M(f(B4),{class:"mr-1.5 h-3.5 w-3.5"}),_[7]||(_[7]=U(" Record something ",-1))]),_:1})])]),_:1}),p.value.files.length?(h(),G(f(z1),{key:0,class:"p-5"},{default:x(()=>[_[8]||(_[8]=y("h2",{class:"font-semibold"},"Where to look first",-1)),y("p",oA," Files that have been changing in the last "+Q(p.value.since)+" and that the rest of the code leans on. Either on its own says little: something everything imports and nobody touches is settled, and something nothing imports that changes daily is a scratch pad. Where they meet is where a change is most likely to catch somebody out, and is the shortest list worth reading first. ",1),y("ul",rA,[(h(!0),w(n1,null,_1(p.value.files,B=>(h(),w("li",{key:B.path,class:"flex items-center gap-3"},[y("span",{class:"min-w-0 flex-1 truncate font-mono text-sm",title:B.path},Q(B.path),9,sA),y("span",aA,[y("span",{class:"block h-full rounded-full bg-pillar-graph",style:M2({width:`${Math.max(4,B.changes/C.value*100)}%`})},null,4)]),y("span",iA,Q(B.changes)+" change"+Q(B.changes===1?"":"s"),1),y("span",cA,Q(B.dependants)+" depend"+Q(B.dependants===1?"s":""),1)]))),128))])]),_:1})):W("",!0)])):c.value==="knowledge"?(h(),w("div",uA,[(h(!0),w(n1,null,_1(u.value,B=>(h(),G(f(z3),{key:B.id,title:B.id,pillar:"memory"},{icon:x(()=>[M(f(B4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:"secondary"},{default:x(()=>[U(Q(B.kind),1)]),_:2},1024),B.status?(h(),G(f(c2),{key:0,variant:"outline"},{default:x(()=>[U(Q(B.status),1)]),_:2},1024)):W("",!0)]),default:x(()=>[y("p",dA,Q(B.summary),1)]),_:2},1032,["title"]))),128)),u.value.length?W("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:x(()=>[_[10]||(_[10]=y("p",{class:"font-medium"},"Nothing recorded about this repository yet.",-1)),M(f(b1),{class:"mt-3",variant:"outline",onClick:_[4]||(_[4]=B=>f(n).push("/knowledge"))},{default:x(()=>[..._[9]||(_[9]=[U("Record something",-1)])]),_:1})]),_:1}))])):c.value==="skills"?(h(),w("div",fA,[(h(!0),w(n1,null,_1(A.value,B=>(h(),G(f(z3),{key:B.id,title:B.name,subtitle:B.path,pillar:"review"},{icon:x(()=>[M(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:B.origin==="repository"?"success":"outline"},{default:x(()=>[U(Q(B.origin==="repository"?"this repository":B.origin),1)]),_:2},1032,["variant"])]),default:x(()=>[y("p",AA,Q(B.description),1)]),_:2},1032,["title","subtitle"]))),128)),A.value.length?W("",!0):(h(),G(f(z1),{key:0,class:"p-10 text-center"},{default:x(()=>[_[12]||(_[12]=y("p",{class:"font-medium"},"Nothing written down for this repository yet.",-1)),M(f(b1),{class:"mt-3",variant:"outline",onClick:_[5]||(_[5]=B=>f(n).push("/skills/new"))},{default:x(()=>[..._[11]||(_[11]=[U("Write one down",-1)])]),_:1})]),_:1}))])):(h(),G(Sn,{key:a.value,repository:a.value,sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 19rem)"},null,8,["repository"]))])}}},pA={class:"flex h-full min-h-0 flex-col"},mA={key:0},gA=["value"],vA=["value"],yA=["value"],bA={class:"space-y-2"},kA={key:1,class:"font-mono"},CA={class:"mb-3 flex flex-wrap items-center gap-x-3 gap-y-2"},wA={class:"ml-auto flex flex-wrap items-center gap-1.5"},xA=["value"],_A={key:1,class:"min-h-0 flex-1 overflow-y-auto"},IA={class:"min-w-0 flex-1 truncate font-medium"},MA={class:"shrink-0 font-mono text-xs text-muted-foreground"},EA={class:"shrink-0 text-xs text-muted-foreground"},DA={class:"shrink-0 text-xs text-muted-foreground"},ZA={key:0,class:"mt-2 whitespace-pre-wrap pl-5 text-sm text-muted-foreground"},FA={key:2,class:"min-h-0 flex-1 overflow-y-auto"},BA={class:"divide-y"},SA={class:"flex cursor-pointer items-center gap-2 text-sm"},RA={class:"font-medium"},QA={class:"min-w-0 flex-1 truncate text-muted-foreground"},NA={class:"flex cursor-pointer items-center gap-2 text-sm"},KA={class:"font-medium"},GA={class:"min-w-0 flex-1 truncate text-muted-foreground"},OA={class:"space-y-2"},$A={class:"space-y-2"},WA={class:"space-y-2"},LA={class:"space-y-1.5 text-sm"},PA=["onClick"],TA={class:"font-mono text-xs"},HA={key:3,class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[18rem_1fr]"},YA={class:"min-h-0 flex-1 overflow-y-auto py-1"},VA=["onClick"],UA=["title"],JA={class:"shrink-0 text-[10px] uppercase text-muted-foreground"},zA={class:"min-h-0 overflow-y-auto"},jA={class:"mb-2 flex flex-wrap items-center gap-2"},XA={class:"break-all font-mono text-sm"},qA=1500,P7={__name:"Reviews",setup(e){const t=u5(),n=ve(),l=Ut(),{repositories:o,chosen:r,error:s,mixed:a,fetchRepositories:i}=v3({all:!0}),c=j(!1),d=j(!1),u=j(null),A=j(null),p=j(!1),m=j(""),k=j([]),D=j(""),F=j([]),C=j([]),I=j("overview"),v=t1(()=>{var N;return((N=u.value)==null?void 0:N.changed)??[]}),S=t1(()=>String(t.params.id??"")),L=t1(()=>F.value.filter(N=>!k.value.includes(N.id))),Z=t1(()=>Object.fromEntries(F.value.map(N=>[N.id,N]))),_=N=>{var O;return((O=Z.value[N])==null?void 0:O.name)??N},R=N=>{var O;return(O=m1.value.find(d1=>d1.skill===N))==null?void 0:O.passed};function B(N){k.value=k.value.filter(O=>O!==N)}function q(N){N&&!k.value.includes(N)&&(k.value=[...k.value,N]),D.value=""}const V=t1(()=>{var N;return((N=u.value)==null?void 0:N.where)??null}),m1=t1(()=>{var N;return((N=u.value)==null?void 0:N.verdicts)??[]}),y1=t1(()=>m1.value.flatMap(N=>N.findings.map(O=>({...O,skill:N.skill})))),l1=t1(()=>y1.value.filter(N=>N.severity==="blocking")),o1=t1(()=>y1.value.filter(N=>N.severity!=="blocking")),v1=t1(()=>{const N={};for(const O of y1.value)O.path&&(N[O.path]=(N[O.path]??0)+(O.severity==="blocking"?10:1));for(const O of V1.value)N[O.path]=(N[O.path]??0)+1;return N}),C1=t1(()=>[...v.value].sort((N,O)=>(v1.value[O.path]??0)-(v1.value[N.path]??0))),k1=t1(()=>v.value.find(N=>N.path===m.value)??C1.value[0]??null),s1=t1(()=>y1.value.filter(N=>!N.path)),O1=t1(()=>{var N;return((N=u.value)==null?void 0:N.review)??null}),F1=t1(()=>{var N;return((N=O1.value)==null?void 0:N.summary)??null}),V1=t1(()=>{var N;return((N=O1.value)==null?void 0:N.suggestions)??[]}),e2=t1(()=>m1.value.filter(N=>!N.passed)),a1=t1(()=>{var N;return((N=u.value)==null?void 0:N.commits)??[]}),h1=t1(()=>{var N,O;return!!((N=F1.value)!=null&&N.overview)||e2.value.length>0||s1.value.length>0||V1.value.length>0||Object.keys(((O=O1.value)==null?void 0:O.notes)??{}).length>0}),$=t1(()=>{const N=[{id:"overview",label:"Overview"},{id:"details",label:`Files${v.value.length?` ${v.value.length}`:""}`}];return N.push({id:"commits",label:`Commits${a1.value.length?` ${a1.value.length}`:""}`}),N}),z={APPROVE:{label:"Approved",tone:"success"},REQUEST_CHANGES:{label:"Changes requested",tone:"danger"},COMMENT:{label:"Commented",tone:"warning"}},K=t1(()=>{var O;if(l1.value.length)return{label:"Changes requested",tone:"danger",count:l1.value.length};const N=(O=O1.value)==null?void 0:O.verdict;return N&&z[N]?{...z[N],count:V1.value.length||null}:!m1.value.length&&!O1.value?{label:"Not reviewed",tone:"neutral",count:null}:{label:"Commented",tone:"warning",count:o1.value.length||null}}),f1={success:gu,danger:N7,warning:Cu,neutral:Pe},x1=t1(()=>u.value?f1[K.value.tone]:Pe),g={BUG:"danger",SECURITY:"danger",PERFORMANCE:"warning",REFACTOR:"info",STYLE:"neutral",CLARITY:"neutral",TEST:"info",DOCUMENTATION:"neutral"},b=N=>g[String(N||"").toUpperCase()]??"info",E=N=>[...y1.value.filter(O=>O.path===N).map(O=>({...O,from:O.skill,tone:O.severity==="blocking"?"danger":"warning"})),...V1.value.filter(O=>O.path===N).map(O=>({line:O.start_line,severity:"suggestion",detail:O.comment,code:O.suggested_code,replacing:O.existing_code,from:O.category||"review",tone:b(O.category)}))];async function P(N){N&&(r.value=N,await Promise.all([r1(),Y()]))}async function Y(){try{C.value=await Z1.reviews(r.value)}catch{C.value=[]}}async function T(){try{const N=await Z1.settings(),O=N.find(H=>H.key==="model.name"),d1=N.find(H=>H.key==="model.api_key");p.value=!!(O!=null&&O.value)&&!!(d1!=null&&d1.is_set)}catch{p.value=!1}}async function r1(){try{F.value=(await Z1.skills(r.value)).skills}catch{F.value=[]}}let e1=null;function X(){e1&&clearTimeout(e1),e1=null}async function J(N){X();const O=N?d:c;O.value=!0,s.value="";try{const d1=await Z1.startReview(r.value,{useModel:N,skills:[...k.value]});n.replace(`/reviews/${d1.id}`),await p1(d1.id,N)}catch(d1){s.value=d1.message,O.value=!1}}async function p1(N,O=!0){const d1=O?d:c;let H;try{H=await Z1.reviewed(N)}catch(M1){s.value=M1.message,d1.value=!1;return}if(A.value=H,H.status==="running"){d1.value=!0,e1=setTimeout(()=>p1(N,O),qA);return}if(d1.value=!1,H.status==="failed"){s.value=H.error;return}H.repository&&H.repository!==r.value&&(r.value=H.repository),u.value=H.review,m.value="",I.value="overview",Y(),H.repository&&(r.value=H.repository),k.value=(H.review.skills??[]).map(M1=>M1.id)}return q1(r,()=>{X(),r1(),Y()}),q1(S,N=>{if(X(),!N){u.value=null,A.value=null,Y();return}p1(N)}),ge(X),d2(async()=>{await i(),await Promise.all([T(),r1(),Y()]),S.value&&await p1(S.value)}),(N,O)=>{var d1;return h(),w("div",pA,[M(f(g3),{pillar:"review",title:V.value?`${V.value.branch||"no branch"} → ${V.value.against}`:"Reviews",sub:V.value?V.value.path:"Your work read here, before anybody else is asked to read it.",mono:!!V.value,tone:u.value?K.value.tone:void 0},i6({icon:x(()=>[(h(),G(k2(x1.value),{class:"h-6 w-6"}))]),actions:x(()=>[f(o).length>1?(h(),G(f(X2),{key:0,modelValue:f(r),"onUpdate:modelValue":O[1]||(O[1]=H=>n2(r)?r.value=H:null),size:"sm","aria-label":"Repository"},{default:x(()=>[y("option",{value:f(Vt)},"All repositories",8,gA),(h(!0),w(n1,null,_1(f(o),H=>(h(),w("option",{key:H.name,value:H.name},Q(H.name),9,vA))),128))]),_:1},8,["modelValue"])):W("",!0),f(o).length&&f(r)?(h(),G(f(b1),{key:1,size:"sm",variant:"outline",disabled:c.value,onClick:O[2]||(O[2]=H=>J(!1))},{default:x(()=>[c.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(h5),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(c.value?"Reading…":"Read what changed"),1)]),_:1},8,["disabled"])):W("",!0),f(o).length&&p.value&&f(r)?(h(),G(f(b1),{key:2,size:"sm",variant:"glow",disabled:d.value,onClick:O[3]||(O[3]=H=>J(!0))},{default:x(()=>[d.value?(h(),G(f(_2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),G(f(Mn),{key:1,class:"mr-2 h-4 w-4"})),U(" "+Q(d.value?"Reviewing…":"Review it"),1)]),_:1},8,["disabled"])):f(o).length&&p.value?(h(),G(f(X2),{key:3,"model-value":"",size:"sm","aria-label":"Choose a repository to review","onUpdate:modelValue":P},{default:x(()=>[O[5]||(O[5]=y("option",{value:""},"Choose a repository…",-1)),(h(!0),w(n1,null,_1(f(o),H=>(h(),w("option",{key:H.name,value:H.name},Q(H.name),9,yA))),128))]),_:1})):W("",!0)]),_:2},[S.value?{name:"back",fn:x(()=>[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to reviews",onClick:O[0]||(O[0]=H=>f(l)("/reviews"))},{default:x(()=>[M(f(Yt),{class:"h-4 w-4"})]),_:1})]),key:"0"}:void 0,u.value?{name:"meta",fn:x(()=>[M(f(gn),{label:K.value.label,tone:K.value.tone,count:K.value.count},null,8,["label","tone","count"]),V.value?(h(),w("span",mA,Q(V.value.commits)+" commit"+Q(V.value.commits===1?"":"s")+" ahead",1)):W("",!0),y("span",null,Q(v.value.length)+" file"+Q(v.value.length===1?"":"s"),1)]),key:"1"}:void 0]),1032,["title","sub","mono","tone"]),f(s)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(s)),1)]),_:1})):W("",!0),f(o).length===0?(h(),G(h4,{key:1})):(h(),w(n1,{key:2},[!p.value&&f(r)?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...O[6]||(O[6]=[U(" No model is configured, so nothing here can be judged. Reading what changed needs nothing. Choose a model in Settings to have the work read against your skills. ",-1)])]),_:1})):W("",!0),u.value?(h(),w(n1,{key:2},[y("div",CA,[M(f(ye),{modelValue:I.value,"onUpdate:modelValue":O[4]||(O[4]=H=>I.value=H),tabs:$.value,label:"What to look at",class:"w-fit"},null,8,["modelValue","tabs"]),y("div",wA,[O[11]||(O[11]=y("span",{class:"text-xs uppercase tracking-wider text-muted-foreground"}," Skills applied ",-1)),(h(!0),w(n1,null,_1(k.value,H=>(h(),G(f(d7),{key:H,label:_(H),tone:R(H)===void 0?"default":R(H)?"success":"danger",removable:"",onRemove:M1=>B(H)},{default:x(()=>[U(Q(_(H)),1)]),_:2},1032,["label","tone","onRemove"]))),128)),k.value.length?W("",!0):(h(),G(f(d7),{key:0,tone:"muted"},{default:x(()=>[...O[9]||(O[9]=[U("Whatever applies",-1)])]),_:1})),L.value.length?(h(),G(f(X2),{key:1,"model-value":D.value,size:"sm","aria-label":"Add a skill","onUpdate:modelValue":q},{default:x(()=>[O[10]||(O[10]=y("option",{value:""},"Add…",-1)),(h(!0),w(n1,null,_1(L.value,H=>(h(),w("option",{key:H.id,value:H.id},Q(H.name),9,xA))),128))]),_:1},8,["model-value"])):W("",!0)])]),u.value.note&&!O1.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-3"},{default:x(()=>[U(Q(u.value.note),1)]),_:1})):W("",!0),I.value==="commits"?(h(),w("div",_A,[a1.value.length?(h(),G(f(z1),{key:1,class:"divide-y px-4 py-1"},{default:x(()=>[(h(!0),w(n1,null,_1(a1.value,H=>(h(),w("div",{key:H.sha,class:"py-2.5"},[(h(),G(k2(H.body?"details":"div"),{class:i1(H.body&&"group")},{default:x(()=>[(h(),G(k2(H.body?"summary":"div"),{class:i1(["flex items-baseline gap-2 text-sm",H.body&&"cursor-pointer list-none"])},{default:x(()=>[M(f(bu),{class:"h-3.5 w-3.5 shrink-0 self-center text-muted-foreground"}),y("span",IA,Q(H.subject),1),y("span",MA,Q(H.sha.slice(0,8)),1),y("span",EA,Q(H.author),1),y("span",DA,Q(f(vt)(H.at)),1)]),_:2},1032,["class"])),H.body?(h(),w("p",ZA,Q(H.body),1)):W("",!0)]),_:2},1032,["class"]))]))),128))]),_:1})):(h(),G(f(Le),{key:0,title:"Nothing committed on this branch",compact:""},{default:x(()=>[...O[12]||(O[12]=[U(" Everything here is uncommitted work, which is in the diff rather than in a commit. ",-1)])]),_:1}))])):I.value==="overview"?(h(),w("div",FA,[h1.value?(h(),G(f(z1),{key:1,class:"divide-y px-5 py-1"},{default:x(()=>{var H,M1,B1,U1,t2,C2,w2,y3;return[(H=F1.value)!=null&&H.overview?(h(),G(f(O3),{key:0,title:"What this change does",tone:"info"},{icon:x(()=>[M(f(K7),{class:"h-4 w-4"})]),default:x(()=>[M(f(R2),{source:F1.value.overview},null,8,["source"])]),_:1})):W("",!0),e2.value.length||s1.value.length?(h(),G(f(O3),{key:1,title:"Against what this team wrote down",tone:"warning",count:e2.value.length+s1.value.length,collapsible:"",closed:""},{icon:x(()=>[M(f(_u),{class:"h-4 w-4"})]),default:x(()=>[y("ul",BA,[(h(!0),w(n1,null,_1(e2.value,S1=>(h(),w("li",{key:S1.skill,class:"py-2 first:pt-0"},[y("details",null,[y("summary",SA,[M(f(We),{tone:"danger",title:`${S1.skill} is not met`},null,8,["title"]),y("span",RA,Q(S1.skill),1),y("span",QA,Q((S1.note||"").split(` -`)[0]),1)]),S1.note?(h(),G(f(R2),{key:0,source:S1.note,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])):W("",!0)])]))),128)),(h(!0),w(n1,null,_1(s1.value,(S1,P1)=>(h(),w("li",{key:`o${P1}`,class:"py-2 first:pt-0"},[y("details",null,[y("summary",NA,[M(f(We),{tone:S1.severity==="blocking"?"danger":"warning",title:S1.skill||"A skill"},null,8,["tone","title"]),y("span",KA,Q(S1.skill),1),y("span",GA,Q((S1.detail||"").split(` -`)[0]),1)]),M(f(R2),{source:S1.detail,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])])]))),128))])]),_:1},8,["count"])):W("",!0),(B1=(M1=F1.value)==null?void 0:M1.critical_issues)!=null&&B1.length?(h(),G(f(O3),{key:2,title:"Worth stopping for",tone:"danger",count:F1.value.critical_issues.length,collapsible:""},{icon:x(()=>[M(f(N7),{class:"h-4 w-4"})]),default:x(()=>[y("ul",OA,[(h(!0),w(n1,null,_1(F1.value.critical_issues,(S1,P1)=>(h(),w("li",{key:P1},[M(f(R2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):W("",!0),(t2=(U1=F1.value)==null?void 0:U1.key_improvements)!=null&&t2.length?(h(),G(f(O3),{key:3,title:"Worth changing",tone:"warning",count:F1.value.key_improvements.length,collapsible:""},{icon:x(()=>[M(f(Y4),{class:"h-4 w-4"})]),default:x(()=>[y("ul",$A,[(h(!0),w(n1,null,_1(F1.value.key_improvements,(S1,P1)=>(h(),w("li",{key:P1},[M(f(R2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):W("",!0),(w2=(C2=F1.value)==null?void 0:C2.minor_suggestions)!=null&&w2.length?(h(),G(f(O3),{key:4,title:"Nice to have",count:F1.value.minor_suggestions.length,collapsible:"",closed:""},{icon:x(()=>[M(f(mt),{class:"h-4 w-4"})]),default:x(()=>[y("ul",WA,[(h(!0),w(n1,null,_1(F1.value.minor_suggestions,(S1,P1)=>(h(),w("li",{key:P1},[M(f(R2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):W("",!0),V1.value.length?(h(),G(f(O3),{key:5,title:"Suggestions",tone:"info",count:V1.value.length,collapsible:""},{icon:x(()=>[M(f(pu),{class:"h-4 w-4"})]),default:x(()=>[O[13]||(O[13]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," Each one is drawn against the line it is about, under Files. ",-1)),y("ul",LA,[(h(!0),w(n1,null,_1(V1.value,(S1,P1)=>(h(),w("li",{key:P1,class:"flex gap-2"},[S1.category?(h(),G(f(We),{key:0,tone:b(S1.category),title:S1.category,label:S1.category.toLowerCase(),class:"mt-0.5 shrink-0"},null,8,["tone","title","label"])):W("",!0),y("button",{type:"button",class:"min-w-0 text-left hover:underline",onClick:F2=>{m.value=S1.path,I.value="details"}},[y("span",TA,Q(S1.path)+":"+Q(S1.start_line),1),M(f(R2),{source:S1.comment,class:"text-muted-foreground"},null,8,["source"])],8,PA)]))),128))])]),_:1},8,["count"])):W("",!0),(h(!0),w(n1,null,_1(((y3=O1.value)==null?void 0:y3.notes)??{},(S1,P1)=>(h(),G(f(O3),{key:P1,title:String(P1).replace(/_/g," "),collapsible:"",closed:"",class:"capitalize"},{icon:x(()=>[M(f(K7),{class:"h-4 w-4"})]),default:x(()=>[M(f(R2),{source:S1,class:"normal-case"},null,8,["source"])]),_:2},1032,["title"]))),128))]}),_:1})):(h(),G(f(Le),{key:0,title:"Read, not judged",compact:""},{default:x(()=>[U(Q(u.value.note||"Ask for a review to have it read properly."),1)]),_:1}))])):(h(),w("div",HA,[M(f(z1),{class:"flex min-h-0 flex-col overflow-hidden"},{default:x(()=>[O[14]||(O[14]=y("div",{class:"border-b px-3 py-2 text-xs uppercase tracking-wider text-muted-foreground"}," Changed ",-1)),y("ul",YA,[(h(!0),w(n1,null,_1(C1.value,H=>{var M1;return h(),w("li",{key:H.path},[y("button",{type:"button",class:i1(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition-colors",((M1=k1.value)==null?void 0:M1.path)===H.path?"bg-primary/10 text-primary":"hover:bg-muted"]),onClick:B1=>m.value=H.path},[y("span",{class:"min-w-0 flex-1 truncate font-mono text-xs",title:H.path},Q(H.path),9,UA),E(H.path).length?(h(),G(f(c2),{key:0,variant:v1.value[H.path]>=10?"destructive":"secondary"},{default:x(()=>[U(Q(E(H.path).length),1)]),_:2},1032,["variant"])):W("",!0),y("span",JA,Q(H.change.slice(0,3)),1)],10,VA)])}),128))])]),_:1}),y("div",zA,[k1.value?(h(),w(n1,{key:0},[y("div",jA,[y("span",XA,Q(k1.value.path),1),M(f(c2),{variant:"secondary"},{default:x(()=>[U(Q(k1.value.change),1)]),_:1})]),M(f(Y9),{patch:k1.value.patch,notes:E(k1.value.path)},null,8,["patch","notes"])],64)):(h(),G(f(z1),{key:1,class:"p-10 text-center text-sm text-muted-foreground"},{default:x(()=>[...O[15]||(O[15]=[U(" Nothing has changed in this checkout. ",-1)])]),_:1}))])]))],64)):(h(),w(n1,{key:1},[((d1=A.value)==null?void 0:d1.status)==="running"?(h(),G(f(vn),{key:0,label:"Reading it",note:"This keeps going whether or not anybody is watching, and the link to it keeps working."})):(h(),w(n1,{key:1},[C.value.length?W("",!0):(h(),G(f(Le),{key:0,title:"Nothing read here yet"},i6({icon:x(()=>[M(f(Pe),{class:"h-8 w-8"})]),default:x(()=>[O[7]||(O[7]=U(" Everything comes off the checkout, so work you have not pushed, or not committed, still gets a review. ",-1))]),_:2},[f(r)?void 0:{name:"actions",fn:x(()=>[(h(!0),w(n1,null,_1(f(o),H=>(h(),G(f(b1),{key:H.name,size:"sm",variant:"outline",onClick:M1=>P(H.name)},{default:x(()=>[M(f(i4),{class:"mr-2 h-4 w-4"}),U(" "+Q(H.name),1)]),_:2},1032,["onClick"]))),128))]),key:"0"}]),1024)),C.value.length?(h(),w(n1,{key:1},[O[8]||(O[8]=y("p",{class:"mb-2 text-xs uppercase tracking-wider text-muted-foreground"},"Earlier",-1)),y("div",bA,[(h(!0),w(n1,null,_1(C.value,H=>(h(),G(f(z3),{key:H.id,title:H.title||H.repository,subtitle:H.id,pillar:"review",hover:"",class:"cursor-pointer",onClick:M1=>f(n).push(`/reviews/${H.id}`)},{icon:x(()=>[M(f(vu),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:H.status==="done"?"success":H.status==="failed"?"destructive":"secondary"},{default:x(()=>[U(Q(H.status),1)]),_:2},1032,["variant"])]),meta:x(()=>[y("span",null,Q(f(vt)(H.started)),1),f(a)?(h(),G(f(yn),{key:0,name:H.repository},{icon:x(()=>[M(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):(h(),w("span",kA,Q(H.repository),1))]),_:2},1032,["title","subtitle","onClick"]))),128))])],64)):W("",!0)],64))],64))],64))])}}},eh={class:"flex h-full min-h-0 flex-col"},th={key:0,class:"text-xs text-success"},nh={key:2,class:"py-10 text-center text-sm text-muted-foreground"},lh=["value"],oh={class:"flex flex-wrap gap-1.5"},rh={class:"mt-2 text-xs text-muted-foreground"},sh={class:"mb-2 flex items-center justify-between gap-3"},ah={class:"text-xs text-muted-foreground"},ih={class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-2"},ch={key:1,class:"text-sm text-muted-foreground"},uh="new",M4="repository",T2="global",dh={__name:"Skill",setup(e){const t=[M4,T2],n=u5(),l=ve(),o=Ut(),{repositories:r,chosen:s,fetchRepositories:a}=v3(),i=t1(()=>String(n.params.id??"")),c=t1(()=>i.value===uh),d=j(null),u=j({id:"",name:"",description:"",body:"",paths:[],reviews:null}),A=j(T2),p=j("write"),m=j(!1),k=j(!1),D=j(""),F=j(!0),C=[{id:"write",label:"Write"},{id:"preview",label:"Preview"}],I=[{id:null,label:"When it looks relevant"},{id:!0,label:"Always"},{id:!1,label:"Never"}],v=t1(()=>u.value.reviews===!0?"Read against every change here.":u.value.reviews===!1?"Left out of reviews entirely.":"Picked when what it says matches what a change touches."),S=t1(()=>Z.value?"Kept on this machine and read for every repository you work in.":`Kept on this machine and read for ${A.value}. Nothing is written into the checkout.`),L=t1(()=>[{id:T2,label:"Everywhere"},...r.value.map(l1=>({id:l1.name,label:l1.name}))]),Z=t1(()=>A.value===T2),_=t1(()=>!!d.value&&!t.includes(d.value.origin)),R=t1(()=>_.value),B=t1(()=>c.value?!!(u.value.id||u.value.description||u.value.body):d.value?u.value.name!==d.value.name||u.value.description!==d.value.description||u.value.body!==(d.value.body??"")||u.value.paths.join(` -`)!==(d.value.paths??[]).join(` -`)||u.value.reviews!==d.value.reviews:!1),q=t1(()=>u.value.body?u.value.body.split(` -`).length:0);async function V(){if(F.value=!0,D.value="",c.value){d.value=null,u.value={id:"",name:"",description:"",body:"",paths:[],reviews:null},A.value=n.query.for||s.value||T2,F.value=!1;return}try{const l1=await Z1.skill(i.value,s.value);d.value=l1,A.value=l1.origin===M4?s.value:l1.origin===T2?T2:s.value||T2,u.value={id:l1.id.split("/").pop(),name:l1.name,description:l1.description,body:l1.body??"",paths:[...l1.paths??[]],reviews:l1.reviews}}catch(l1){D.value=l1.message}finally{F.value=!1}}async function m1(){m.value=!0,k.value=!1,D.value="";try{const l1=await Z1.recordSkill({scope:Z.value?T2:M4,repository:Z.value?"":A.value,id:u.value.id||u.value.name,name:u.value.name||u.value.id,description:u.value.description,body:u.value.body,paths:u.value.paths,reviews:u.value.reviews});k.value=!0,c.value||l1.id!==i.value?l.replace(`/skills/${l1.id}`):await V()}catch(l1){D.value=l1.message}finally{m.value=!1}}async function y1(){const l1=Z.value?"everywhere":A.value;if(confirm(`Forget ${u.value.name}? +What was already indexed is left alone.`))try{await Z1.dropRepository(i.value.path),await r(),n.push("/repositories")}catch(D){M.value=D.message}}return q1(a,_),f2(async()=>{await r(),await _()}),(D,w)=>{var Q;return h(),C("div",oA,[I(f(v3),{title:a.value,sub:(Q=i.value)==null?void 0:Q.path,mono:""},{back:x(()=>[I(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to repositories",onClick:w[0]||(w[0]=S=>f(l)("/repositories"))},{default:x(()=>[I(f(Jt),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[I(f(g5),{class:"h-5 w-5"})]),badges:x(()=>{var S;return[I(f(u2),{variant:(S=u.value)!=null&&S.files?"success":"warning"},{default:x(()=>{var q;return[U(R((q=u.value)!=null&&q.files?"Indexed":"Not indexed"),1)]}),_:1},8,["variant"])]}),actions:x(()=>[I(f(b1),{variant:"outline",disabled:m.value,onClick:B},{default:x(()=>[m.value?(h(),K(f(I2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),K(f(En),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+R(m.value?"Reading…":"Re-index"),1)]),_:1},8,["disabled"]),I(f(b1),{variant:"ghost",size:"icon","aria-label":"Stop covering this folder",onClick:$},{default:x(()=>[I(f(A4),{class:"h-4 w-4"})]),_:1})]),_:1},8,["title","sub"]),M.value?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(M.value),1)]),_:1})):L("",!0),I(f(be),{modelValue:c.value,"onUpdate:modelValue":w[1]||(w[1]=S=>c.value=S),tabs:F.value,label:"What to look at",class:"mb-4 w-fit"},null,8,["modelValue","tabs"]),c.value==="overview"?(h(),C("div",sA,[I(f(z1),{class:"p-5"},{default:x(()=>[y("dl",rA,[(h(!0),C(n1,null,w1(Z.value,S=>(h(),C("div",{key:S.label},[y("dt",aA,[(h(),K(C2(S.icon),{class:"h-3.5 w-3.5"})),U(R(S.label),1)]),y("dd",iA,R(S.value.toLocaleString()),1)]))),128))]),v.value?(h(),C("p",cA,[v.value.indexed?(h(),C(n1,{key:0},[U("Read "+R(v.value.indexed.toLocaleString())+" files just now.",1)],64)):(h(),C(n1,{key:1},[U("Nothing had changed.")],64))])):u.value===null?(h(),C("p",uA," Not read yet. Re-index to read it. ")):L("",!0),y("div",dA,[I(f(b1),{variant:"outline",size:"sm",onClick:w[2]||(w[2]=S=>f(n).push("/reviews"))},{default:x(()=>[I(f(Pe),{class:"mr-1.5 h-3.5 w-3.5"}),w[6]||(w[6]=U(" Review what has changed ",-1))]),_:1}),I(f(b1),{variant:"outline",size:"sm",onClick:w[3]||(w[3]=S=>f(n).push("/knowledge"))},{default:x(()=>[I(f(B4),{class:"mr-1.5 h-3.5 w-3.5"}),w[7]||(w[7]=U(" Record something ",-1))]),_:1})])]),_:1}),p.value.files.length?(h(),K(f(z1),{key:0,class:"p-5"},{default:x(()=>[w[8]||(w[8]=y("h2",{class:"font-semibold"},"Where to look first",-1)),y("p",fA," Files that have been changing in the last "+R(p.value.since)+" and that the rest of the code leans on. Either on its own says little: something everything imports and nobody touches is settled, and something nothing imports that changes daily is a scratch pad. Where they meet is where a change is most likely to catch somebody out, and is the shortest list worth reading first. ",1),y("ul",AA,[(h(!0),C(n1,null,w1(p.value.files,S=>(h(),C("li",{key:S.path,class:"flex items-center gap-3"},[y("span",{class:"min-w-0 flex-1 truncate font-mono text-sm",title:S.path},R(S.path),9,hA),y("span",pA,[y("span",{class:"block h-full rounded-full bg-pillar-graph",style:E2({width:`${Math.max(4,S.changes/k.value*100)}%`})},null,4)]),y("span",mA,R(S.changes)+" change"+R(S.changes===1?"":"s"),1),y("span",gA,R(S.dependants)+" depend"+R(S.dependants===1?"s":""),1)]))),128))])]),_:1})):L("",!0)])):c.value==="knowledge"?(h(),C("div",vA,[(h(!0),C(n1,null,w1(d.value,S=>(h(),K(f(z3),{key:S.id,title:S.id,pillar:"memory"},{icon:x(()=>[I(f(B4),{class:"h-5 w-5"})]),badges:x(()=>[I(f(u2),{variant:"secondary"},{default:x(()=>[U(R(S.kind),1)]),_:2},1024),S.status?(h(),K(f(u2),{key:0,variant:"outline"},{default:x(()=>[U(R(S.status),1)]),_:2},1024)):L("",!0)]),default:x(()=>[y("p",yA,R(S.summary),1)]),_:2},1032,["title"]))),128)),d.value.length?L("",!0):(h(),K(f(z1),{key:0,class:"p-10 text-center"},{default:x(()=>[w[10]||(w[10]=y("p",{class:"font-medium"},"Nothing recorded about this repository yet.",-1)),I(f(b1),{class:"mt-3",variant:"outline",onClick:w[4]||(w[4]=S=>f(n).push("/knowledge"))},{default:x(()=>[...w[9]||(w[9]=[U("Record something",-1)])]),_:1})]),_:1}))])):c.value==="skills"?(h(),C("div",bA,[(h(!0),C(n1,null,w1(A.value,S=>(h(),K(f(z3),{key:S.id,title:S.name,subtitle:S.path,pillar:"review"},{icon:x(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[I(f(u2),{variant:S.origin==="repository"?"success":"outline"},{default:x(()=>[U(R(S.origin==="repository"?"this repository":S.origin),1)]),_:2},1032,["variant"])]),default:x(()=>[y("p",kA,R(S.description),1)]),_:2},1032,["title","subtitle"]))),128)),A.value.length?L("",!0):(h(),K(f(z1),{key:0,class:"p-10 text-center"},{default:x(()=>[w[12]||(w[12]=y("p",{class:"font-medium"},"Nothing written down for this repository yet.",-1)),I(f(b1),{class:"mt-3",variant:"outline",onClick:w[5]||(w[5]=S=>f(n).push("/skills/new"))},{default:x(()=>[...w[11]||(w[11]=[U("Write one down",-1)])]),_:1})]),_:1}))])):(h(),K(Kn,{key:a.value,repository:a.value,sources:["code"],controls:["filter","kinds","parts","layouts","depth"],height:"calc(100vh - 19rem)"},null,8,["repository"]))])}}},wA={class:"flex h-full min-h-0 flex-col"},xA={key:0},_A=["value"],IA=["value"],MA=["value"],EA={class:"space-y-2"},DA={key:1,class:"font-mono"},ZA={class:"mb-3 flex flex-wrap items-center gap-x-3 gap-y-2"},FA={class:"ml-auto flex flex-wrap items-center gap-1.5"},BA=["value"],SA={key:1,class:"min-h-0 flex-1 overflow-y-auto"},RA={class:"min-w-0 flex-1 truncate font-medium"},QA={class:"shrink-0 font-mono text-xs text-muted-foreground"},NA={class:"shrink-0 text-xs text-muted-foreground"},KA={class:"shrink-0 text-xs text-muted-foreground"},GA={key:0,class:"mt-2 whitespace-pre-wrap pl-5 text-sm text-muted-foreground"},$A={key:2,class:"min-h-0 flex-1 overflow-y-auto"},OA={class:"divide-y"},WA={class:"flex cursor-pointer items-center gap-2 text-sm"},LA={class:"font-medium"},PA={class:"min-w-0 flex-1 truncate text-muted-foreground"},TA={class:"flex cursor-pointer items-center gap-2 text-sm"},HA={class:"font-medium"},VA={class:"min-w-0 flex-1 truncate text-muted-foreground"},YA={class:"space-y-2"},UA={class:"space-y-2"},JA={class:"space-y-2"},zA={class:"space-y-1.5 text-sm"},jA=["onClick"],XA={class:"font-mono text-xs"},qA={key:3,class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-[18rem_1fr]"},eh={class:"min-h-0 flex-1 overflow-y-auto py-1"},th=["onClick"],nh=["title"],lh={class:"shrink-0 text-[10px] uppercase text-muted-foreground"},oh={class:"min-h-0 overflow-y-auto"},sh={class:"mb-2 flex flex-wrap items-center gap-2"},rh={class:"break-all font-mono text-sm"},ah=1500,Y7={__name:"Reviews",setup(e){const t=f5(),n=ye(),l=jt(),{repositories:o,chosen:s,error:r,mixed:a,fetchRepositories:i}=y3({all:!0}),c=j(!1),u=j(!1),d=j(null),A=j(null),p=j(!1),m=j(""),v=j([]),M=j(""),Z=j([]),k=j([]),F=j("overview"),_=e1(()=>{var N;return((N=d.value)==null?void 0:N.changed)??[]}),B=e1(()=>String(t.params.id??"")),$=e1(()=>Z.value.filter(N=>!v.value.includes(N.id))),D=e1(()=>Object.fromEntries(Z.value.map(N=>[N.id,N]))),w=N=>{var O;return((O=D.value[N])==null?void 0:O.name)??N},Q=N=>{var O;return(O=g1.value.find(d1=>d1.skill===N))==null?void 0:O.passed};function S(N){v.value=v.value.filter(O=>O!==N)}function q(N){N&&!v.value.includes(N)&&(v.value=[...v.value,N]),M.value=""}const Y=e1(()=>{var N;return((N=d.value)==null?void 0:N.where)??null}),g1=e1(()=>{var N;return((N=d.value)==null?void 0:N.verdicts)??[]}),y1=e1(()=>g1.value.flatMap(N=>N.findings.map(O=>({...O,skill:N.skill})))),l1=e1(()=>y1.value.filter(N=>N.severity==="blocking")),o1=e1(()=>y1.value.filter(N=>N.severity!=="blocking")),v1=e1(()=>{const N={};for(const O of y1.value)O.path&&(N[O.path]=(N[O.path]??0)+(O.severity==="blocking"?10:1));for(const O of Y1.value)N[O.path]=(N[O.path]??0)+1;return N}),C1=e1(()=>[..._.value].sort((N,O)=>(v1.value[O.path]??0)-(v1.value[N.path]??0))),k1=e1(()=>_.value.find(N=>N.path===m.value)??C1.value[0]??null),r1=e1(()=>y1.value.filter(N=>!N.path)),O1=e1(()=>{var N;return((N=d.value)==null?void 0:N.review)??null}),F1=e1(()=>{var N;return((N=O1.value)==null?void 0:N.summary)??null}),Y1=e1(()=>{var N;return((N=O1.value)==null?void 0:N.suggestions)??[]}),e2=e1(()=>g1.value.filter(N=>!N.passed)),a1=e1(()=>{var N;return((N=d.value)==null?void 0:N.commits)??[]}),h1=e1(()=>{var N,O;return!!((N=F1.value)!=null&&N.overview)||e2.value.length>0||r1.value.length>0||Y1.value.length>0||Object.keys(((O=O1.value)==null?void 0:O.notes)??{}).length>0}),W=e1(()=>{const N=[{id:"overview",label:"Overview"},{id:"details",label:`Files${_.value.length?` ${_.value.length}`:""}`}];return N.push({id:"commits",label:`Commits${a1.value.length?` ${a1.value.length}`:""}`}),N}),z={APPROVE:{label:"Approved",tone:"success"},REQUEST_CHANGES:{label:"Changes requested",tone:"danger"},COMMENT:{label:"Commented",tone:"warning"}},G=e1(()=>{var O;if(l1.value.length)return{label:"Changes requested",tone:"danger",count:l1.value.length};const N=(O=O1.value)==null?void 0:O.verdict;return N&&z[N]?{...z[N],count:Y1.value.length||null}:!g1.value.length&&!O1.value?{label:"Not reviewed",tone:"neutral",count:null}:{label:"Commented",tone:"warning",count:o1.value.length||null}}),f1={success:_u,danger:$7,warning:Zu,neutral:Pe},_1=e1(()=>d.value?f1[G.value.tone]:Pe),g={BUG:"danger",SECURITY:"danger",PERFORMANCE:"warning",REFACTOR:"info",STYLE:"neutral",CLARITY:"neutral",TEST:"info",DOCUMENTATION:"neutral"},b=N=>g[String(N||"").toUpperCase()]??"info",E=N=>[...y1.value.filter(O=>O.path===N).map(O=>({...O,from:O.skill,tone:O.severity==="blocking"?"danger":"warning"})),...Y1.value.filter(O=>O.path===N).map(O=>({line:O.start_line,severity:"suggestion",detail:O.comment,code:O.suggested_code,replacing:O.existing_code,from:O.category||"review",tone:b(O.category)}))];async function P(N){N&&(s.value=N,await Promise.all([s1(),V()]))}async function V(){try{k.value=await Z1.reviews(s.value)}catch{k.value=[]}}async function T(){try{const N=await Z1.settings(),O=N.find(H=>H.key==="model.name"),d1=N.find(H=>H.key==="model.api_key");p.value=!!(O!=null&&O.value)&&!!(d1!=null&&d1.is_set)}catch{p.value=!1}}async function s1(){try{Z.value=(await Z1.skills(s.value)).skills}catch{Z.value=[]}}let t1=null;function X(){t1&&clearTimeout(t1),t1=null}async function J(N){X();const O=N?u:c;O.value=!0,r.value="";try{const d1=await Z1.startReview(s.value,{useModel:N,skills:[...v.value]});n.replace(`/reviews/${d1.id}`),await p1(d1.id,N)}catch(d1){r.value=d1.message,O.value=!1}}async function p1(N,O=!0){const d1=O?u:c;let H;try{H=await Z1.reviewed(N)}catch(E1){r.value=E1.message,d1.value=!1;return}if(A.value=H,H.status==="running"){d1.value=!0,t1=setTimeout(()=>p1(N,O),ah);return}if(d1.value=!1,H.status==="failed"){r.value=H.error;return}H.repository&&H.repository!==s.value&&(s.value=H.repository),d.value=H.review,m.value="",F.value="overview",V(),H.repository&&(s.value=H.repository),v.value=(H.review.skills??[]).map(E1=>E1.id)}return q1(s,()=>{X(),s1(),V()}),q1(B,N=>{if(X(),!N){d.value=null,A.value=null,V();return}p1(N)}),ve(X),f2(async()=>{await i(),await Promise.all([T(),s1(),V()]),B.value&&await p1(B.value)}),(N,O)=>{var d1;return h(),C("div",wA,[I(f(v3),{pillar:"review",title:Y.value?`${Y.value.branch||"no branch"} → ${Y.value.against}`:"Reviews",sub:Y.value?Y.value.path:"Your work read here, before anybody else is asked to read it.",mono:!!Y.value,tone:d.value?G.value.tone:void 0},d6({icon:x(()=>[(h(),K(C2(_1.value),{class:"h-6 w-6"}))]),actions:x(()=>[f(o).length>1?(h(),K(f(X2),{key:0,modelValue:f(s),"onUpdate:modelValue":O[1]||(O[1]=H=>n2(s)?s.value=H:null),size:"sm","aria-label":"Repository"},{default:x(()=>[y("option",{value:f(zt)},"All repositories",8,_A),(h(!0),C(n1,null,w1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},R(H.name),9,IA))),128))]),_:1},8,["modelValue"])):L("",!0),f(o).length&&f(s)?(h(),K(f(b1),{key:1,size:"sm",variant:"outline",disabled:c.value,onClick:O[2]||(O[2]=H=>J(!1))},{default:x(()=>[c.value?(h(),K(f(I2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),K(f(m5),{key:1,class:"mr-2 h-4 w-4"})),U(" "+R(c.value?"Reading…":"Read what changed"),1)]),_:1},8,["disabled"])):L("",!0),f(o).length&&p.value&&f(s)?(h(),K(f(b1),{key:2,size:"sm",variant:"glow",disabled:u.value,onClick:O[3]||(O[3]=H=>J(!0))},{default:x(()=>[u.value?(h(),K(f(I2),{key:0,class:"mr-2 h-4 w-4 animate-spin"})):(h(),K(f(Fn),{key:1,class:"mr-2 h-4 w-4"})),U(" "+R(u.value?"Reviewing…":"Review it"),1)]),_:1},8,["disabled"])):f(o).length&&p.value?(h(),K(f(X2),{key:3,"model-value":"",size:"sm","aria-label":"Choose a repository to review","onUpdate:modelValue":P},{default:x(()=>[O[5]||(O[5]=y("option",{value:""},"Choose a repository…",-1)),(h(!0),C(n1,null,w1(f(o),H=>(h(),C("option",{key:H.name,value:H.name},R(H.name),9,MA))),128))]),_:1})):L("",!0)]),_:2},[B.value?{name:"back",fn:x(()=>[I(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to reviews",onClick:O[0]||(O[0]=H=>f(l)("/reviews"))},{default:x(()=>[I(f(Jt),{class:"h-4 w-4"})]),_:1})]),key:"0"}:void 0,d.value?{name:"meta",fn:x(()=>[I(f(kn),{label:G.value.label,tone:G.value.tone,count:G.value.count},null,8,["label","tone","count"]),Y.value?(h(),C("span",xA,R(Y.value.commits)+" commit"+R(Y.value.commits===1?"":"s")+" ahead",1)):L("",!0),y("span",null,R(_.value.length)+" file"+R(_.value.length===1?"":"s"),1)]),key:"1"}:void 0]),1032,["title","sub","mono","tone"]),f(r)?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(f(r)),1)]),_:1})):L("",!0),f(o).length===0?(h(),K(h4,{key:1})):(h(),C(n1,{key:2},[!p.value&&f(s)?(h(),K(f(d2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...O[6]||(O[6]=[U(" No model is configured, so nothing here can be judged. Reading what changed needs nothing. Choose a model in Settings to have the work read against your skills. ",-1)])]),_:1})):L("",!0),d.value?(h(),C(n1,{key:2},[y("div",ZA,[I(f(be),{modelValue:F.value,"onUpdate:modelValue":O[4]||(O[4]=H=>F.value=H),tabs:W.value,label:"What to look at",class:"w-fit"},null,8,["modelValue","tabs"]),y("div",FA,[O[11]||(O[11]=y("span",{class:"text-xs uppercase tracking-wider text-muted-foreground"}," Skills applied ",-1)),(h(!0),C(n1,null,w1(v.value,H=>(h(),K(f(h7),{key:H,label:w(H),tone:Q(H)===void 0?"default":Q(H)?"success":"danger",removable:"",onRemove:E1=>S(H)},{default:x(()=>[U(R(w(H)),1)]),_:2},1032,["label","tone","onRemove"]))),128)),v.value.length?L("",!0):(h(),K(f(h7),{key:0,tone:"muted"},{default:x(()=>[...O[9]||(O[9]=[U("Whatever applies",-1)])]),_:1})),$.value.length?(h(),K(f(X2),{key:1,"model-value":M.value,size:"sm","aria-label":"Add a skill","onUpdate:modelValue":q},{default:x(()=>[O[10]||(O[10]=y("option",{value:""},"Add…",-1)),(h(!0),C(n1,null,w1($.value,H=>(h(),C("option",{key:H.id,value:H.id},R(H.name),9,BA))),128))]),_:1},8,["model-value"])):L("",!0)])]),d.value.note&&!O1.value?(h(),K(f(d2),{key:0,tone:"info",class:"mb-3"},{default:x(()=>[U(R(d.value.note),1)]),_:1})):L("",!0),F.value==="commits"?(h(),C("div",SA,[a1.value.length?(h(),K(f(z1),{key:1,class:"divide-y px-4 py-1"},{default:x(()=>[(h(!0),C(n1,null,w1(a1.value,H=>(h(),C("div",{key:H.sha,class:"py-2.5"},[(h(),K(C2(H.body?"details":"div"),{class:i1(H.body&&"group")},{default:x(()=>[(h(),K(C2(H.body?"summary":"div"),{class:i1(["flex items-baseline gap-2 text-sm",H.body&&"cursor-pointer list-none"])},{default:x(()=>[I(f(Eu),{class:"h-3.5 w-3.5 shrink-0 self-center text-muted-foreground"}),y("span",RA,R(H.subject),1),y("span",QA,R(H.sha.slice(0,8)),1),y("span",NA,R(H.author),1),y("span",KA,R(f(bt)(H.at)),1)]),_:2},1032,["class"])),H.body?(h(),C("p",GA,R(H.body),1)):L("",!0)]),_:2},1032,["class"]))]))),128))]),_:1})):(h(),K(f(Le),{key:0,title:"Nothing committed on this branch",compact:""},{default:x(()=>[...O[12]||(O[12]=[U(" Everything here is uncommitted work, which is in the diff rather than in a commit. ",-1)])]),_:1}))])):F.value==="overview"?(h(),C("div",$A,[h1.value?(h(),K(f(z1),{key:1,class:"divide-y px-5 py-1"},{default:x(()=>{var H,E1,B1,U1,t2,w2,x2,b3;return[(H=F1.value)!=null&&H.overview?(h(),K(f($3),{key:0,title:"What this change does",tone:"info"},{icon:x(()=>[I(f(O7),{class:"h-4 w-4"})]),default:x(()=>[I(f(Q2),{source:F1.value.overview},null,8,["source"])]),_:1})):L("",!0),e2.value.length||r1.value.length?(h(),K(f($3),{key:1,title:"Against what this team wrote down",tone:"warning",count:e2.value.length+r1.value.length,collapsible:"",closed:""},{icon:x(()=>[I(f(Su),{class:"h-4 w-4"})]),default:x(()=>[y("ul",OA,[(h(!0),C(n1,null,w1(e2.value,S1=>(h(),C("li",{key:S1.skill,class:"py-2 first:pt-0"},[y("details",null,[y("summary",WA,[I(f(We),{tone:"danger",title:`${S1.skill} is not met`},null,8,["title"]),y("span",LA,R(S1.skill),1),y("span",PA,R((S1.note||"").split(` +`)[0]),1)]),S1.note?(h(),K(f(Q2),{key:0,source:S1.note,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])):L("",!0)])]))),128)),(h(!0),C(n1,null,w1(r1.value,(S1,P1)=>(h(),C("li",{key:`o${P1}`,class:"py-2 first:pt-0"},[y("details",null,[y("summary",TA,[I(f(We),{tone:S1.severity==="blocking"?"danger":"warning",title:S1.skill||"A skill"},null,8,["tone","title"]),y("span",HA,R(S1.skill),1),y("span",VA,R((S1.detail||"").split(` +`)[0]),1)]),I(f(Q2),{source:S1.detail,class:"mt-2 pl-5 text-sm text-muted-foreground"},null,8,["source"])])]))),128))])]),_:1},8,["count"])):L("",!0),(B1=(E1=F1.value)==null?void 0:E1.critical_issues)!=null&&B1.length?(h(),K(f($3),{key:2,title:"Worth stopping for",tone:"danger",count:F1.value.critical_issues.length,collapsible:""},{icon:x(()=>[I(f($7),{class:"h-4 w-4"})]),default:x(()=>[y("ul",YA,[(h(!0),C(n1,null,w1(F1.value.critical_issues,(S1,P1)=>(h(),C("li",{key:P1},[I(f(Q2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):L("",!0),(t2=(U1=F1.value)==null?void 0:U1.key_improvements)!=null&&t2.length?(h(),K(f($3),{key:3,title:"Worth changing",tone:"warning",count:F1.value.key_improvements.length,collapsible:""},{icon:x(()=>[I(f(Y4),{class:"h-4 w-4"})]),default:x(()=>[y("ul",UA,[(h(!0),C(n1,null,w1(F1.value.key_improvements,(S1,P1)=>(h(),C("li",{key:P1},[I(f(Q2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):L("",!0),(x2=(w2=F1.value)==null?void 0:w2.minor_suggestions)!=null&&x2.length?(h(),K(f($3),{key:4,title:"Nice to have",count:F1.value.minor_suggestions.length,collapsible:"",closed:""},{icon:x(()=>[I(f(vt),{class:"h-4 w-4"})]),default:x(()=>[y("ul",JA,[(h(!0),C(n1,null,w1(F1.value.minor_suggestions,(S1,P1)=>(h(),C("li",{key:P1},[I(f(Q2),{source:S1},null,8,["source"])]))),128))])]),_:1},8,["count"])):L("",!0),Y1.value.length?(h(),K(f($3),{key:5,title:"Suggestions",tone:"info",count:Y1.value.length,collapsible:""},{icon:x(()=>[I(f(ku),{class:"h-4 w-4"})]),default:x(()=>[O[13]||(O[13]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," Each one is drawn against the line it is about, under Files. ",-1)),y("ul",zA,[(h(!0),C(n1,null,w1(Y1.value,(S1,P1)=>(h(),C("li",{key:P1,class:"flex gap-2"},[S1.category?(h(),K(f(We),{key:0,tone:b(S1.category),title:S1.category,label:S1.category.toLowerCase(),class:"mt-0.5 shrink-0"},null,8,["tone","title","label"])):L("",!0),y("button",{type:"button",class:"min-w-0 text-left hover:underline",onClick:B2=>{m.value=S1.path,F.value="details"}},[y("span",XA,R(S1.path)+":"+R(S1.start_line),1),I(f(Q2),{source:S1.comment,class:"text-muted-foreground"},null,8,["source"])],8,jA)]))),128))])]),_:1},8,["count"])):L("",!0),(h(!0),C(n1,null,w1(((b3=O1.value)==null?void 0:b3.notes)??{},(S1,P1)=>(h(),K(f($3),{key:P1,title:String(P1).replace(/_/g," "),collapsible:"",closed:"",class:"capitalize"},{icon:x(()=>[I(f(O7),{class:"h-4 w-4"})]),default:x(()=>[I(f(Q2),{source:S1,class:"normal-case"},null,8,["source"])]),_:2},1032,["title"]))),128))]}),_:1})):(h(),K(f(Le),{key:0,title:"Read, not judged",compact:""},{default:x(()=>[U(R(d.value.note||"Ask for a review to have it read properly."),1)]),_:1}))])):(h(),C("div",qA,[I(f(z1),{class:"flex min-h-0 flex-col overflow-hidden"},{default:x(()=>[O[14]||(O[14]=y("div",{class:"border-b px-3 py-2 text-xs uppercase tracking-wider text-muted-foreground"}," Changed ",-1)),y("ul",eh,[(h(!0),C(n1,null,w1(C1.value,H=>{var E1;return h(),C("li",{key:H.path},[y("button",{type:"button",class:i1(["flex w-full items-center gap-2 px-3 py-1.5 text-left text-sm transition-colors",((E1=k1.value)==null?void 0:E1.path)===H.path?"bg-primary/10 text-primary":"hover:bg-muted"]),onClick:B1=>m.value=H.path},[y("span",{class:"min-w-0 flex-1 truncate font-mono text-xs",title:H.path},R(H.path),9,nh),E(H.path).length?(h(),K(f(u2),{key:0,variant:v1.value[H.path]>=10?"destructive":"secondary"},{default:x(()=>[U(R(E(H.path).length),1)]),_:2},1032,["variant"])):L("",!0),y("span",lh,R(H.change.slice(0,3)),1)],10,th)])}),128))])]),_:1}),y("div",oh,[k1.value?(h(),C(n1,{key:0},[y("div",sh,[y("span",rh,R(k1.value.path),1),I(f(u2),{variant:"secondary"},{default:x(()=>[U(R(k1.value.change),1)]),_:1})]),I(f(X9),{patch:k1.value.patch,notes:E(k1.value.path)},null,8,["patch","notes"])],64)):(h(),K(f(z1),{key:1,class:"p-10 text-center text-sm text-muted-foreground"},{default:x(()=>[...O[15]||(O[15]=[U(" Nothing has changed in this checkout. ",-1)])]),_:1}))])]))],64)):(h(),C(n1,{key:1},[((d1=A.value)==null?void 0:d1.status)==="running"?(h(),K(f(Cn),{key:0,label:"Reading it",note:"This keeps going whether or not anybody is watching, and the link to it keeps working."})):(h(),C(n1,{key:1},[k.value.length?L("",!0):(h(),K(f(Le),{key:0,title:"Nothing read here yet"},d6({icon:x(()=>[I(f(Pe),{class:"h-8 w-8"})]),default:x(()=>[O[7]||(O[7]=U(" Everything comes off the checkout, so work you have not pushed, or not committed, still gets a review. ",-1))]),_:2},[f(s)?void 0:{name:"actions",fn:x(()=>[(h(!0),C(n1,null,w1(f(o),H=>(h(),K(f(b1),{key:H.name,size:"sm",variant:"outline",onClick:E1=>P(H.name)},{default:x(()=>[I(f(i4),{class:"mr-2 h-4 w-4"}),U(" "+R(H.name),1)]),_:2},1032,["onClick"]))),128))]),key:"0"}]),1024)),k.value.length?(h(),C(n1,{key:1},[O[8]||(O[8]=y("p",{class:"mb-2 text-xs uppercase tracking-wider text-muted-foreground"},"Earlier",-1)),y("div",EA,[(h(!0),C(n1,null,w1(k.value,H=>(h(),K(f(z3),{key:H.id,title:H.title||H.repository,subtitle:H.id,pillar:"review",hover:"",class:"cursor-pointer",onClick:E1=>f(n).push(`/reviews/${H.id}`)},{icon:x(()=>[I(f(Iu),{class:"h-5 w-5"})]),badges:x(()=>[I(f(u2),{variant:H.status==="done"?"success":H.status==="failed"?"destructive":"secondary"},{default:x(()=>[U(R(H.status),1)]),_:2},1032,["variant"])]),meta:x(()=>[y("span",null,R(f(bt)(H.started)),1),f(a)?(h(),K(f(wn),{key:0,name:H.repository},{icon:x(()=>[I(f(i4),{class:"h-3 w-3"})]),_:1},8,["name"])):(h(),C("span",DA,R(H.repository),1))]),_:2},1032,["title","subtitle","onClick"]))),128))])],64)):L("",!0)],64))],64))],64))])}}},ih={class:"flex h-full min-h-0 flex-col"},ch={key:0,class:"text-xs text-success"},uh={key:2,class:"py-10 text-center text-sm text-muted-foreground"},dh=["value"],fh={class:"flex flex-wrap gap-1.5"},Ah={class:"mt-2 text-xs text-muted-foreground"},hh={class:"mb-2 flex items-center justify-between gap-3"},ph={class:"text-xs text-muted-foreground"},mh={class:"grid min-h-0 flex-1 gap-3 lg:grid-cols-2"},gh={key:1,class:"text-sm text-muted-foreground"},vh="new",M4="repository",H2="global",yh={__name:"Skill",setup(e){const t=[M4,H2],n=f5(),l=ye(),o=jt(),{repositories:s,chosen:r,fetchRepositories:a}=y3(),i=e1(()=>String(n.params.id??"")),c=e1(()=>i.value===vh),u=j(null),d=j({id:"",name:"",description:"",body:"",paths:[],reviews:null}),A=j(H2),p=j("write"),m=j(!1),v=j(!1),M=j(""),Z=j(!0),k=[{id:"write",label:"Write"},{id:"preview",label:"Preview"}],F=[{id:null,label:"When it looks relevant"},{id:!0,label:"Always"},{id:!1,label:"Never"}],_=e1(()=>d.value.reviews===!0?"Read against every change here.":d.value.reviews===!1?"Left out of reviews entirely.":"Picked when what it says matches what a change touches."),B=e1(()=>D.value?"Kept on this machine and read for every repository you work in.":`Kept on this machine and read for ${A.value}. Nothing is written into the checkout.`),$=e1(()=>[{id:H2,label:"Everywhere"},...s.value.map(l1=>({id:l1.name,label:l1.name}))]),D=e1(()=>A.value===H2),w=e1(()=>!!u.value&&!t.includes(u.value.origin)),Q=e1(()=>w.value),S=e1(()=>c.value?!!(d.value.id||d.value.description||d.value.body):u.value?d.value.name!==u.value.name||d.value.description!==u.value.description||d.value.body!==(u.value.body??"")||d.value.paths.join(` +`)!==(u.value.paths??[]).join(` +`)||d.value.reviews!==u.value.reviews:!1),q=e1(()=>d.value.body?d.value.body.split(` +`).length:0);async function Y(){if(Z.value=!0,M.value="",c.value){u.value=null,d.value={id:"",name:"",description:"",body:"",paths:[],reviews:null},A.value=n.query.for||r.value||H2,Z.value=!1;return}try{const l1=await Z1.skill(i.value,r.value);u.value=l1,A.value=l1.origin===M4?r.value:l1.origin===H2?H2:r.value||H2,d.value={id:l1.id.split("/").pop(),name:l1.name,description:l1.description,body:l1.body??"",paths:[...l1.paths??[]],reviews:l1.reviews}}catch(l1){M.value=l1.message}finally{Z.value=!1}}async function g1(){m.value=!0,v.value=!1,M.value="";try{const l1=await Z1.recordSkill({scope:D.value?H2:M4,repository:D.value?"":A.value,id:d.value.id||d.value.name,name:d.value.name||d.value.id,description:d.value.description,body:d.value.body,paths:d.value.paths,reviews:d.value.reviews});v.value=!0,c.value||l1.id!==i.value?l.replace(`/skills/${l1.id}`):await Y()}catch(l1){M.value=l1.message}finally{m.value=!1}}async function y1(){const l1=D.value?"everywhere":A.value;if(confirm(`Forget ${d.value.name}? -It stops being read for ${l1}.`))try{await Z1.forgetSkill(Z.value?"":A.value,Z.value?T2:M4,i.value),l.push("/skills")}catch(o1){D.value=o1.message}}return q1(i,V),d2(async()=>{await a(),await V()}),(l1,o1)=>{var v1,C1;return h(),w("div",eh,[M(f(g3),{pillar:"review",title:c.value?"A new skill":u.value.name||i.value,sub:((v1=d.value)==null?void 0:v1.path)||S.value,mono:!!((C1=d.value)!=null&&C1.path)},{back:x(()=>[M(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to skills",onClick:o1[0]||(o1[0]=k1=>f(o)("/skills"))},{default:x(()=>[M(f(Yt),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[M(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[d.value?(h(),G(f(c2),{key:0,variant:_.value?"outline":"success"},{default:x(()=>[U(Q(_.value?d.value.origin:Z.value?"everywhere":A.value),1)]),_:1},8,["variant"])):W("",!0)]),actions:x(()=>[k.value&&!B.value?(h(),w("span",th,"Saved.")):W("",!0),d.value&&!_.value?(h(),G(f(b1),{key:1,variant:"ghost",size:"icon","aria-label":"Forget this skill",onClick:y1},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1})):W("",!0),M(f(b1),{size:"sm",disabled:m.value||!B.value,onClick:m1},{default:x(()=>[m.value?(h(),G(f(_2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),G(k2(R.value?f(ht):f(pe)),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+Q(R.value?"Save your own copy":"Save"),1)]),_:1},8,["disabled"])]),_:1},8,["title","sub","mono"]),R.value?(h(),G(f(u2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...o1[7]||(o1[7]=[U(" This one is not ours to change: it belongs to your coding agent, or your team committed it to the repository. Saving keeps a copy of our own, for whatever you choose below, and the copy is then the one that gets used. ",-1)])]),_:1})):W("",!0),D.value?(h(),G(f(u2),{key:1,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(D.value),1)]),_:1})):W("",!0),F.value?(h(),w("p",nh,"Reading it.")):(h(),w(n1,{key:3},[M(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-3"},{default:x(()=>[M(f(Q2),{label:"Name",for:"skill-id",hint:"Lower case words joined by hyphens. It names the folder the skill is saved in."},{default:x(()=>[M(f(J3),{id:"skill-id",modelValue:u.value.id,"onUpdate:modelValue":o1[1]||(o1[1]=k1=>u.value.id=k1),readonly:!!d.value&&!_.value,placeholder:"retry-limit"},null,8,["modelValue","readonly"])]),_:1}),M(f(Q2),{label:"Used for",for:"skill-belongs",hint:Z.value?"Read for every repository you work in.":"Read only when reviewing that repository."},{default:x(()=>[M(f(X2),{id:"skill-belongs",modelValue:A.value,"onUpdate:modelValue":o1[2]||(o1[2]=k1=>A.value=k1),disabled:!!d.value&&!_.value,class:"w-full"},{default:x(()=>[(h(!0),w(n1,null,_1(L.value,k1=>(h(),w("option",{key:k1.id,value:k1.id},Q(k1.label),9,lh))),128))]),_:1},8,["modelValue","disabled"])]),_:1},8,["hint"]),M(f(Q2),{label:"When it applies",for:"skill-description",hint:"One sentence. It decides whether a change gets read against this skill."},{default:x(()=>[M(f(J3),{id:"skill-description",modelValue:u.value.description,"onUpdate:modelValue":o1[3]||(o1[3]=k1=>u.value.description=k1),placeholder:"Use when a change adds or edits a database migration."},null,8,["modelValue"])]),_:1})]),_:1}),M(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-2"},{default:x(()=>[M(f(Q2),{label:"Files it is about",for:"skill-paths",hint:`Globs, one to a line. Named here, a change is read against this only when it - touches one of them, whatever the wording says. Left empty, the wording decides.`},{default:x(()=>[M(f($0),{modelValue:u.value.paths,"onUpdate:modelValue":o1[4]||(o1[4]=k1=>u.value.paths=k1),mono:"",size:"sm",noun:"a pattern",placeholder:"db/migrations/**"},null,8,["modelValue"])]),_:1}),M(f(Q2),{label:"Use in reviews",hint:"Not everything you teach an agent is about judging a change."},{default:x(()=>[y("div",oh,[(h(),w(n1,null,_1(I,k1=>M(f(b1),{key:String(k1.id),size:"sm",variant:u.value.reviews===k1.id?"default":"outline",onClick:s1=>u.value.reviews=k1.id},{default:x(()=>[U(Q(k1.label),1)]),_:2},1032,["variant","onClick"])),64))]),y("p",rh,Q(v.value),1)]),_:1})]),_:1}),y("div",sh,[M(f(ye),{modelValue:p.value,"onUpdate:modelValue":o1[5]||(o1[5]=k1=>p.value=k1),tabs:C,label:"Write or preview",class:"lg:hidden"},null,8,["modelValue"]),o1[8]||(o1[8]=y("p",{class:"hidden text-xs uppercase tracking-wider text-muted-foreground lg:block"}," What it says ",-1)),y("p",ah,Q(q.value)+" line"+Q(q.value===1?"":"s")+" · markdown ",1)]),y("div",ih,[M(f(ut),{modelValue:u.value.body,"onUpdate:modelValue":o1[6]||(o1[6]=k1=>u.value.body=k1),class:i1(["h-full min-h-[24rem] resize-none font-mono leading-relaxed",p.value==="write"?"":"hidden lg:block"]),placeholder:"Never edit a migration that has already run. Add a new one instead.","aria-label":"What the skill says"},null,8,["modelValue","class"]),M(f(z1),{class:i1(["h-full min-h-[24rem] overflow-auto p-5",p.value==="preview"?"":"hidden lg:block"])},{default:x(()=>[u.value.body?(h(),G(f(R2),{key:0,source:u.value.body},null,8,["source"])):(h(),w("p",ch," Nothing written yet. What appears here is what a person reads, and what a model is given when your work is checked against this skill. "))]),_:1},8,["class"])])],64))])}}},fh=["value"],Ah={class:"relative"},hh={key:0,class:"space-y-3"},ph={class:"text-sm text-muted-foreground"},mh={key:0,class:"text-success"},gh={key:1},vh={key:2},yh={key:3,class:"font-mono"},Ze="repository",te="global",bh={__name:"Skills",setup(e){const t=[Ze,te],n=ve(),{repositories:l,chosen:o,error:r,fetchRepositories:s}=v3(),a=j([]),i=j(""),c=j("all"),d=[{id:"all",label:"All"},{id:Ze,label:"This repository"},{id:te,label:"Everywhere"},{id:"agents",label:"Your coding agents"}],u=t1(()=>{const D=i.value.trim().toLowerCase();return a.value.filter(F=>c.value===Ze&&F.origin!==Ze||c.value===te&&F.origin!==te||c.value==="agents"&&t.includes(F.origin)?!1:D?F.name.toLowerCase().includes(D)||F.description.toLowerCase().includes(D):!0)}),A=D=>t.includes(D.origin),p=D=>D.origin===te?"everywhere":D.origin===Ze?o.value:D.origin;async function m(){try{const D=await Z1.skills(o.value);a.value=D.skills,r.value=""}catch(D){a.value=[],r.value=D.message}}async function k(D){if(confirm(`Forget ${D.name}? +It stops being read for ${l1}.`))try{await Z1.forgetSkill(D.value?"":A.value,D.value?H2:M4,i.value),l.push("/skills")}catch(o1){M.value=o1.message}}return q1(i,Y),f2(async()=>{await a(),await Y()}),(l1,o1)=>{var v1,C1;return h(),C("div",ih,[I(f(v3),{pillar:"review",title:c.value?"A new skill":d.value.name||i.value,sub:((v1=u.value)==null?void 0:v1.path)||B.value,mono:!!((C1=u.value)!=null&&C1.path)},{back:x(()=>[I(f(b1),{variant:"ghost",size:"icon","aria-label":"Back to skills",onClick:o1[0]||(o1[0]=k1=>f(o)("/skills"))},{default:x(()=>[I(f(Jt),{class:"h-4 w-4"})]),_:1})]),icon:x(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[u.value?(h(),K(f(u2),{key:0,variant:w.value?"outline":"success"},{default:x(()=>[U(R(w.value?u.value.origin:D.value?"everywhere":A.value),1)]),_:1},8,["variant"])):L("",!0)]),actions:x(()=>[v.value&&!S.value?(h(),C("span",ch,"Saved.")):L("",!0),u.value&&!w.value?(h(),K(f(b1),{key:1,variant:"ghost",size:"icon","aria-label":"Forget this skill",onClick:y1},{default:x(()=>[I(f(A4),{class:"h-4 w-4"})]),_:1})):L("",!0),I(f(b1),{size:"sm",disabled:m.value||!S.value,onClick:g1},{default:x(()=>[m.value?(h(),K(f(I2),{key:0,class:"mr-1.5 h-3.5 w-3.5 animate-spin"})):(h(),K(C2(Q.value?f(mt):f(me)),{key:1,class:"mr-1.5 h-3.5 w-3.5"})),U(" "+R(Q.value?"Save your own copy":"Save"),1)]),_:1},8,["disabled"])]),_:1},8,["title","sub","mono"]),Q.value?(h(),K(f(d2),{key:0,tone:"info",class:"mb-4"},{default:x(()=>[...o1[7]||(o1[7]=[U(" This one is not ours to change: it belongs to your coding agent, or your team committed it to the repository. Saving keeps a copy of our own, for whatever you choose below, and the copy is then the one that gets used. ",-1)])]),_:1})):L("",!0),M.value?(h(),K(f(d2),{key:1,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(M.value),1)]),_:1})):L("",!0),Z.value?(h(),C("p",uh,"Reading it.")):(h(),C(n1,{key:3},[I(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-3"},{default:x(()=>[I(f(N2),{label:"Name",for:"skill-id",hint:"Lower case words joined by hyphens. It names the folder the skill is saved in."},{default:x(()=>[I(f(J3),{id:"skill-id",modelValue:d.value.id,"onUpdate:modelValue":o1[1]||(o1[1]=k1=>d.value.id=k1),readonly:!!u.value&&!w.value,placeholder:"retry-limit"},null,8,["modelValue","readonly"])]),_:1}),I(f(N2),{label:"Used for",for:"skill-belongs",hint:D.value?"Read for every repository you work in.":"Read only when reviewing that repository."},{default:x(()=>[I(f(X2),{id:"skill-belongs",modelValue:A.value,"onUpdate:modelValue":o1[2]||(o1[2]=k1=>A.value=k1),disabled:!!u.value&&!w.value,class:"w-full"},{default:x(()=>[(h(!0),C(n1,null,w1($.value,k1=>(h(),C("option",{key:k1.id,value:k1.id},R(k1.label),9,dh))),128))]),_:1},8,["modelValue","disabled"])]),_:1},8,["hint"]),I(f(N2),{label:"When it applies",for:"skill-description",hint:"One sentence. It decides whether a change gets read against this skill."},{default:x(()=>[I(f(J3),{id:"skill-description",modelValue:d.value.description,"onUpdate:modelValue":o1[3]||(o1[3]=k1=>d.value.description=k1),placeholder:"Use when a change adds or edits a database migration."},null,8,["modelValue"])]),_:1})]),_:1}),I(f(z1),{class:"mb-3 grid gap-4 p-5 lg:grid-cols-2"},{default:x(()=>[I(f(N2),{label:"Files it is about",for:"skill-paths",hint:`Globs, one to a line. Named here, a change is read against this only when it + touches one of them, whatever the wording says. Left empty, the wording decides.`},{default:x(()=>[I(f(T0),{modelValue:d.value.paths,"onUpdate:modelValue":o1[4]||(o1[4]=k1=>d.value.paths=k1),mono:"",size:"sm",noun:"a pattern",placeholder:"db/migrations/**"},null,8,["modelValue"])]),_:1}),I(f(N2),{label:"Use in reviews",hint:"Not everything you teach an agent is about judging a change."},{default:x(()=>[y("div",fh,[(h(),C(n1,null,w1(F,k1=>I(f(b1),{key:String(k1.id),size:"sm",variant:d.value.reviews===k1.id?"default":"outline",onClick:r1=>d.value.reviews=k1.id},{default:x(()=>[U(R(k1.label),1)]),_:2},1032,["variant","onClick"])),64))]),y("p",Ah,R(_.value),1)]),_:1})]),_:1}),y("div",hh,[I(f(be),{modelValue:p.value,"onUpdate:modelValue":o1[5]||(o1[5]=k1=>p.value=k1),tabs:k,label:"Write or preview",class:"lg:hidden"},null,8,["modelValue"]),o1[8]||(o1[8]=y("p",{class:"hidden text-xs uppercase tracking-wider text-muted-foreground lg:block"}," What it says ",-1)),y("p",ph,R(q.value)+" line"+R(q.value===1?"":"s")+" · markdown ",1)]),y("div",mh,[I(f(ft),{modelValue:d.value.body,"onUpdate:modelValue":o1[6]||(o1[6]=k1=>d.value.body=k1),class:i1(["h-full min-h-[24rem] resize-none font-mono leading-relaxed",p.value==="write"?"":"hidden lg:block"]),placeholder:"Never edit a migration that has already run. Add a new one instead.","aria-label":"What the skill says"},null,8,["modelValue","class"]),I(f(z1),{class:i1(["h-full min-h-[24rem] overflow-auto p-5",p.value==="preview"?"":"hidden lg:block"])},{default:x(()=>[d.value.body?(h(),K(f(Q2),{key:0,source:d.value.body},null,8,["source"])):(h(),C("p",gh," Nothing written yet. What appears here is what a person reads, and what a model is given when your work is checked against this skill. "))]),_:1},8,["class"])])],64))])}}},bh=["value"],kh={class:"relative"},Ch={key:0,class:"space-y-3"},wh={class:"text-sm text-muted-foreground"},xh={key:0,class:"text-success"},_h={key:1},Ih={key:2},Mh={key:3,class:"font-mono"},Fe="repository",te="global",Eh={__name:"Skills",setup(e){const t=[Fe,te],n=ye(),{repositories:l,chosen:o,error:s,fetchRepositories:r}=y3(),a=j([]),i=j(""),c=j("all"),u=[{id:"all",label:"All"},{id:Fe,label:"This repository"},{id:te,label:"Everywhere"},{id:"agents",label:"Your coding agents"}],d=e1(()=>{const M=i.value.trim().toLowerCase();return a.value.filter(Z=>c.value===Fe&&Z.origin!==Fe||c.value===te&&Z.origin!==te||c.value==="agents"&&t.includes(Z.origin)?!1:M?Z.name.toLowerCase().includes(M)||Z.description.toLowerCase().includes(M):!0)}),A=M=>t.includes(M.origin),p=M=>M.origin===te?"everywhere":M.origin===Fe?o.value:M.origin;async function m(){try{const M=await Z1.skills(o.value);a.value=M.skills,s.value=""}catch(M){a.value=[],s.value=M.message}}async function v(M){if(confirm(`Forget ${M.name}? -The file is removed from ${p(D)}.`))try{await Z1.forgetSkill(D.origin===te?"":o.value,D.origin,D.id),await m()}catch(F){r.value=F.message}}return q1(o,m),d2(async()=>{await s(),await m()}),(D,F)=>(h(),w("div",null,[M(f(g3),{pillar:"review",title:"Skills",sub:"What your work is read against: this repository's, this machine's, and your own."},{icon:x(()=>[M(f(bn),{class:"h-6 w-6"})]),actions:x(()=>[f(l).length>1?(h(),G(f(X2),{key:0,modelValue:f(o),"onUpdate:modelValue":F[0]||(F[0]=C=>n2(o)?o.value=C:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),w(n1,null,_1(f(l),C=>(h(),w("option",{key:C.name,value:C.name},Q(C.name),9,fh))),128))]),_:1},8,["modelValue"])):W("",!0),y("div",Ah,[M(f(_n),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),M(f(J3),{modelValue:i.value,"onUpdate:modelValue":F[1]||(F[1]=C=>i.value=C),size:"sm",placeholder:"Find a skill",class:"w-48 pl-8","aria-label":"Find a skill"},null,8,["modelValue"])]),f(l).length?(h(),G(f(b1),{key:1,size:"sm",variant:"glow",onClick:F[2]||(F[2]=C=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),F[5]||(F[5]=U(" Write one down ",-1))]),_:1})):W("",!0)]),_:1}),f(r)?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(f(r)),1)]),_:1})):W("",!0),f(l).length===0?(h(),G(h4,{key:1})):(h(),w(n1,{key:2},[M(f(ye),{modelValue:c.value,"onUpdate:modelValue":F[3]||(F[3]=C=>c.value=C),tabs:d,label:"Where they are kept",class:"mb-4"},null,8,["modelValue"]),u.value.length?(h(),w("div",hh,[(h(!0),w(n1,null,_1(u.value,C=>(h(),G(f(z3),{key:C.id,title:C.name,subtitle:C.path,pillar:"review",hover:"",class:"cursor-pointer",onClick:I=>f(n).push(`/skills/${C.id}`)},{icon:x(()=>[M(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[M(f(c2),{variant:A(C)?"success":"outline"},{default:x(()=>[U(Q(p(C)),1)]),_:2},1032,["variant"])]),meta:x(()=>{var I;return[C.reviews===!0?(h(),w("span",mh,"always in reviews")):C.reviews===!1?(h(),w("span",gh,"not used in reviews")):C.automatic?W("",!0):(h(),w("span",vh,"only when you invoke it")),(I=C.paths)!=null&&I.length?(h(),w("span",yh,Q(C.paths.join(" ")),1)):W("",!0)]}),actions:x(()=>[A(C)?(h(),G(f(b1),{key:0,variant:"ghost",size:"icon","aria-label":`Forget ${C.name}`,onClick:qe(I=>k(C),["stop"])},{default:x(()=>[M(f(A4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])):W("",!0)]),default:x(()=>[y("p",ph,Q(C.description),1)]),_:2},1032,["title","subtitle","onClick"]))),128))])):(h(),G(f(z1),{key:1,class:"p-10 text-center"},{default:x(()=>[M(f(c4),{class:"mx-auto mb-3 h-8 w-8 text-muted-foreground"}),F[7]||(F[7]=y("p",{class:"font-medium"},"Nothing written down here yet.",-1)),F[8]||(F[8]=y("p",{class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"}," A skill says when it applies and what it says to do. Anything you have already taught Claude or Codex is read from their own folders, and anything your team committed is read from the repository. What you write here is kept beside the index rather than in anybody's checkout. ",-1)),M(f(b1),{class:"mt-4",variant:"glow",onClick:F[4]||(F[4]=C=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[M(f(p3),{class:"mr-2 h-4 w-4"}),F[6]||(F[6]=U(" Write one down ",-1))]),_:1})]),_:1}))],64))]))}},kh={class:"space-y-4"},Ch={class:"mb-3 flex flex-wrap items-center justify-between gap-2"},wh={class:"font-mono text-sm text-muted-foreground"},xh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},_h={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Ih={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Mh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Eh={__name:"McpPanel",setup(e){const t=j(""),n=j(null),l=j(""),o=t1(()=>window.location.origin),r=t1(()=>JSON.stringify({mcpServers:{sourceant:{command:"sourceant",args:["mcp"],env:{SOURCEANT_UI_URL:o.value}}}},null,2)),s=t1(()=>JSON.stringify({mcpServers:{sourceant:{type:"http",url:`${o.value}/mcp`}}},null,2));async function a(i,c){await navigator.clipboard.writeText(c),l.value=i,setTimeout(()=>l.value="",1500)}return d2(async()=>{t.value=`${o.value}/mcp`;try{const i=await fetch(t.value,{method:"GET"});n.value=i.status!==404}catch{n.value=!1}}),(i,c)=>(h(),w("div",kh,[M(f(z1),{class:"p-5"},{default:x(()=>[y("div",Ch,[c[2]||(c[2]=y("h2",{class:"font-semibold"},"Endpoint",-1)),M(f(gn),{label:n.value===null?"Checking":n.value?"Serving":"Not mounted",tone:n.value===null?"neutral":n.value?"success":"warning",busy:n.value===null},null,8,["label","tone","busy"])]),y("p",wh,Q(t.value),1),n.value===!1?(h(),G(f(u2),{key:0,tone:"info",class:"mt-3"},{default:x(()=>[...c[3]||(c[3]=[U(" Nothing is mounted there. The HTTP endpoint is served when this machine is running in local mode; over stdio it needs no endpoint at all. ",-1)])]),_:1})):W("",!0)]),_:1}),M(f(z1),{class:"p-5"},{default:x(()=>[y("div",xh,[c[4]||(c[4]=y("h2",{class:"font-semibold"},"Over stdio",-1)),M(f(b1),{size:"sm",variant:"outline",onClick:c[0]||(c[0]=d=>a("stdio",r.value))},{default:x(()=>[(h(),G(k2(l.value==="stdio"?f(pe):f(ht)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+Q(l.value==="stdio"?"Copied":"Copy"),1)]),_:1})]),c[5]||(c[5]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," One process per client, started by the client. A review asked for this way is handed to this agent, so it finishes even after the client goes away. ",-1)),y("pre",_h,[y("code",null,Q(r.value),1)])]),_:1}),M(f(z1),{class:"p-5"},{default:x(()=>[y("div",Ih,[c[6]||(c[6]=y("h2",{class:"font-semibold"},"Over HTTP",-1)),M(f(b1),{size:"sm",variant:"outline",onClick:c[1]||(c[1]=d=>a("http",s.value))},{default:x(()=>[(h(),G(k2(l.value==="http"?f(pe):f(ht)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+Q(l.value==="http"?"Copied":"Copy"),1)]),_:1})]),c[7]||(c[7]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," One server, several clients. Reachable from this machine only. ",-1)),y("pre",Mh,[y("code",null,Q(s.value),1)])]),_:1})]))}},Dh={key:0,class:"grid gap-x-4 gap-y-2 text-sm sm:grid-cols-[auto_1fr]"},Zh={class:"font-mono"},Fh={class:"break-all font-mono"},Bh={class:"font-mono"},Sh={key:0,class:"ml-2 text-xs text-muted-foreground"},Rh={class:"break-all font-mono"},Qh={class:"font-mono"},Nh={class:"font-mono"},Kh={class:"mb-1 font-semibold"},Gh={key:0,class:"mb-4 text-sm text-muted-foreground"},T5="overview",T7="mcp",Oh={__name:"Settings",setup(e){const{isDark:t,toggleTheme:n}=Zn(),l=j(null),o=j([]),r=j([]),s=j(""),a=j(T5),i=t1(()=>[{id:T5,label:"Overview"},...r.value.map(d=>({id:d,label:d})),{id:T7,label:"MCP"}]),c=t1(()=>{var u;return((u=l.value)==null?void 0:u.model)||"None chosen"});return d2(async()=>{var d,u;try{const[A,p,m]=await Promise.all([Z1.status(),Z1.settings(),Z1.repositories().catch(()=>[])]);l.value={...A,model:((d=p.find(k=>k.key==="model.name"))==null?void 0:d.value)??"",keySet:!!((u=p.find(k=>k.key==="model.api_key"))!=null&&u.is_set)},o.value=m,r.value=[...new Set(p.map(k=>k.group).filter(Boolean))].sort()}catch(A){s.value=A.message}}),(d,u)=>(h(),w("div",null,[M(f(g3),{pillar:"tokens",title:"Settings",sub:"What is running, and how this looks."},{icon:x(()=>[M(f(pt),{class:"h-6 w-6"})]),actions:x(()=>[M(f(ye),{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=A=>a.value=A),tabs:i.value,label:"Settings"},null,8,["modelValue","tabs"])]),_:1}),s.value?(h(),G(f(u2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(Q(s.value),1)]),_:1})):W("",!0),a.value===T5?(h(),w(n1,{key:1},[M(f(z1),{class:"mb-3 p-5"},{default:x(()=>[u[9]||(u[9]=y("h2",{class:"mb-3 font-semibold"},"This machine",-1)),l.value?(h(),w("dl",Dh,[u[4]||(u[4]=y("dt",{class:"text-muted-foreground"},"Agent",-1)),y("dd",Zh,Q(l.value.version),1),u[5]||(u[5]=y("dt",{class:"text-muted-foreground"},"Indexer",-1)),y("dd",Fh,[U(Q(l.value.core_url)+" ",1),M(f(c2),{variant:l.value.core_up?"success":"destructive",class:"ml-2"},{default:x(()=>[U(Q(l.value.core_up?"answering":"not answering"),1)]),_:1},8,["variant"])]),u[6]||(u[6]=y("dt",{class:"text-muted-foreground"},"Starts",-1)),y("dd",Bh,[U(Q(l.value.core_starts)+" ",1),l.value.core_starts>1?(h(),w("span",Sh," a number that keeps climbing is an indexer that keeps dying ")):W("",!0)]),l.value.last_exit?(h(),w(n1,{key:0},[u[1]||(u[1]=y("dt",{class:"text-muted-foreground"},"Last exit",-1)),y("dd",Rh,Q(l.value.last_exit),1)],64)):W("",!0),u[7]||(u[7]=y("dt",{class:"text-muted-foreground"},"Folders read",-1)),y("dd",Qh,Q(o.value.length),1),u[8]||(u[8]=y("dt",{class:"text-muted-foreground"},"Model",-1)),y("dd",Nh,[U(Q(c.value)+" ",1),l.value.model&&l.value.keySet?(h(),G(f(c2),{key:0,variant:"success",class:"ml-2"},{default:x(()=>[...u[2]||(u[2]=[U("key set",-1)])]),_:1})):l.value.model?(h(),G(f(c2),{key:1,variant:"warning",class:"ml-2"},{default:x(()=>[...u[3]||(u[3]=[U("no key",-1)])]),_:1})):W("",!0)])])):W("",!0),u[10]||(u[10]=y("p",{class:"mt-4 text-xs text-muted-foreground"},[U(" Where the indexer comes from is chosen at install time and kept in "),y("code",{class:"font-mono"},"~/.sourceant/config.json"),U(". Nothing on this page has left this machine. ")],-1))]),_:1}),M(f(z1),{class:"p-5"},{default:x(()=>[u[11]||(u[11]=y("h2",{class:"mb-1 font-semibold"},"Appearance",-1)),u[12]||(u[12]=y("p",{class:"mb-4 text-sm text-muted-foreground"}," Kept in this browser, so it follows the screen rather than the machine. ",-1)),M(f(b1),{variant:"outline",onClick:f(n)},{default:x(()=>[(h(),G(k2(f(t)?f(In):f(wn)),{class:"mr-2 h-4 w-4"})),U(" "+Q(f(t)?"Light mode":"Dark mode"),1)]),_:1},8,["onClick"])]),_:1})],64)):a.value===T7?(h(),G(Eh,{key:2})):(h(),G(f(z1),{key:3,class:"p-5"},{default:x(()=>[y("h2",Kh,Q(a.value),1),a.value==="Model"?(h(),w("p",Gh," Reading a repository needs none of this. Anything that proposes or judges rather than reads does, and it stays off until you say which model to ask. ")):W("",!0),(h(),G(Fn,{key:a.value,group:a.value},null,8,["group"]))]),_:1}))]))}},$h=bs({history:Xr(),routes:[{path:"/",component:Yd},{path:"/graph",component:Bf},{path:"/knowledge",component:Pf},{path:"/reviews",component:P7},{path:"/reviews/:id",component:P7},{path:"/skills",component:bh},{path:"/skills/:id(.*)",component:dh},{path:"/repositories",component:Jf},{path:"/repositories/:name(.*)",component:hA},{path:"/settings",component:Oh},{path:"/:rest(.*)*",redirect:"/"}]});fr(Od).use($h).mount("#app"); +The file is removed from ${p(M)}.`))try{await Z1.forgetSkill(M.origin===te?"":o.value,M.origin,M.id),await m()}catch(Z){s.value=Z.message}}return q1(o,m),f2(async()=>{await r(),await m()}),(M,Z)=>(h(),C("div",null,[I(f(v3),{pillar:"review",title:"Skills",sub:"What your work is read against: this repository's, this machine's, and your own."},{icon:x(()=>[I(f(xn),{class:"h-6 w-6"})]),actions:x(()=>[f(l).length>1?(h(),K(f(X2),{key:0,modelValue:f(o),"onUpdate:modelValue":Z[0]||(Z[0]=k=>n2(o)?o.value=k:null),size:"sm","aria-label":"Repository"},{default:x(()=>[(h(!0),C(n1,null,w1(f(l),k=>(h(),C("option",{key:k.name,value:k.name},R(k.name),9,bh))),128))]),_:1},8,["modelValue"])):L("",!0),y("div",kh,[I(f(Dn),{class:"pointer-events-none absolute left-2.5 top-1/2 h-3.5 w-3.5 -translate-y-1/2 text-muted-foreground"}),I(f(J3),{modelValue:i.value,"onUpdate:modelValue":Z[1]||(Z[1]=k=>i.value=k),size:"sm",placeholder:"Find a skill",class:"w-48 pl-8","aria-label":"Find a skill"},null,8,["modelValue"])]),f(l).length?(h(),K(f(b1),{key:1,size:"sm",variant:"glow",onClick:Z[2]||(Z[2]=k=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[I(f(p3),{class:"mr-2 h-4 w-4"}),Z[5]||(Z[5]=U(" Write one down ",-1))]),_:1})):L("",!0)]),_:1}),f(s)?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(f(s)),1)]),_:1})):L("",!0),f(l).length===0?(h(),K(h4,{key:1})):(h(),C(n1,{key:2},[I(f(be),{modelValue:c.value,"onUpdate:modelValue":Z[3]||(Z[3]=k=>c.value=k),tabs:u,label:"Where they are kept",class:"mb-4"},null,8,["modelValue"]),d.value.length?(h(),C("div",Ch,[(h(!0),C(n1,null,w1(d.value,k=>(h(),K(f(z3),{key:k.id,title:k.name,subtitle:k.path,pillar:"review",hover:"",class:"cursor-pointer",onClick:F=>f(n).push(`/skills/${k.id}`)},{icon:x(()=>[I(f(c4),{class:"h-5 w-5"})]),badges:x(()=>[I(f(u2),{variant:A(k)?"success":"outline"},{default:x(()=>[U(R(p(k)),1)]),_:2},1032,["variant"])]),meta:x(()=>{var F;return[k.reviews===!0?(h(),C("span",xh,"always in reviews")):k.reviews===!1?(h(),C("span",_h,"not used in reviews")):k.automatic?L("",!0):(h(),C("span",Ih,"only when you invoke it")),(F=k.paths)!=null&&F.length?(h(),C("span",Mh,R(k.paths.join(" ")),1)):L("",!0)]}),actions:x(()=>[A(k)?(h(),K(f(b1),{key:0,variant:"ghost",size:"icon","aria-label":`Forget ${k.name}`,onClick:qe(F=>v(k),["stop"])},{default:x(()=>[I(f(A4),{class:"h-4 w-4"})]),_:1},8,["aria-label","onClick"])):L("",!0)]),default:x(()=>[y("p",wh,R(k.description),1)]),_:2},1032,["title","subtitle","onClick"]))),128))])):(h(),K(f(z1),{key:1,class:"p-10 text-center"},{default:x(()=>[I(f(c4),{class:"mx-auto mb-3 h-8 w-8 text-muted-foreground"}),Z[7]||(Z[7]=y("p",{class:"font-medium"},"Nothing written down here yet.",-1)),Z[8]||(Z[8]=y("p",{class:"mx-auto mt-1 max-w-lg text-sm text-muted-foreground"}," A skill says when it applies and what it says to do. Anything you have already taught Claude or Codex is read from their own folders, and anything your team committed is read from the repository. What you write here is kept beside the index rather than in anybody's checkout. ",-1)),I(f(b1),{class:"mt-4",variant:"glow",onClick:Z[4]||(Z[4]=k=>f(n).push({path:"/skills/new",query:{for:f(o)}}))},{default:x(()=>[I(f(p3),{class:"mr-2 h-4 w-4"}),Z[6]||(Z[6]=U(" Write one down ",-1))]),_:1})]),_:1}))],64))]))}},Dh={class:"space-y-4"},Zh={class:"mb-3 flex flex-wrap items-center justify-between gap-2"},Fh={class:"font-mono text-sm text-muted-foreground"},Bh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Sh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Rh={class:"mb-2 flex flex-wrap items-center justify-between gap-2"},Qh={class:"overflow-x-auto rounded-md bg-muted/50 p-3 text-xs"},Nh={__name:"McpPanel",setup(e){const t=j(""),n=j(null),l=j(""),o=e1(()=>window.location.origin),s=e1(()=>JSON.stringify({mcpServers:{sourceant:{command:"sourceant",args:["mcp"],env:{SOURCEANT_UI_URL:o.value}}}},null,2)),r=e1(()=>JSON.stringify({mcpServers:{sourceant:{type:"http",url:`${o.value}/mcp`}}},null,2));async function a(i,c){await navigator.clipboard.writeText(c),l.value=i,setTimeout(()=>l.value="",1500)}return f2(async()=>{t.value=`${o.value}/mcp`;try{const i=await fetch(t.value,{method:"GET"});n.value=i.status!==404}catch{n.value=!1}}),(i,c)=>(h(),C("div",Dh,[I(f(z1),{class:"p-5"},{default:x(()=>[y("div",Zh,[c[2]||(c[2]=y("h2",{class:"font-semibold"},"Endpoint",-1)),I(f(kn),{label:n.value===null?"Checking":n.value?"Serving":"Not mounted",tone:n.value===null?"neutral":n.value?"success":"warning",busy:n.value===null},null,8,["label","tone","busy"])]),y("p",Fh,R(t.value),1),n.value===!1?(h(),K(f(d2),{key:0,tone:"info",class:"mt-3"},{default:x(()=>[...c[3]||(c[3]=[U(" Nothing is mounted there. The HTTP endpoint is served when this machine is running in local mode; over stdio it needs no endpoint at all. ",-1)])]),_:1})):L("",!0)]),_:1}),I(f(z1),{class:"p-5"},{default:x(()=>[y("div",Bh,[c[4]||(c[4]=y("h2",{class:"font-semibold"},"Over stdio",-1)),I(f(b1),{size:"sm",variant:"outline",onClick:c[0]||(c[0]=u=>a("stdio",s.value))},{default:x(()=>[(h(),K(C2(l.value==="stdio"?f(me):f(mt)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+R(l.value==="stdio"?"Copied":"Copy"),1)]),_:1})]),c[5]||(c[5]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," One process per client, started by the client. A review asked for this way is handed to this agent, so it finishes even after the client goes away. ",-1)),y("pre",Sh,[y("code",null,R(s.value),1)])]),_:1}),I(f(z1),{class:"p-5"},{default:x(()=>[y("div",Rh,[c[6]||(c[6]=y("h2",{class:"font-semibold"},"Over HTTP",-1)),I(f(b1),{size:"sm",variant:"outline",onClick:c[1]||(c[1]=u=>a("http",r.value))},{default:x(()=>[(h(),K(C2(l.value==="http"?f(me):f(mt)),{class:"mr-2 h-3.5 w-3.5"})),U(" "+R(l.value==="http"?"Copied":"Copy"),1)]),_:1})]),c[7]||(c[7]=y("p",{class:"mb-3 text-sm text-muted-foreground"}," One server, several clients. Reachable from this machine only. ",-1)),y("pre",Qh,[y("code",null,R(r.value),1)])]),_:1})]))}},Kh={key:0,class:"grid gap-x-4 gap-y-2 text-sm sm:grid-cols-[auto_1fr]"},Gh={class:"font-mono"},$h={class:"break-all font-mono"},Oh={class:"font-mono"},Wh={key:0,class:"ml-2 text-xs text-muted-foreground"},Lh={class:"break-all font-mono"},Ph={class:"font-mono"},Th={class:"font-mono"},Hh={class:"mb-1 font-semibold"},Vh={key:0,class:"mb-4 text-sm text-muted-foreground"},V5="overview",U7="mcp",Yh={__name:"Settings",setup(e){const{isDark:t,toggleTheme:n}=Rn(),l=j(null),o=j([]),s=j([]),r=j(""),a=j(V5),i=e1(()=>[{id:V5,label:"Overview"},...s.value.map(u=>({id:u,label:u})),{id:U7,label:"MCP"}]),c=e1(()=>{var d;return((d=l.value)==null?void 0:d.model)||"None chosen"});return f2(async()=>{var u,d;try{const[A,p,m]=await Promise.all([Z1.status(),Z1.settings(),Z1.repositories().catch(()=>[])]);l.value={...A,model:((u=p.find(v=>v.key==="model.name"))==null?void 0:u.value)??"",keySet:!!((d=p.find(v=>v.key==="model.api_key"))!=null&&d.is_set)},o.value=m,s.value=[...new Set(p.map(v=>v.group).filter(Boolean))].sort()}catch(A){r.value=A.message}}),(u,d)=>(h(),C("div",null,[I(f(v3),{pillar:"tokens",title:"Settings",sub:"What is running, and how this looks."},{icon:x(()=>[I(f(gt),{class:"h-6 w-6"})]),actions:x(()=>[I(f(be),{modelValue:a.value,"onUpdate:modelValue":d[0]||(d[0]=A=>a.value=A),tabs:i.value,label:"Settings"},null,8,["modelValue","tabs"])]),_:1}),r.value?(h(),K(f(d2),{key:0,tone:"danger",class:"mb-4"},{default:x(()=>[U(R(r.value),1)]),_:1})):L("",!0),a.value===V5?(h(),C(n1,{key:1},[I(f(z1),{class:"mb-3 p-5"},{default:x(()=>[d[9]||(d[9]=y("h2",{class:"mb-3 font-semibold"},"This machine",-1)),l.value?(h(),C("dl",Kh,[d[4]||(d[4]=y("dt",{class:"text-muted-foreground"},"Agent",-1)),y("dd",Gh,R(l.value.version),1),d[5]||(d[5]=y("dt",{class:"text-muted-foreground"},"Indexer",-1)),y("dd",$h,[U(R(l.value.core_url)+" ",1),I(f(u2),{variant:l.value.core_up?"success":"destructive",class:"ml-2"},{default:x(()=>[U(R(l.value.core_up?"answering":"not answering"),1)]),_:1},8,["variant"])]),d[6]||(d[6]=y("dt",{class:"text-muted-foreground"},"Starts",-1)),y("dd",Oh,[U(R(l.value.core_starts)+" ",1),l.value.core_starts>1?(h(),C("span",Wh," a number that keeps climbing is an indexer that keeps dying ")):L("",!0)]),l.value.last_exit?(h(),C(n1,{key:0},[d[1]||(d[1]=y("dt",{class:"text-muted-foreground"},"Last exit",-1)),y("dd",Lh,R(l.value.last_exit),1)],64)):L("",!0),d[7]||(d[7]=y("dt",{class:"text-muted-foreground"},"Folders read",-1)),y("dd",Ph,R(o.value.length),1),d[8]||(d[8]=y("dt",{class:"text-muted-foreground"},"Model",-1)),y("dd",Th,[U(R(c.value)+" ",1),l.value.model&&l.value.keySet?(h(),K(f(u2),{key:0,variant:"success",class:"ml-2"},{default:x(()=>[...d[2]||(d[2]=[U("key set",-1)])]),_:1})):l.value.model?(h(),K(f(u2),{key:1,variant:"warning",class:"ml-2"},{default:x(()=>[...d[3]||(d[3]=[U("no key",-1)])]),_:1})):L("",!0)])])):L("",!0),d[10]||(d[10]=y("p",{class:"mt-4 text-xs text-muted-foreground"},[U(" Where the indexer comes from is chosen at install time and kept in "),y("code",{class:"font-mono"},"~/.sourceant/config.json"),U(". Nothing on this page has left this machine. ")],-1))]),_:1}),I(f(z1),{class:"p-5"},{default:x(()=>[d[11]||(d[11]=y("h2",{class:"mb-1 font-semibold"},"Appearance",-1)),d[12]||(d[12]=y("p",{class:"mb-4 text-sm text-muted-foreground"}," Kept in this browser, so it follows the screen rather than the machine. ",-1)),I(f(b1),{variant:"outline",onClick:f(n)},{default:x(()=>[(h(),K(C2(f(t)?f(Zn):f(Mn)),{class:"mr-2 h-4 w-4"})),U(" "+R(f(t)?"Light mode":"Dark mode"),1)]),_:1},8,["onClick"])]),_:1})],64)):a.value===U7?(h(),K(Nh,{key:2})):(h(),K(f(z1),{key:3,class:"p-5"},{default:x(()=>[y("h2",Hh,R(a.value),1),a.value==="Model"?(h(),C("p",Vh," Reading a repository needs none of this. Anything that proposes or judges rather than reads does, and it stays off until you say which model to ask. ")):L("",!0),(h(),K(Qn,{key:a.value,group:a.value},null,8,["group"]))]),_:1}))]))}},Uh=Ir({history:or(),routes:[{path:"/",component:ef},{path:"/graph",component:Of},{path:"/knowledge",component:jf},{path:"/reviews",component:Y7},{path:"/reviews/:id",component:Y7},{path:"/skills",component:Eh},{path:"/skills/:id(.*)",component:yh},{path:"/repositories",component:lA},{path:"/repositories/:name(.*)",component:CA},{path:"/settings",component:Yh},{path:"/:rest(.*)*",redirect:"/"}]});vs(Yd).use(Uh).mount("#app"); diff --git a/internal/ui/assets/assets/index-CLbMFakI.css b/internal/ui/assets/assets/index-Dj3NkgR1.css similarity index 76% rename from internal/ui/assets/assets/index-CLbMFakI.css rename to internal/ui/assets/assets/index-Dj3NkgR1.css index b83d71a..19e0a51 100644 --- a/internal/ui/assets/assets/index-CLbMFakI.css +++ b/internal/ui/assets/assets/index-Dj3NkgR1.css @@ -1 +1 @@ -*,: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:Inter,system-ui,sans-serif;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:JetBrains Mono,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,.dark{color-scheme:dark;--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 9% 7%;--card-foreground: 0 0% 98%;--popover: 240 9% 7%;--popover-foreground: 0 0% 98%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 4% 16%;--secondary-foreground: 0 0% 98%;--muted: 240 5% 14%;--muted-foreground: 240 5% 64.9%;--accent: 240 4% 16%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 50.6%;--destructive-foreground: 0 0% 98%;--success: 142 71% 45%;--success-foreground: 0 0% 98%;--warning: 38 92% 50%;--warning-foreground: 0 0% 98%;--border: 240 6% 16%;--input: 240 6% 16%;--ring: 357 89% 47%;--radius: .25rem;--brand: 357 89% 47%;--pillar-memory: 217 91% 60%;--pillar-graph: 262 83% 66%;--pillar-review: 142 71% 45%;--pillar-tokens: 38 92% 50%;--severity-critical: 0 72% 51%;--severity-high: 25 90% 48%;--severity-moderate: 38 92% 50%;--severity-low: 217 91% 60%;--figure-1: 217 91% 55%;--figure-2: 330 81% 50%;--figure-3: 32 95% 44%;--figure-4: 160 94% 30%;--figure-5: 262 83% 58%;--figure-6: 192 91% 36%}.\!dark{color-scheme:dark!important;--background: 240 10% 3.9% !important;--foreground: 0 0% 98% !important;--card: 240 9% 7% !important;--card-foreground: 0 0% 98% !important;--popover: 240 9% 7% !important;--popover-foreground: 0 0% 98% !important;--primary: 357 89% 47% !important;--primary-foreground: 0 0% 100% !important;--secondary: 240 4% 16% !important;--secondary-foreground: 0 0% 98% !important;--muted: 240 5% 14% !important;--muted-foreground: 240 5% 64.9% !important;--accent: 240 4% 16% !important;--accent-foreground: 0 0% 98% !important;--destructive: 0 62.8% 50.6% !important;--destructive-foreground: 0 0% 98% !important;--success: 142 71% 45% !important;--success-foreground: 0 0% 98% !important;--warning: 38 92% 50% !important;--warning-foreground: 0 0% 98% !important;--border: 240 6% 16% !important;--input: 240 6% 16% !important;--ring: 357 89% 47% !important;--radius: .25rem !important;--brand: 357 89% 47% !important;--pillar-memory: 217 91% 60% !important;--pillar-graph: 262 83% 66% !important;--pillar-review: 142 71% 45% !important;--pillar-tokens: 38 92% 50% !important;--severity-critical: 0 72% 51% !important;--severity-high: 25 90% 48% !important;--severity-moderate: 38 92% 50% !important;--severity-low: 217 91% 60% !important;--figure-1: 217 91% 55% !important;--figure-2: 330 81% 50% !important;--figure-3: 32 95% 44% !important;--figure-4: 160 94% 30% !important;--figure-5: 262 83% 58% !important;--figure-6: 192 91% 36% !important}.light{color-scheme:light;--background: 240 20% 98%;--foreground: 240 10% 10%;--card: 0 0% 100%;--card-foreground: 240 10% 10%;--popover: 0 0% 100%;--popover-foreground: 240 10% 10%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 10% 94%;--secondary-foreground: 240 10% 20%;--muted: 240 10% 94%;--muted-foreground: 240 5% 45%;--accent: 357 60% 96%;--accent-foreground: 357 70% 40%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--success: 142 70% 35%;--success-foreground: 0 0% 100%;--warning: 38 92% 45%;--warning-foreground: 0 0% 100%;--border: 240 10% 90%;--input: 240 10% 90%;--ring: 357 89% 47%;--brand: 357 89% 47%;--pillar-memory: 217 91% 55%;--pillar-graph: 262 83% 58%;--pillar-review: 142 71% 40%;--pillar-tokens: 38 92% 45%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{scroll-behavior:smooth}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media(min-width:1400px){.container{max-width:1400px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: oklch(37.3% .034 259.733);--tw-prose-headings: oklch(21% .034 264.665);--tw-prose-lead: oklch(44.6% .03 256.802);--tw-prose-links: oklch(21% .034 264.665);--tw-prose-bold: oklch(21% .034 264.665);--tw-prose-counters: oklch(55.1% .027 264.364);--tw-prose-bullets: oklch(87.2% .01 258.338);--tw-prose-hr: oklch(92.8% .006 264.531);--tw-prose-quotes: oklch(21% .034 264.665);--tw-prose-quote-borders: oklch(92.8% .006 264.531);--tw-prose-captions: oklch(55.1% .027 264.364);--tw-prose-kbd: oklch(21% .034 264.665);--tw-prose-kbd-shadows: color-mix(in oklab, oklch(21% .034 264.665) 10%, transparent);--tw-prose-code: oklch(21% .034 264.665);--tw-prose-pre-code: oklch(92.8% .006 264.531);--tw-prose-pre-bg: oklch(27.8% .033 256.848);--tw-prose-th-borders: oklch(87.2% .01 258.338);--tw-prose-td-borders: oklch(92.8% .006 264.531);--tw-prose-invert-body: oklch(87.2% .01 258.338);--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: oklch(70.7% .022 261.325);--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: oklch(70.7% .022 261.325);--tw-prose-invert-bullets: oklch(44.6% .03 256.802);--tw-prose-invert-hr: oklch(37.3% .034 259.733);--tw-prose-invert-quotes: oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders: oklch(37.3% .034 259.733);--tw-prose-invert-captions: oklch(70.7% .022 261.325);--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: oklch(44.6% .03 256.802);--tw-prose-invert-td-borders: oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.light .gradient-text{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(124 58 237 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7c3aed var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #db2777 var(--tw-gradient-to-position)}.light .glass{border-bottom-width:1px;border-color:hsl(var(--border) / .5);background-color:hsl(var(--background) / .9);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .2)}.light .glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .1)}.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.left-2\.5{left:.625rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.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-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.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-full{height:100%}.h-screen{height:100vh}.max-h-64{max-height:16rem}.max-h-\[85vh\]{max-height:85vh}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-7{min-height:1.75rem}.min-h-8{min-height:2rem}.min-h-\[24rem\]{min-height:24rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-7{min-width:1.75rem}.min-w-8{min-width:2rem}.max-w-2xl{max-width:42rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x: -100%;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-y-2{--tw-translate-y: -.5rem;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-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))}.translate-x-full{--tw-translate-x: 100%;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-0{--tw-translate-y: 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))}.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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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 fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}@keyframes fade-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-up{animation:fade-up .4s ease-out}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}0%,to{opacity:1}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes shimmer{to{transform:translate(100%)}}.animate-shimmer{animation:shimmer 2s infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.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))}.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))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-600\/20{border-color:#d9770633}.border-blue-600\/20{border-color:#2563eb33}.border-border{border-color:hsl(var(--border))}.border-border\/60{border-color:hsl(var(--border) / .6)}.border-border\/70{border-color:hsl(var(--border) / .7)}.border-cyan-600\/20{border-color:#0891b233}.border-destructive\/30{border-color:hsl(var(--destructive) / .3)}.border-destructive\/40{border-color:hsl(var(--destructive) / .4)}.border-destructive\/60{border-color:hsl(var(--destructive) / .6)}.border-emerald-600\/20{border-color:#05966933}.border-fuchsia-600\/20{border-color:#c026d333}.border-input{border-color:hsl(var(--input))}.border-lime-600\/20{border-color:#65a30d33}.border-pink-600\/20{border-color:#db277733}.border-primary\/30{border-color:hsl(var(--primary) / .3)}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-red-600\/20{border-color:#dc262633}.border-success\/40{border-color:hsl(var(--success) / .4)}.border-transparent{border-color:transparent}.border-violet-600\/20{border-color:#7c3aed33}.border-warning\/40{border-color:hsl(var(--warning) / .4)}.border-r-primary\/50{border-right-color:hsl(var(--primary) / .5)}.border-t-primary{border-top-color:hsl(var(--primary))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-600\/10{background-color:#d977061a}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/80{background-color:hsl(var(--card) / .8)}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-600\/10{background-color:#0891b21a}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/10{background-color:#0596691a}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.bg-fuchsia-600\/10{background-color:#c026d31a}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-600\/10{background-color:#65a30d1a}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/40{background-color:hsl(var(--muted) / .4)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-muted\/60{background-color:hsl(var(--muted) / .6)}.bg-pillar-graph{--tw-bg-opacity: 1;background-color:hsl(var(--pillar-graph) / var(--tw-bg-opacity, 1))}.bg-pillar-graph\/15{background-color:hsl(var(--pillar-graph) / .15)}.bg-pillar-memory\/15{background-color:hsl(var(--pillar-memory) / .15)}.bg-pillar-review\/15{background-color:hsl(var(--pillar-review) / .15)}.bg-pillar-tokens\/15{background-color:hsl(var(--pillar-tokens) / .15)}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-600\/10{background-color:#db27771a}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/15{background-color:hsl(var(--primary) / .15)}.bg-primary\/25{background-color:hsl(var(--primary) / .25)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/10{background-color:#dc26261a}.bg-secondary{background-color:hsl(var(--secondary))}.bg-success{background-color:hsl(var(--success))}.bg-success\/10{background-color:hsl(var(--success) / .1)}.bg-success\/15{background-color:hsl(var(--success) / .15)}.bg-success\/20{background-color:hsl(var(--success) / .2)}.bg-success\/5{background-color:hsl(var(--success) / .05)}.bg-transparent{background-color:transparent}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-600\/10{background-color:#7c3aed1a}.bg-warning{background-color:hsl(var(--warning))}.bg-warning\/10{background-color:hsl(var(--warning) / .1)}.bg-warning\/15{background-color:hsl(var(--warning) / .15)}.bg-warning\/20{background-color:hsl(var(--warning) / .2)}.bg-warning\/5{background-color:hsl(var(--warning) / .05)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-foreground\/\[0\.06\]{--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--foreground) / .06) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.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-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.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-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.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-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.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-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.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-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-brand{color:hsl(var(--brand))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-pillar-graph{--tw-text-opacity: 1;color:hsl(var(--pillar-graph) / var(--tw-text-opacity, 1))}.text-pillar-memory{--tw-text-opacity: 1;color:hsl(var(--pillar-memory) / var(--tw-text-opacity, 1))}.text-pillar-review{--tw-text-opacity: 1;color:hsl(var(--pillar-review) / var(--tw-text-opacity, 1))}.text-pillar-tokens{--tw-text-opacity: 1;color:hsl(var(--pillar-tokens) / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-success{color:hsl(var(--success))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-warning{color:hsl(var(--warning))}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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-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-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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-2xl{--tw-blur: blur(40px);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)}.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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-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-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:pt-0:first-child{padding-top:0}.last\:pb-0:last-child{padding-bottom:0}.hover\:-translate-y-1:hover{--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))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background\/60:hover{background-color:hsl(var(--background) / .6)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/60:hover{background-color:hsl(var(--muted) / .6)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-destructive:focus{border-color:hsl(var(--destructive))}.focus\:border-primary\/50:focus{border-color:hsl(var(--primary) / .5)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.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-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-headings\:text-foreground :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-p\:text-muted-foreground :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-a\:text-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--primary))}.prose-a\:no-underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:none}.hover\:prose-a\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))):hover{text-decoration-line:underline}.prose-blockquote\:border-border :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}.prose-blockquote\:text-muted-foreground :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-strong\:text-foreground :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-em\:text-foreground :is(:where(em):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:rounded :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){border-radius:.25rem}.prose-code\:bg-muted\/60 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .6)}.prose-code\:px-1 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.25rem;padding-right:.25rem}.prose-code\:py-0\.5 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.125rem;padding-bottom:.125rem}.prose-code\:text-foreground :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:before\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):before{--tw-content: none;content:var(--tw-content)}.prose-code\:after\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):after{--tw-content: none;content:var(--tw-content)}.prose-pre\:border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-pre\:bg-muted\/50 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .5)}.prose-pre\:text-foreground :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-li\:text-muted-foreground :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-th\:text-foreground :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-td\:text-muted-foreground :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-hr\:border-border :is(:where(hr):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}@media(min-width:640px){.sm\:mr-3{margin-right:.75rem}.sm\:block{display:block}.sm\:w-\[32\%\]{width:32%}.sm\:w-\[40\%\]{width:40%}.sm\:w-\[55\%\]{width:55%}.sm\:min-w-\[22rem\]{min-width:22rem}.sm\:min-w-\[26rem\]{min-width:26rem}.sm\:min-w-\[32rem\]{min-width:32rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.sm\:px-4{padding-left:1rem;padding-right:1rem}}@media(min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.lg\:grid-cols-\[18rem_1fr\]{grid-template-columns:18rem 1fr}.lg\:grid-cols-\[1fr_20rem\]{grid-template-columns:1fr 20rem}.lg\:items-start{align-items:flex-start}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pt-4{padding-top:1rem}}@media(min-width:1280px){.xl\:inline{display:inline}}@media(min-width:1536px){.\32xl\:px-2\.5{padding-left:.625rem;padding-right:.625rem}}.\[\&\>p\]\:inline>p{display:inline} +*,: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:Inter,system-ui,sans-serif;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:JetBrains Mono,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,.dark{color-scheme:dark;--background: 240 10% 3.9%;--foreground: 0 0% 98%;--card: 240 9% 7%;--card-foreground: 0 0% 98%;--popover: 240 9% 7%;--popover-foreground: 0 0% 98%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 4% 16%;--secondary-foreground: 0 0% 98%;--muted: 240 5% 14%;--muted-foreground: 240 5% 64.9%;--accent: 240 4% 16%;--accent-foreground: 0 0% 98%;--destructive: 0 62.8% 50.6%;--destructive-foreground: 0 0% 98%;--success: 142 71% 45%;--success-foreground: 0 0% 98%;--warning: 38 92% 50%;--warning-foreground: 0 0% 98%;--border: 240 6% 16%;--input: 240 6% 16%;--ring: 357 89% 47%;--radius: .25rem;--brand: 357 89% 47%;--pillar-memory: 217 91% 60%;--pillar-graph: 262 83% 66%;--pillar-review: 142 71% 45%;--pillar-tokens: 38 92% 50%;--severity-critical: 0 72% 51%;--severity-high: 25 90% 48%;--severity-moderate: 38 92% 50%;--severity-low: 217 91% 60%;--figure-1: 217 91% 55%;--figure-2: 330 81% 50%;--figure-3: 32 95% 44%;--figure-4: 160 94% 30%;--figure-5: 262 83% 58%;--figure-6: 192 91% 36%}.\!dark{color-scheme:dark!important;--background: 240 10% 3.9% !important;--foreground: 0 0% 98% !important;--card: 240 9% 7% !important;--card-foreground: 0 0% 98% !important;--popover: 240 9% 7% !important;--popover-foreground: 0 0% 98% !important;--primary: 357 89% 47% !important;--primary-foreground: 0 0% 100% !important;--secondary: 240 4% 16% !important;--secondary-foreground: 0 0% 98% !important;--muted: 240 5% 14% !important;--muted-foreground: 240 5% 64.9% !important;--accent: 240 4% 16% !important;--accent-foreground: 0 0% 98% !important;--destructive: 0 62.8% 50.6% !important;--destructive-foreground: 0 0% 98% !important;--success: 142 71% 45% !important;--success-foreground: 0 0% 98% !important;--warning: 38 92% 50% !important;--warning-foreground: 0 0% 98% !important;--border: 240 6% 16% !important;--input: 240 6% 16% !important;--ring: 357 89% 47% !important;--radius: .25rem !important;--brand: 357 89% 47% !important;--pillar-memory: 217 91% 60% !important;--pillar-graph: 262 83% 66% !important;--pillar-review: 142 71% 45% !important;--pillar-tokens: 38 92% 50% !important;--severity-critical: 0 72% 51% !important;--severity-high: 25 90% 48% !important;--severity-moderate: 38 92% 50% !important;--severity-low: 217 91% 60% !important;--figure-1: 217 91% 55% !important;--figure-2: 330 81% 50% !important;--figure-3: 32 95% 44% !important;--figure-4: 160 94% 30% !important;--figure-5: 262 83% 58% !important;--figure-6: 192 91% 36% !important}.light{color-scheme:light;--background: 240 20% 98%;--foreground: 240 10% 10%;--card: 0 0% 100%;--card-foreground: 240 10% 10%;--popover: 0 0% 100%;--popover-foreground: 240 10% 10%;--primary: 357 89% 47%;--primary-foreground: 0 0% 100%;--secondary: 240 10% 94%;--secondary-foreground: 240 10% 20%;--muted: 240 10% 94%;--muted-foreground: 240 5% 45%;--accent: 357 60% 96%;--accent-foreground: 357 70% 40%;--destructive: 0 84% 60%;--destructive-foreground: 0 0% 100%;--success: 142 70% 35%;--success-foreground: 0 0% 100%;--warning: 38 92% 45%;--warning-foreground: 0 0% 100%;--border: 240 10% 90%;--input: 240 10% 90%;--ring: 357 89% 47%;--brand: 357 89% 47%;--pillar-memory: 217 91% 55%;--pillar-graph: 262 83% 58%;--pillar-review: 142 71% 40%;--pillar-tokens: 38 92% 45%}*{border-color:hsl(var(--border))}body{background-color:hsl(var(--background));font-family:Inter,system-ui,sans-serif;color:hsl(var(--foreground));-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}html{scroll-behavior:smooth}.container{width:100%;margin-right:auto;margin-left:auto;padding-right:2rem;padding-left:2rem}@media(min-width:1400px){.container{max-width:1400px}}.prose{color:var(--tw-prose-body);max-width:65ch}.prose :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-lead);font-size:1.25em;line-height:1.6;margin-top:1.2em;margin-bottom:1.2em}.prose :where(a):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-links);text-decoration:underline;font-weight:500}.prose :where(strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-bold);font-weight:600}.prose :where(a strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th strong):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol[type=A]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=A s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-alpha}.prose :where(ol[type=a s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-alpha}.prose :where(ol[type=I]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type=I s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:upper-roman}.prose :where(ol[type=i s]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:lower-roman}.prose :where(ol[type="1"]):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:decimal}.prose :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){list-style-type:disc;margin-top:1.25em;margin-bottom:1.25em;padding-inline-start:1.625em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{font-weight:400;color:var(--tw-prose-counters)}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *))::marker{color:var(--tw-prose-bullets)}.prose :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.25em}.prose :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){border-color:var(--tw-prose-hr);border-top-width:1px;margin-top:3em;margin-bottom:3em}.prose :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-style:italic;color:var(--tw-prose-quotes);border-inline-start-width:.25rem;border-inline-start-color:var(--tw-prose-quote-borders);quotes:"“""”""‘""’";margin-top:1.6em;margin-bottom:1.6em;padding-inline-start:1em}.prose :where(blockquote p:first-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:open-quote}.prose :where(blockquote p:last-of-type):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:close-quote}.prose :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:800;font-size:2.25em;margin-top:0;margin-bottom:.8888889em;line-height:1.1111111}.prose :where(h1 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:900;color:inherit}.prose :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:700;font-size:1.5em;margin-top:2em;margin-bottom:1em;line-height:1.3333333}.prose :where(h2 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:800;color:inherit}.prose :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;font-size:1.25em;margin-top:1.6em;margin-bottom:.6em;line-height:1.6}.prose :where(h3 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;margin-top:1.5em;margin-bottom:.5em;line-height:1.5}.prose :where(h4 strong):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:700;color:inherit}.prose :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){display:block;margin-top:2em;margin-bottom:2em}.prose :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-weight:500;font-family:inherit;color:var(--tw-prose-kbd);box-shadow:0 0 0 1px var(--tw-prose-kbd-shadows),0 3px 0 var(--tw-prose-kbd-shadows);font-size:.875em;border-radius:.3125rem;padding-top:.1875em;padding-inline-end:.375em;padding-bottom:.1875em;padding-inline-start:.375em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-code);font-weight:600;font-size:.875em}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:"`"}.prose :where(code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:"`"}.prose :where(a code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h1 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.875em}.prose :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit;font-size:.9em}.prose :where(h4 code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(blockquote code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(thead th code):not(:where([class~=not-prose],[class~=not-prose] *)){color:inherit}.prose :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-pre-code);background-color:var(--tw-prose-pre-bg);overflow-x:auto;font-weight:400;font-size:.875em;line-height:1.7142857;margin-top:1.7142857em;margin-bottom:1.7142857em;border-radius:.375rem;padding-top:.8571429em;padding-inline-end:1.1428571em;padding-bottom:.8571429em;padding-inline-start:1.1428571em}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)){background-color:transparent;border-width:0;border-radius:0;padding:0;font-weight:inherit;color:inherit;font-size:inherit;font-family:inherit;line-height:inherit}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):before{content:none}.prose :where(pre code):not(:where([class~=not-prose],[class~=not-prose] *)):after{content:none}.prose :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){width:100%;table-layout:auto;margin-top:2em;margin-bottom:2em;font-size:.875em;line-height:1.7142857}.prose :where(thead):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-th-borders)}.prose :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-headings);font-weight:600;vertical-align:bottom;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody tr):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:1px;border-bottom-color:var(--tw-prose-td-borders)}.prose :where(tbody tr:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){border-bottom-width:0}.prose :where(tbody td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:baseline}.prose :where(tfoot):not(:where([class~=not-prose],[class~=not-prose] *)){border-top-width:1px;border-top-color:var(--tw-prose-th-borders)}.prose :where(tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){vertical-align:top}.prose :where(th,td):not(:where([class~=not-prose],[class~=not-prose] *)){text-align:start}.prose :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){color:var(--tw-prose-captions);font-size:.875em;line-height:1.4285714;margin-top:.8571429em}.prose{--tw-prose-body: oklch(37.3% .034 259.733);--tw-prose-headings: oklch(21% .034 264.665);--tw-prose-lead: oklch(44.6% .03 256.802);--tw-prose-links: oklch(21% .034 264.665);--tw-prose-bold: oklch(21% .034 264.665);--tw-prose-counters: oklch(55.1% .027 264.364);--tw-prose-bullets: oklch(87.2% .01 258.338);--tw-prose-hr: oklch(92.8% .006 264.531);--tw-prose-quotes: oklch(21% .034 264.665);--tw-prose-quote-borders: oklch(92.8% .006 264.531);--tw-prose-captions: oklch(55.1% .027 264.364);--tw-prose-kbd: oklch(21% .034 264.665);--tw-prose-kbd-shadows: color-mix(in oklab, oklch(21% .034 264.665) 10%, transparent);--tw-prose-code: oklch(21% .034 264.665);--tw-prose-pre-code: oklch(92.8% .006 264.531);--tw-prose-pre-bg: oklch(27.8% .033 256.848);--tw-prose-th-borders: oklch(87.2% .01 258.338);--tw-prose-td-borders: oklch(92.8% .006 264.531);--tw-prose-invert-body: oklch(87.2% .01 258.338);--tw-prose-invert-headings: #fff;--tw-prose-invert-lead: oklch(70.7% .022 261.325);--tw-prose-invert-links: #fff;--tw-prose-invert-bold: #fff;--tw-prose-invert-counters: oklch(70.7% .022 261.325);--tw-prose-invert-bullets: oklch(44.6% .03 256.802);--tw-prose-invert-hr: oklch(37.3% .034 259.733);--tw-prose-invert-quotes: oklch(96.7% .003 264.542);--tw-prose-invert-quote-borders: oklch(37.3% .034 259.733);--tw-prose-invert-captions: oklch(70.7% .022 261.325);--tw-prose-invert-kbd: #fff;--tw-prose-invert-kbd-shadows: rgb(255 255 255 / 10%);--tw-prose-invert-code: #fff;--tw-prose-invert-pre-code: oklch(87.2% .01 258.338);--tw-prose-invert-pre-bg: rgb(0 0 0 / 50%);--tw-prose-invert-th-borders: oklch(44.6% .03 256.802);--tw-prose-invert-td-borders: oklch(37.3% .034 259.733);font-size:1rem;line-height:1.75}.prose :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;margin-bottom:.5em}.prose :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.375em}.prose :where(.prose>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(.prose>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(.prose>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em}.prose :where(.prose>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.25em}.prose :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.75em;margin-bottom:.75em}.prose :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.25em;margin-bottom:1.25em}.prose :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5em;padding-inline-start:1.625em}.prose :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.5714286em;padding-inline-end:.5714286em;padding-bottom:.5714286em;padding-inline-start:.5714286em}.prose :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2em;margin-bottom:2em}.prose :where(.prose>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose :where(.prose>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.prose-sm{font-size:.875rem;line-height:1.7142857}.prose-sm :where(p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where([class~=lead]):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;line-height:1.5555556;margin-top:.8888889em;margin-bottom:.8888889em}.prose-sm :where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.3333333em;margin-bottom:1.3333333em;padding-inline-start:1.1111111em}.prose-sm :where(h1):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:2.1428571em;margin-top:0;margin-bottom:.8em;line-height:1.2}.prose-sm :where(h2):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.4285714em;margin-top:1.6em;margin-bottom:.8em;line-height:1.4}.prose-sm :where(h3):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:1.2857143em;margin-top:1.5555556em;margin-bottom:.4444444em;line-height:1.5555556}.prose-sm :where(h4):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.4285714em;margin-bottom:.5714286em;line-height:1.4285714}.prose-sm :where(img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(picture>img):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(video):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(kbd):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;border-radius:.3125rem;padding-top:.1428571em;padding-inline-end:.3571429em;padding-bottom:.1428571em;padding-inline-start:.3571429em}.prose-sm :where(code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em}.prose-sm :where(h2 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.9em}.prose-sm :where(h3 code):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8888889em}.prose-sm :where(pre):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.6666667;margin-top:1.6666667em;margin-bottom:1.6666667em;border-radius:.25rem;padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(ul):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em;padding-inline-start:1.5714286em}.prose-sm :where(li):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;margin-bottom:.2857143em}.prose-sm :where(ol>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(ul>li):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:.4285714em}.prose-sm :where(.prose-sm>ul>li p):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(.prose-sm>ul>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ul>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(.prose-sm>ol>li>p:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:1.1428571em}.prose-sm :where(ul ul,ul ol,ol ul,ol ol):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.5714286em;margin-bottom:.5714286em}.prose-sm :where(dl):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em;margin-bottom:1.1428571em}.prose-sm :where(dt):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.1428571em}.prose-sm :where(dd):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:.2857143em;padding-inline-start:1.5714286em}.prose-sm :where(hr):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:2.8571429em;margin-bottom:2.8571429em}.prose-sm :where(hr+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h2+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h3+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(h4+*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(table):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.5}.prose-sm :where(thead th):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(thead th:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(thead th:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(tbody td,tfoot td):not(:where([class~=not-prose],[class~=not-prose] *)){padding-top:.6666667em;padding-inline-end:1em;padding-bottom:.6666667em;padding-inline-start:1em}.prose-sm :where(tbody td:first-child,tfoot td:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-start:0}.prose-sm :where(tbody td:last-child,tfoot td:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){padding-inline-end:0}.prose-sm :where(figure):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:1.7142857em;margin-bottom:1.7142857em}.prose-sm :where(figure>*):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0;margin-bottom:0}.prose-sm :where(figcaption):not(:where([class~=not-prose],[class~=not-prose] *)){font-size:.8571429em;line-height:1.3333333;margin-top:.6666667em}.prose-sm :where(.prose-sm>:first-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-top:0}.prose-sm :where(.prose-sm>:last-child):not(:where([class~=not-prose],[class~=not-prose] *)){margin-bottom:0}.light .gradient-text{--tw-gradient-from: #9333ea var(--tw-gradient-from-position);--tw-gradient-to: rgb(147 51 234 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);--tw-gradient-to: rgb(124 58 237 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), #7c3aed var(--tw-gradient-via-position), var(--tw-gradient-to);--tw-gradient-to: #db2777 var(--tw-gradient-to-position)}.light .glass{border-bottom-width:1px;border-color:hsl(var(--border) / .5);background-color:hsl(var(--background) / .9);--tw-backdrop-blur: blur(24px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .glow{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .2)}.light .glow-sm{box-shadow:0 0 30px -10px hsl(var(--primary) / .1)}.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}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.inset-0{top:0;right:0;bottom:0;left:0}.inset-y-0{top:0;bottom:0}.left-0{left:0}.left-2\.5{left:.625rem}.right-0{right:0}.right-3{right:.75rem}.right-4{right:1rem}.top-1\/2{top:50%}.top-3{top:.75rem}.top-4{top:1rem}.top-full{top:100%}.z-40{z-index:40}.z-50{z-index:50}.mx-1{margin-left:.25rem;margin-right:.25rem}.mx-auto{margin-left:auto;margin-right:auto}.mb-1{margin-bottom:.25rem}.mb-1\.5{margin-bottom:.375rem}.mb-2{margin-bottom:.5rem}.mb-3{margin-bottom:.75rem}.mb-4{margin-bottom:1rem}.mb-5{margin-bottom:1.25rem}.mb-6{margin-bottom:1.5rem}.ml-1{margin-left:.25rem}.ml-1\.5{margin-left:.375rem}.ml-2{margin-left:.5rem}.ml-auto{margin-left:auto}.mr-1{margin-right:.25rem}.mr-1\.5{margin-right:.375rem}.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-3{margin-top:.75rem}.mt-4{margin-top:1rem}.mt-5{margin-top:1.25rem}.block{display:block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-square{aspect-ratio:1 / 1}.h-1\.5{height:.375rem}.h-10{height:2.5rem}.h-11{height:2.75rem}.h-12{height:3rem}.h-14{height:3.5rem}.h-16{height:4rem}.h-2{height:.5rem}.h-2\.5{height:.625rem}.h-20{height:5rem}.h-24{height:6rem}.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-full{height:100%}.h-screen{height:100vh}.max-h-64{max-height:16rem}.max-h-\[85vh\]{max-height:85vh}.min-h-0{min-height:0px}.min-h-10{min-height:2.5rem}.min-h-7{min-height:1.75rem}.min-h-8{min-height:2rem}.min-h-\[24rem\]{min-height:24rem}.w-1\.5{width:.375rem}.w-10{width:2.5rem}.w-11{width:2.75rem}.w-12{width:3rem}.w-14{width:3.5rem}.w-16{width:4rem}.w-2{width:.5rem}.w-2\.5{width:.625rem}.w-20{width:5rem}.w-24{width:6rem}.w-28{width:7rem}.w-3{width:.75rem}.w-3\.5{width:.875rem}.w-4{width:1rem}.w-48{width:12rem}.w-5{width:1.25rem}.w-52{width:13rem}.w-6{width:1.5rem}.w-7{width:1.75rem}.w-8{width:2rem}.w-9{width:2.25rem}.w-auto{width:auto}.w-fit{width:-moz-fit-content;width:fit-content}.w-full{width:100%}.w-px{width:1px}.min-w-0{min-width:0px}.min-w-10{min-width:2.5rem}.min-w-7{min-width:1.75rem}.min-w-8{min-width:2rem}.max-w-2xl{max-width:42rem}.max-w-full{max-width:100%}.max-w-lg{max-width:32rem}.max-w-md{max-width:28rem}.max-w-none{max-width:none}.max-w-sm{max-width:24rem}.max-w-xl{max-width:36rem}.flex-1{flex:1 1 0%}.flex-shrink-0,.shrink-0{flex-shrink:0}.border-collapse{border-collapse:collapse}.-translate-x-full{--tw-translate-x: -100%;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-y-2{--tw-translate-y: -.5rem;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-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))}.translate-x-full{--tw-translate-x: 100%;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-0{--tw-translate-y: 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))}.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))}.scale-100{--tw-scale-x: 1;--tw-scale-y: 1;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))}.scale-95{--tw-scale-x: .95;--tw-scale-y: .95;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 fade-in{0%{opacity:0}to{opacity:1}}.animate-fade-in{animation:fade-in .3s ease-out}@keyframes fade-up{0%{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}.animate-fade-up{animation:fade-up .4s ease-out}@keyframes ping{75%,to{transform:scale(2);opacity:0}}.animate-ping{animation:ping 1s cubic-bezier(0,0,.2,1) infinite}@keyframes pulse{50%{opacity:.5}0%,to{opacity:1}}.animate-pulse{animation:pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes shimmer{to{transform:translate(100%)}}.animate-shimmer{animation:shimmer 2s infinite}@keyframes spin{to{transform:rotate(360deg)}}.animate-spin{animation:spin 1s linear infinite}.cursor-pointer{cursor:pointer}.select-none{-webkit-user-select:none;-moz-user-select:none;user-select:none}.resize-none{resize:none}.resize-y{resize:vertical}.list-none{list-style-type:none}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.items-start{align-items:flex-start}.items-center{align-items:center}.items-baseline{align-items:baseline}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.gap-0\.5{gap:.125rem}.gap-1{gap:.25rem}.gap-1\.5{gap:.375rem}.gap-2{gap:.5rem}.gap-2\.5{gap:.625rem}.gap-3{gap:.75rem}.gap-4{gap:1rem}.gap-5{gap:1.25rem}.gap-x-3{-moz-column-gap:.75rem;column-gap:.75rem}.gap-x-4{-moz-column-gap:1rem;column-gap:1rem}.gap-x-8{-moz-column-gap:2rem;column-gap:2rem}.gap-y-1{row-gap:.25rem}.gap-y-1\.5{row-gap:.375rem}.gap-y-2{row-gap:.5rem}.gap-y-3{row-gap:.75rem}.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))}.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))}.self-center{align-self:center}.overflow-auto{overflow:auto}.overflow-hidden{overflow:hidden}.overflow-x-auto{overflow-x:auto}.overflow-y-auto{overflow-y:auto}.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.whitespace-nowrap{white-space:nowrap}.whitespace-pre-wrap{white-space:pre-wrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:.25rem}.rounded-full{border-radius:9999px}.rounded-lg{border-radius:var(--radius)}.rounded-md{border-radius:calc(var(--radius) - 2px)}.rounded-sm{border-radius:calc(var(--radius) - 4px)}.border{border-width:1px}.border-2{border-width:2px}.border-b{border-bottom-width:1px}.border-l{border-left-width:1px}.border-r{border-right-width:1px}.border-t{border-top-width:1px}.border-amber-600\/20{border-color:#d9770633}.border-blue-600\/20{border-color:#2563eb33}.border-border{border-color:hsl(var(--border))}.border-border\/60{border-color:hsl(var(--border) / .6)}.border-border\/70{border-color:hsl(var(--border) / .7)}.border-cyan-600\/20{border-color:#0891b233}.border-destructive\/30{border-color:hsl(var(--destructive) / .3)}.border-destructive\/40{border-color:hsl(var(--destructive) / .4)}.border-destructive\/60{border-color:hsl(var(--destructive) / .6)}.border-emerald-600\/20{border-color:#05966933}.border-fuchsia-600\/20{border-color:#c026d333}.border-input{border-color:hsl(var(--input))}.border-lime-600\/20{border-color:#65a30d33}.border-pink-600\/20{border-color:#db277733}.border-primary\/30{border-color:hsl(var(--primary) / .3)}.border-primary\/40{border-color:hsl(var(--primary) / .4)}.border-red-600\/20{border-color:#dc262633}.border-success\/40{border-color:hsl(var(--success) / .4)}.border-transparent{border-color:transparent}.border-violet-600\/20{border-color:#7c3aed33}.border-warning\/40{border-color:hsl(var(--warning) / .4)}.border-r-primary\/50{border-right-color:hsl(var(--primary) / .5)}.border-t-primary{border-top-color:hsl(var(--primary))}.bg-amber-600{--tw-bg-opacity: 1;background-color:rgb(217 119 6 / var(--tw-bg-opacity, 1))}.bg-amber-600\/10{background-color:#d977061a}.bg-background{background-color:hsl(var(--background))}.bg-background\/80{background-color:hsl(var(--background) / .8)}.bg-blue-600{--tw-bg-opacity: 1;background-color:rgb(37 99 235 / var(--tw-bg-opacity, 1))}.bg-blue-600\/10{background-color:#2563eb1a}.bg-border{background-color:hsl(var(--border))}.bg-card{background-color:hsl(var(--card))}.bg-card\/80{background-color:hsl(var(--card) / .8)}.bg-cyan-600{--tw-bg-opacity: 1;background-color:rgb(8 145 178 / var(--tw-bg-opacity, 1))}.bg-cyan-600\/10{background-color:#0891b21a}.bg-destructive{background-color:hsl(var(--destructive))}.bg-destructive\/10{background-color:hsl(var(--destructive) / .1)}.bg-destructive\/15{background-color:hsl(var(--destructive) / .15)}.bg-destructive\/5{background-color:hsl(var(--destructive) / .05)}.bg-emerald-600{--tw-bg-opacity: 1;background-color:rgb(5 150 105 / var(--tw-bg-opacity, 1))}.bg-emerald-600\/10{background-color:#0596691a}.bg-fuchsia-600{--tw-bg-opacity: 1;background-color:rgb(192 38 211 / var(--tw-bg-opacity, 1))}.bg-fuchsia-600\/10{background-color:#c026d31a}.bg-lime-600{--tw-bg-opacity: 1;background-color:rgb(101 163 13 / var(--tw-bg-opacity, 1))}.bg-lime-600\/10{background-color:#65a30d1a}.bg-muted{background-color:hsl(var(--muted))}.bg-muted-foreground{background-color:hsl(var(--muted-foreground))}.bg-muted\/30{background-color:hsl(var(--muted) / .3)}.bg-muted\/40{background-color:hsl(var(--muted) / .4)}.bg-muted\/50{background-color:hsl(var(--muted) / .5)}.bg-muted\/60{background-color:hsl(var(--muted) / .6)}.bg-pillar-graph{--tw-bg-opacity: 1;background-color:hsl(var(--pillar-graph) / var(--tw-bg-opacity, 1))}.bg-pillar-graph\/15{background-color:hsl(var(--pillar-graph) / .15)}.bg-pillar-memory\/15{background-color:hsl(var(--pillar-memory) / .15)}.bg-pillar-review\/15{background-color:hsl(var(--pillar-review) / .15)}.bg-pillar-tokens\/15{background-color:hsl(var(--pillar-tokens) / .15)}.bg-pink-600{--tw-bg-opacity: 1;background-color:rgb(219 39 119 / var(--tw-bg-opacity, 1))}.bg-pink-600\/10{background-color:#db27771a}.bg-primary{background-color:hsl(var(--primary))}.bg-primary\/10{background-color:hsl(var(--primary) / .1)}.bg-primary\/15{background-color:hsl(var(--primary) / .15)}.bg-primary\/25{background-color:hsl(var(--primary) / .25)}.bg-primary\/5{background-color:hsl(var(--primary) / .05)}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity, 1))}.bg-red-600\/10{background-color:#dc26261a}.bg-secondary{background-color:hsl(var(--secondary))}.bg-success{background-color:hsl(var(--success))}.bg-success\/10{background-color:hsl(var(--success) / .1)}.bg-success\/15{background-color:hsl(var(--success) / .15)}.bg-success\/20{background-color:hsl(var(--success) / .2)}.bg-success\/5{background-color:hsl(var(--success) / .05)}.bg-transparent{background-color:transparent}.bg-violet-600{--tw-bg-opacity: 1;background-color:rgb(124 58 237 / var(--tw-bg-opacity, 1))}.bg-violet-600\/10{background-color:#7c3aed1a}.bg-warning{background-color:hsl(var(--warning))}.bg-warning\/10{background-color:hsl(var(--warning) / .1)}.bg-warning\/15{background-color:hsl(var(--warning) / .15)}.bg-warning\/20{background-color:hsl(var(--warning) / .2)}.bg-warning\/5{background-color:hsl(var(--warning) / .05)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-transparent{--tw-gradient-from: transparent var(--tw-gradient-from-position);--tw-gradient-to: rgb(0 0 0 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.via-foreground\/\[0\.06\]{--tw-gradient-to: hsl(var(--foreground) / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), hsl(var(--foreground) / .06) var(--tw-gradient-via-position), var(--tw-gradient-to)}.to-transparent{--tw-gradient-to: transparent var(--tw-gradient-to-position)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-0\.5{padding:.125rem}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.px-1{padding-left:.25rem;padding-right:.25rem}.px-1\.5{padding-left:.375rem;padding-right:.375rem}.px-10{padding-left:2.5rem;padding-right:2.5rem}.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-3\.5{padding-left:.875rem;padding-right:.875rem}.px-4{padding-left:1rem;padding-right:1rem}.px-5{padding-left:1.25rem;padding-right:1.25rem}.px-6{padding-left:1.5rem;padding-right:1.5rem}.px-8{padding-left:2rem;padding-right:2rem}.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-10{padding-top:2.5rem;padding-bottom:2.5rem}.py-14{padding-top:3.5rem;padding-bottom:3.5rem}.py-16{padding-top:4rem;padding-bottom:4rem}.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-1{padding-bottom:.25rem}.pb-4{padding-bottom:1rem}.pl-2{padding-left:.5rem}.pl-2\.5{padding-left:.625rem}.pl-3{padding-left:.75rem}.pl-5{padding-left:1.25rem}.pl-8{padding-left:2rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.pr-2\.5{padding-right:.625rem}.pr-3{padding-right:.75rem}.pt-2{padding-top:.5rem}.pt-3{padding-top:.75rem}.pt-4{padding-top:1rem}.pt-5{padding-top:1.25rem}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.align-top{vertical-align:top}.align-middle{vertical-align:middle}.font-mono{font-family:JetBrains Mono,monospace}.font-sans{font-family:Inter,system-ui,sans-serif}.text-2xl{font-size:1.5rem;line-height:2rem}.text-\[10px\]{font-size:10px}.text-\[11px\]{font-size:11px}.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-medium{font-weight:500}.font-normal{font-weight:400}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.capitalize{text-transform:capitalize}.normal-case{text-transform:none}.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-relaxed{line-height:1.625}.tracking-normal{letter-spacing:0em}.tracking-tight{letter-spacing:-.025em}.tracking-wide{letter-spacing:.025em}.tracking-wider{letter-spacing:.05em}.text-amber-600{--tw-text-opacity: 1;color:rgb(217 119 6 / var(--tw-text-opacity, 1))}.text-blue-600{--tw-text-opacity: 1;color:rgb(37 99 235 / var(--tw-text-opacity, 1))}.text-brand{color:hsl(var(--brand))}.text-card-foreground{color:hsl(var(--card-foreground))}.text-cyan-600{--tw-text-opacity: 1;color:rgb(8 145 178 / var(--tw-text-opacity, 1))}.text-destructive{color:hsl(var(--destructive))}.text-destructive-foreground{color:hsl(var(--destructive-foreground))}.text-emerald-600{--tw-text-opacity: 1;color:rgb(5 150 105 / var(--tw-text-opacity, 1))}.text-foreground{color:hsl(var(--foreground))}.text-fuchsia-600{--tw-text-opacity: 1;color:rgb(192 38 211 / var(--tw-text-opacity, 1))}.text-lime-600{--tw-text-opacity: 1;color:rgb(101 163 13 / var(--tw-text-opacity, 1))}.text-muted-foreground{color:hsl(var(--muted-foreground))}.text-muted-foreground\/50{color:hsl(var(--muted-foreground) / .5)}.text-pillar-graph{--tw-text-opacity: 1;color:hsl(var(--pillar-graph) / var(--tw-text-opacity, 1))}.text-pillar-memory{--tw-text-opacity: 1;color:hsl(var(--pillar-memory) / var(--tw-text-opacity, 1))}.text-pillar-review{--tw-text-opacity: 1;color:hsl(var(--pillar-review) / var(--tw-text-opacity, 1))}.text-pillar-tokens{--tw-text-opacity: 1;color:hsl(var(--pillar-tokens) / var(--tw-text-opacity, 1))}.text-pink-600{--tw-text-opacity: 1;color:rgb(219 39 119 / var(--tw-text-opacity, 1))}.text-primary{color:hsl(var(--primary))}.text-primary-foreground{color:hsl(var(--primary-foreground))}.text-red-600{--tw-text-opacity: 1;color:rgb(220 38 38 / var(--tw-text-opacity, 1))}.text-secondary-foreground{color:hsl(var(--secondary-foreground))}.text-success{color:hsl(var(--success))}.text-violet-600{--tw-text-opacity: 1;color:rgb(124 58 237 / var(--tw-text-opacity, 1))}.text-warning{color:hsl(var(--warning))}.underline-offset-2{text-underline-offset:2px}.underline-offset-4{text-underline-offset:4px}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-40{opacity:.4}.opacity-50{opacity:.5}.opacity-60{opacity:.6}.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-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-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)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid}.blur-2xl{--tw-blur: blur(40px);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)}.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)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);-webkit-backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.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-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-100{transition-duration:.1s}.duration-150{transition-duration:.15s}.duration-200{transition-duration:.2s}.duration-75{transition-duration:75ms}.ease-in{transition-timing-function:cubic-bezier(.4,0,1,1)}.ease-out{transition-timing-function:cubic-bezier(0,0,.2,1)}.hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .3)}.light .hover\:glow:hover{box-shadow:0 0 60px -15px hsl(var(--primary) / .15)}.placeholder\:text-muted-foreground::-moz-placeholder{color:hsl(var(--muted-foreground))}.placeholder\:text-muted-foreground::placeholder{color:hsl(var(--muted-foreground))}.first\:pt-0:first-child{padding-top:0}.last\:pb-0:last-child{padding-bottom:0}.hover\:-translate-y-1:hover{--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))}.hover\:border-primary\/50:hover{border-color:hsl(var(--primary) / .5)}.hover\:bg-accent:hover{background-color:hsl(var(--accent))}.hover\:bg-background\/60:hover{background-color:hsl(var(--background) / .6)}.hover\:bg-destructive\/90:hover{background-color:hsl(var(--destructive) / .9)}.hover\:bg-muted:hover{background-color:hsl(var(--muted))}.hover\:bg-muted\/60:hover{background-color:hsl(var(--muted) / .6)}.hover\:bg-primary\/90:hover{background-color:hsl(var(--primary) / .9)}.hover\:bg-secondary\/80:hover{background-color:hsl(var(--secondary) / .8)}.hover\:text-accent-foreground:hover{color:hsl(var(--accent-foreground))}.hover\:text-foreground:hover{color:hsl(var(--foreground))}.hover\:underline:hover{text-decoration-line:underline}.focus\:border-destructive:focus{border-color:hsl(var(--destructive))}.focus\:border-primary\/50:focus{border-color:hsl(var(--primary) / .5)}.focus\:outline-none:focus{outline:2px solid transparent;outline-offset:2px}.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-ring:focus-visible{--tw-ring-color: hsl(var(--ring))}.disabled\:pointer-events-none:disabled{pointer-events:none}.disabled\:cursor-not-allowed:disabled{cursor:not-allowed}.disabled\:opacity-40:disabled{opacity:.4}.disabled\:opacity-50:disabled{opacity:.5}.prose-headings\:font-semibold :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){font-weight:600}.prose-headings\:text-foreground :is(:where(h1,h2,h3,h4,h5,h6,th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-p\:text-muted-foreground :is(:where(p):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-a\:text-primary :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--primary))}.prose-a\:no-underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))){text-decoration-line:none}.hover\:prose-a\:underline :is(:where(a):not(:where([class~=not-prose],[class~=not-prose] *))):hover{text-decoration-line:underline}.prose-blockquote\:border-border :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}.prose-blockquote\:text-muted-foreground :is(:where(blockquote):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-strong\:text-foreground :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-em\:text-foreground :is(:where(em):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:rounded :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){border-radius:.25rem}.prose-code\:bg-muted\/60 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .6)}.prose-code\:px-1 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-left:.25rem;padding-right:.25rem}.prose-code\:py-0\.5 :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){padding-top:.125rem;padding-bottom:.125rem}.prose-code\:text-foreground :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-code\:before\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):before{--tw-content: none;content:var(--tw-content)}.prose-code\:after\:content-none :is(:where(code):not(:where([class~=not-prose],[class~=not-prose] *))):after{--tw-content: none;content:var(--tw-content)}.prose-pre\:border :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){border-width:1px}.prose-pre\:bg-muted\/50 :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){background-color:hsl(var(--muted) / .5)}.prose-pre\:text-foreground :is(:where(pre):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-li\:text-muted-foreground :is(:where(li):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-th\:text-foreground :is(:where(th):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--foreground))}.prose-td\:text-muted-foreground :is(:where(td):not(:where([class~=not-prose],[class~=not-prose] *))){color:hsl(var(--muted-foreground))}.prose-hr\:border-border :is(:where(hr):not(:where([class~=not-prose],[class~=not-prose] *))){border-color:hsl(var(--border))}@media(min-width:640px){.sm\:mr-3{margin-right:.75rem}.sm\:block{display:block}.sm\:w-\[32\%\]{width:32%}.sm\:w-\[40\%\]{width:40%}.sm\:w-\[55\%\]{width:55%}.sm\:min-w-\[22rem\]{min-width:22rem}.sm\:min-w-\[26rem\]{min-width:26rem}.sm\:min-w-\[32rem\]{min-width:32rem}.sm\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.sm\:grid-cols-\[auto_1fr\]{grid-template-columns:auto 1fr}.sm\:px-4{padding-left:1rem;padding-right:1rem}}@media(min-width:1024px){.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.lg\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}.lg\:grid-cols-\[16rem_1fr\]{grid-template-columns:16rem 1fr}.lg\:grid-cols-\[18rem_1fr\]{grid-template-columns:18rem 1fr}.lg\:grid-cols-\[1fr_20rem\]{grid-template-columns:1fr 20rem}.lg\:items-start{align-items:flex-start}.lg\:px-6{padding-left:1.5rem;padding-right:1.5rem}.lg\:pb-6{padding-bottom:1.5rem}.lg\:pt-4{padding-top:1rem}}@media(min-width:1280px){.xl\:inline{display:inline}}@media(min-width:1536px){.\32xl\:px-2\.5{padding-left:.625rem;padding-right:.625rem}}.\[\&\>p\]\:inline>p{display:inline} diff --git a/internal/ui/assets/index.html b/internal/ui/assets/index.html index 605469b..5e474d6 100644 --- a/internal/ui/assets/index.html +++ b/internal/ui/assets/index.html @@ -5,8 +5,8 @@ SourceAnt - - + +
diff --git a/ui/src/components/SettingField.vue b/ui/src/components/SettingField.vue new file mode 100644 index 0000000..092f438 --- /dev/null +++ b/ui/src/components/SettingField.vue @@ -0,0 +1,71 @@ + + + diff --git a/ui/src/components/SettingsPanel.vue b/ui/src/components/SettingsPanel.vue index f0ce3af..d125fa9 100644 --- a/ui/src/components/SettingsPanel.vue +++ b/ui/src/components/SettingsPanel.vue @@ -1,15 +1,8 @@ @@ -126,64 +120,33 @@ onMounted(load)